Loading Blog Search...

Thursday, October 05, 2006

Hotkeys for Logictech cordless desktop EX110

I set up my old IBM T23 as media center in my living room, and got the cheap Logitech Cordless Desktop EX110 as remote.


As it is running Linux, a few tricks are needed to use these multimedia keys on the keyboard. First, hotkeys should be installed and autostart when X startup. And hotkeys.conf and itouch.def should be edited.



For a ubuntu user, please edit:
/usr/share/hotkeys/itouch.def

In this file, the codes of keys are mapped to some names easy to remember. And then please edit:

/etc/hotkeys.conf

In hotkeys.conf, each key name is mapped to a command, when the key is pressed, corresponding command will be invoked.

To know what's the keycode of a key, we can run xev, and press the key, xev will print corresponding keycodes to standard output.

A easier way: as for most Logitech keyboard, the keycodes can be found at here

Some useful keycodes are (copied from 1n12, maybe is for microsoft keyboard, but most are right for my logitech, haven't tried all):
keycode 115 = SLstart
keycode 116 = SRstart
keycode 117 = Smenu
keycode 234 = Sback
keycode 233 = Sforward
keycode 232 = Sstop
keycode 231 = Srefresh
keycode 122 = Ssearch
keycode 230 = Sfavourites
keycode 130 = Swebhome
keycode 236 = Smail
keycode 160 = Smute
keycode 174 = Svolumedown
keycode 176 = Svolumeup
keycode 162 = Splaypause
keycode 164 = Sstop
keycode 144 = Sprevtrack
keycode 153 = Snexttrack
keycode 129 = Smedia
keycode 198 = Smycomputer
keycode 161 = Scalculator
keycode 223 = Ssleep

3 comments:

Yi Liu said...

Good. Thanks for your info.

Anonymous said...

How do you handle the tv out? under mythtv I have to resize the screen to 640*480 to see video.

Anonymous said...

I found this post while looking to configure my EX110. In Ubuntu you can now use keytouch and keytouch-editor, this keyboard is already directly supported.