Posts: 239
Joined: Oct 2008
Reputation:
0
I have a Dell USB keyboard and a cheap tevion(?) wireless keyboard & mouse in ubuntu their vol up/down/mute works fine however under XBMC nothing, they have no effect.
both keyboards present 2 events in /dev/input/ the 1st event of each handles normal key presses while the 2nd event handles the virtual(?) multimedia keys..
I can list the scan/key codes from
"showkeys -s"
"showkeys -k"
"getscancodes"
if that will help.
PS: this also applies to all of the multimedia/extra keys on the top of the board. But its only the audio i am interested in atm.
Posts: 239
Joined: Oct 2008
Reputation:
0
showkey -k
voldown -- 0x72
volup -- 0x73
volmute -- 0x71
showkey -s
VolDown -- 0xe0 0x2e
volup -- 0xe0 0x30
volmute -- 0xe0 0xa0
Posts: 25
Joined: Mar 2004
Reputation:
0
covert
Junior Member
Posts: 25
When you have the keycodes from showkey how do you go about mapping it in the Keymap.xml file ?
Posts: 239
Joined: Oct 2008
Reputation:
0
no idea..I was posting the codes in the hope someoet could tell me what to do with them
Posts: 25
Joined: Mar 2004
Reputation:
0
covert
Junior Member
Posts: 25
2008-10-15, 08:30
(This post was last modified: 2008-10-15, 14:12 by covert.)
Add this to your Keymap.xml file. Copy from /system to /userdata if you don't already have a Keymap.xml in userdata
<key id="61562">VolumeUp</key>
<key id="61561">VolumeDown</key>
<key id="61560">Mute</key>
I got these codes by tailing the xbmc log file. It outputs the keycode..
DEBUG: OnKey: 61561 pressed, action is 0
Codes for keys already working
skip forward 61479
play/pause 61520
stop 61467
skipback 61477
Unmapped
rec 61522
Posts: 239
Joined: Oct 2008
Reputation:
0
which "/userdata" there are 2..
one in my home dir and one in /usr/share/xbmc
I am guessing my home dir...
Posts: 25
Joined: Mar 2004
Reputation:
0
covert
Junior Member
Posts: 25
Home dir.
On my machine it is
~/.xbmc/userdata
xbmc log will tell you which Keymap.xml files it is using.
cat ~/.xbmc/xbmc.log |grep Keymap
My ~/.xbmc/system/Keymap.xml is loaded first followed by ~/.xbmc/userdata/Keymap.xml
For anyone reading who does not know what ~ is it defaults to the home directory of the logged in user.
Posts: 239
Joined: Oct 2008
Reputation:
0
Tailing my log I get:
Dell USB keyboard
22:11:55 T:3067770720 M: 11243520 DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_413c_2002_noserial_if1_logicaldev_input) Condition ButtonPressed | volume-down
22:11:57 T:3067770720 M: 11243520 DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_413c_2002_noserial_if1_logicaldev_input) Condition ButtonPressed | volume-up
22:11:58 T:3067770720 M: 11243520 DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_413c_2002_noserial_if1_logicaldev_input) Condition ButtonPressed | mute
Tevion wireless keyboard
22:13:48 T:3067770720 M: 7155712 DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_5fe_1010_noserial_if1_logicaldev_input) Condition ButtonPressed | volume-down
22:13:50 T:3067770720 M: 7155712 DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_5fe_1010_noserial_if1_logicaldev_input) Condition ButtonPressed | volume-up
22:13:51 T:3067770720 M: 7155712 DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_5fe_1010_noserial_if1_logicaldev_input) Condition ButtonPressed | mute
Any Ideas?