2012-05-25, 09:53
I have a DVB-C card that comes with an IR-Remote that shows up as /dev/input/event12 running kernel 3.3.3. The remote works on the fly with XBMC except for two important buttons that are identified by evtest as KEY_OK and KEY_EXIT. Now I'd like to remap these buttons to the "select" and "back" action accordingly. Without the mapping, the remote is not usable because I can't select anything.
I tried with a few custom keymap .xml configurations from the Keyboard.xml wiki page. e.g.:
I used the <keyboard> tag, since the evdev for the IR-Remote seems to identify as one:
But it just doesn't work:
no matter what I try: <key id="KEY_OK"></key>, etc.
What is the right approach to remap keys from /dev/input/eventX?
I tried with a few custom keymap .xml configurations from the Keyboard.xml wiki page. e.g.:
Code:
<keymap>
<global>
<keyboard>
<exit>
Back
</exit>
<ok>
Select
</ok>
</keyboard>
</global>
</keymap>
I used the <keyboard> tag, since the evdev for the IR-Remote seems to identify as one:
Code:
I: Bus=0001 Vendor=13c2 Product=101a Version=0001
N: Name="Budget-CI dvb ir receiver saa7146 (0)"
P: Phys=pci-0000:01:08.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:04.0/0000:01:08.0/rc/rc1/input12
U: Uniq=
H: Handlers=kbd event12
B: PROP=0
B: EV=100013
B: KEY=40fc010 20206100000000 0 8000 418080002001 9e168000000000 ffc
B: MSC=10
But it just doesn't work:
Code:
09:39:53 T:139985227868064 ERROR: Keymapping error: no such action 'language' def
ined
09:39:53 T:139985227868064 ERROR: Keyboard Translator: Can't find button exit
09:39:53 T:139985227868064 ERROR: Keymapping error: no such action '
back
' defined
09:39:53 T:139985227868064 ERROR: Keyboard Translator: Can't find button ok
09:39:53 T:139985227868064 ERROR: Keymapping error: no such action '
select
' defined
no matter what I try: <key id="KEY_OK"></key>, etc.
What is the right approach to remap keys from /dev/input/eventX?