[XBMCbuntu] Kernel devinput key_ok - select not working
#1
XBMCbuntu Beta 3 + PVR ppa
Ubuntu 11.10 - XBMCbuntu
Linux tv 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 15:59:53 UTC 2012 i686 athlon i386 GNU/Linux
deb http://ppa.launchpad.net/alexandr-surkov...pvr/ubuntu oneiric main

XBMC does not recognize some devinput remote control keys.
I use only the Kernel driver ! (no lirc, inputlirc, eventlirc installed)
The remote control is full working with ir-keytable -t.

ir-keytable
Code:
sudo ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event5) with:
    Driver (null), table rc-dib0700-rc5
    Supported protocols: NEC RC-5 RC-6
    Enabled protocols: RC-5
    Repeat delay = 500 ms, repeat period = 125 ms
Found /sys/class/rc/rc1/ (/dev/input/event6) with:
    Driver (null), table rc-dib0700-rc5
    Supported protocols: NEC RC-5 RC-6
    Enabled protocols: RC-5
    Repeat delay = 500 ms, repeat period = 125 ms

ir-keytable -t -d /dev/input/event5
Code:
Testing events. Please, press CTRL-C to abort.
1329602395.897295: event MSC: scancode = 1e25
1329602395.897304: event key down: KEY_OK (0x0160)
1329602395.897307: event sync
1329602396.148065: event key up: KEY_OK (0x0160)
1329602396.148068: event sync

If i check the xbmc.log with debug enabled i have no event for the KEY_OK, but for some other...

Also tried to use lirc, but same result
Code:
irw
0000000080010160 00 KEY_OK devinput
Reply
#2
I think you're running up against an issue with the X/devinput stack.

I have a remote with similar mappings (KEY_OK is 0x160, for example).

All keys with codes below (decimal) 255 work fine, all those above never propagate as far as X. KEY_OK, for example, is decimal 352. I believe X11 only allows one byte for the code Sad. I used xev to see which keys were and weren't coming through.

I've worked around this by using Lirc and a custom Lircmap.xml. I've configured LIRC to use the devinput driver. The sad thing is that the remote no-longer works properly *outside* xbmc, though of course if I setup the relevant lirc tools I could fix that...

By the looks of it, it is also possible to remap the keys, (http://www.mythtv.org/wiki/Remapping_rem..._than_255_ but I wouldn't suggest that it looks easy!

I am on 12.04 Beta but the lirc solution worked on 11.04 and 11.10 too.

Good luck,
Reply

Logout Mark Read Team Forum Stats Members Help
[XBMCbuntu] Kernel devinput key_ok - select not working0