2008-09-13, 18:11
I've now managed to map most of the keys on the SpeedLink SL-6399 remote. It's messy though because I've had to re-map various keys using xmodmap, as well as edit some of the lines in XBMC's Keymap.xml, and had to use xbindkey to map a couple of other things. Oh, and I still can't get the pesky "Home" key to work.
I'm using Ubuntu Hardy with the XBMC PPA (and default skin)
If anyone has any improvements or questions about this, please let me know.
The xmodmap keyboard re-mappings:
remove Control = Control_L
keycode 56 = b R
keycode 33 = p Y
keycode 41 = f A
keycode 39 = s W
keycode 117 = q
keycode 58 = c
keycode 31 = u
keycode 22 = Escape
The modified Keymap.xml (changes made to the global, fullscreenvideo, and videoOSD sections):
http://www.hatters.org.uk/oddjob/Keymap.sl-6399.xml
(Note that I'm ignoring the "Record", "MSN" and "MyTV" buttons here, and all six little keys beneath the number pad. Pressing them should do nothing in most cases.)
It's also useful to have the ability to start XBMC from the remote (in case it crashes, for example) as well as to be able to shut down the PC. For this, I'm using xbindkeys, with a config file containing the following:
# Start XBMC from remote
"xbmc"
m:0x14 + c:28
Control+Mod2 + t
# Call Ubuntu shutdown menu from remote
"gnome-session-save --gui --kill"
Alt + F4
(Note that you have to disable ALT+F4 from the System > Preferences > Keyboard Shortcuts control panel in Ubuntu for this to work)
The main remaining problem is mapping the "Home" key (green one between the volume and page up/dn keys). This sends super_l+alt_l+enter. I'd like to map that to "h" for XBMC, but I can't work out how. I tried using evrouter for this, but failed.
Random useful stuff along the way:
xkeycaps (front end for xmodmap)
xev
SL-6399 keys
I'm using Ubuntu Hardy with the XBMC PPA (and default skin)
If anyone has any improvements or questions about this, please let me know.
The xmodmap keyboard re-mappings:
remove Control = Control_L
keycode 56 = b R
keycode 33 = p Y
keycode 41 = f A
keycode 39 = s W
keycode 117 = q
keycode 58 = c
keycode 31 = u
keycode 22 = Escape
The modified Keymap.xml (changes made to the global, fullscreenvideo, and videoOSD sections):
http://www.hatters.org.uk/oddjob/Keymap.sl-6399.xml
(Note that I'm ignoring the "Record", "MSN" and "MyTV" buttons here, and all six little keys beneath the number pad. Pressing them should do nothing in most cases.)
It's also useful to have the ability to start XBMC from the remote (in case it crashes, for example) as well as to be able to shut down the PC. For this, I'm using xbindkeys, with a config file containing the following:
# Start XBMC from remote
"xbmc"
m:0x14 + c:28
Control+Mod2 + t
# Call Ubuntu shutdown menu from remote
"gnome-session-save --gui --kill"
Alt + F4
(Note that you have to disable ALT+F4 from the System > Preferences > Keyboard Shortcuts control panel in Ubuntu for this to work)
The main remaining problem is mapping the "Home" key (green one between the volume and page up/dn keys). This sends super_l+alt_l+enter. I'd like to map that to "h" for XBMC, but I can't work out how. I tried using evrouter for this, but failed.
Random useful stuff along the way:
xkeycaps (front end for xmodmap)
xev
SL-6399 keys