Audio keys not working
#1
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.
Reply
#2
ok Using the program getscancodes ( http://keytouch.sourceforge.net/dl-getscancodes.html )

./getscancodes /dev/input/event4

On my Tevion wireless keyboard the following codes are recieved

KEY ----- Decimal ----- Hex

VolDown -- 786666 -- 0xc00ea
VolUP -- 786665 -- 0xc00e9
VolMute -- 786658 -- 0xc00e2
Reply
#3
showkey -k

voldown -- 0x72
volup -- 0x73
volmute -- 0x71


showkey -s

VolDown -- 0xe0 0x2e
volup -- 0xe0 0x30
volmute -- 0xe0 0xa0
Reply
#4
When you have the keycodes from showkey how do you go about mapping it in the Keymap.xml file ?
Reply
#5
no idea..I was posting the codes in the hope someoet could tell me what to do with them
Reply
#6
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
Reply
#7
which "/userdata" there are 2..

one in my home dir and one in /usr/share/xbmc

I am guessing my home dir...
Reply
#8
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.
Reply
#9
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?
Reply
#10
Pvt_Ryan Wrote: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?

I had this idea but I don't think it will work...

<volume-up>VolumeUp</volume-up>
<mute>Mute</mute>
<volume-down>VolumeDown</volume-down>


If it is not reporting a OnKey I don't think there is anything that can be done until it is patched.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Audio keys not working00
This forum uses Lukasz Tkacz MyBB addons.