ir-keytable or: How I Learned to Stop Worrying about the LIRC Kernel
#13
I'm stuck on programming the keycodes... I have copied the file to /etc/rc_keymaps/rc6_mce, used ir-keytable -r to see the existing keycodes, -c to clear them, -r to confirm they are now cleared. Then the -p command to program the new codes from the file above.

It says "wrote 61 keycode(s) to driver... protocols changed to RC-6" and so on, but now when I use -r the only entry in the table is:
scancode 0x7fffff = KEY_PLAYPAUSE (0xa4)
And that isn't even in the file! But judging by the hex value, it just isn't working in the first place....

Any thoughts? I've tried it multiple times with the same result. Reboot gives me back the original keycode table, then I go through the process again, with the same result.

I have tried using the original file without modifications, and with the # table rc6_mce, type: RC6 line at the top... same deal...

UPDATE: hmmm I use the -v verbose option when updating the keycode table and this results. Initially it looks as though it is parsing it correctly, then at the end it appears to be writing all the codes to the same scancode, which is presumably why I'm only left with a single entry! Any thoughts?

UPDATE2: it seems that the maximum scancode it accepts is 7fffff! When I set a pair manually using the -k option, below 80000000 it works fine... but the standard codes for rc6 are all well over 80000000 ... now I'm really confused!

UPDATE3: OK, ir-keymaps has a bug in it - build new version from these instructions http://2cheeseburgers.blogspot.com/2010/...erick.html then it allows codes higher than 7ffffff ...

Code:
xbmc@xbmc:~$ sudo ir-keytable -v -p RC6 -w /etc/rc_keymaps/rc6_mce
Parsing /etc/rc_keymaps/rc6_mce keycode file
parsing 0x800f0400=KEY_NUMERIC_0:    value=512
parsing 0x800f0401=KEY_NUMERIC_1:    value=513
parsing 0x800f0402=KEY_NUMERIC_2:    value=514
parsing 0x800f0403=KEY_NUMERIC_3:    value=515
parsing 0x800f0404=KEY_NUMERIC_4:    value=516
parsing 0x800f0405=KEY_NUMERIC_5:    value=517
parsing 0x800f0406=KEY_NUMERIC_6:    value=518
parsing 0x800f0407=KEY_NUMERIC_7:    value=519
parsing 0x800f0408=KEY_NUMERIC_8:    value=520
parsing 0x800f0409=KEY_NUMERIC_9:    value=521
parsing 0x800f040a=KEY_DELETE:    value=111
parsing 0x800f040b=KEY_ENTER:    value=28
parsing 0x800f040c=KEY_POWER:    value=116
parsing 0x800f040d=KEY_PROG1:    value=148
parsing 0x800f040e=KEY_MUTE:    value=113
parsing 0x800f040f=KEY_INFO:    value=358
parsing 0x800f0410=KEY_VOLUMEUP:    value=115
parsing 0x800f0411=KEY_VOLUMEDOWN:    value=114
parsing 0x800f0412=KEY_CHANNELUP:    value=402
parsing 0x800f0413=KEY_CHANNELDOWN:    value=403
parsing 0x800f0414=KEY_FASTFORWARD:    value=208
parsing 0x800f0415=KEY_REWIND:    value=168
parsing 0x800f0416=KEY_PLAY:    value=207
parsing 0x800f0417=KEY_RECORD:    value=167
parsing 0x800f0418=KEY_PAUSE:    value=119
parsing 0x800f046e=KEY_PLAYPAUSE:    value=164
parsing 0x800f0419=KEY_STOP:    value=128
parsing 0x800f041a=KEY_NEXT:    value=407
parsing 0x800f041b=KEY_PREVIOUS:    value=412
parsing 0x800f041c=KEY_NUMERIC_POUND:    value=523
parsing 0x800f041d=KEY_NUMERIC_STAR:    value=522
parsing 0x800f041e=KEY_UP:    value=103
parsing 0x800f041f=KEY_DOWN:    value=108
parsing 0x800f0420=KEY_LEFT:    value=105
parsing 0x800f0421=KEY_RIGHT:    value=106
parsing 0x800f0422=KEY_OK:    value=352
parsing 0x800f0423=KEY_EXIT:    value=174
parsing 0x800f0424=KEY_DVD:    value=389
parsing 0x800f0425=KEY_TUNER:    value=386
parsing 0x800f0426=KEY_EPG:    value=365
parsing 0x800f0427=KEY_ZOOM:    value=372
parsing 0x800f043a=KEY_BRIGHTNESSUP:    value=225
parsing 0x800f0446=KEY_TV:    value=377
parsing 0x800f0447=KEY_AUDIO:    value=392
parsing 0x800f0448=KEY_PVR:    value=366
parsing 0x800f0449=KEY_CAMERA:    value=212
parsing 0x800f044a=KEY_VIDEO:    value=393
parsing 0x800f044c=KEY_LANGUAGE:    value=368
parsing 0x800f044d=KEY_TITLE:    value=369
parsing 0x800f044e=KEY_PRINT:    value=210
parsing 0x800f0450=KEY_RADIO:    value=385
parsing 0x800f045a=KEY_SUBTITLE:    value=370
parsing 0x800f045b=KEY_RED:    value=398
parsing 0x800f045c=KEY_GREEN:    value=399
parsing 0x800f045d=KEY_YELLOW:    value=400
parsing 0x800f045e=KEY_BLUE:    value=401
parsing 0x800f0465=KEY_POWER2:    value=356
parsing 0x800f046e=KEY_PLAYPAUSE:    value=164
parsing 0x800f046f=KEY_MEDIA:    value=226
parsing 0x800f0480=KEY_BRIGHTNESSDOWN:    value=224
parsing 0x800f0481=KEY_PLAYPAUSE:    value=164
Read rc6_mce table
Found device /sys/class/rc/rc0/
Input sysfs node is /sys/class/rc/rc0/input7/
Event sysfs node is /sys/class/rc/rc0/input7/event7/
Parsing uevent /sys/class/rc/rc0/input7/event7/uevent
/sys/class/rc/rc0/input7/event7/uevent uevent MAJOR=13
/sys/class/rc/rc0/input7/event7/uevent uevent MINOR=71
/sys/class/rc/rc0/input7/event7/uevent uevent DEVNAME=input/event7
Parsing uevent /sys/class/rc/rc0/uevent
/sys/class/rc/rc0/uevent uevent NAME=rc-rc6-mce
/sys/class/rc/rc0/uevent uevent DRV_NAME=mceusb
input device is /dev/input/event7
/sys/class/rc/rc0/protocols protocol rc-5 (disabled)
/sys/class/rc/rc0/protocols protocol nec (disabled)
/sys/class/rc/rc0/protocols protocol rc-6 (enabled)
/sys/class/rc/rc0/protocols protocol jvc (disabled)
/sys/class/rc/rc0/protocols protocol sony (disabled)
/sys/class/rc/rc0/protocols protocol lirc (disabled)
Opening /dev/input/event7
Input Protocol version: 0x00010001
    7fffffff=0200
    7fffffff=0201
    7fffffff=0202
    7fffffff=0203
    7fffffff=0204
    7fffffff=0205
    7fffffff=0206
    7fffffff=0207
    7fffffff=0208
    7fffffff=0209
    7fffffff=006f
    7fffffff=001c
    7fffffff=0074
    7fffffff=0094
    7fffffff=0071
    7fffffff=0166
    7fffffff=0073
    7fffffff=0072
    7fffffff=0192
    7fffffff=0193
    7fffffff=00d0
    7fffffff=00a8
    7fffffff=00cf
    7fffffff=00a7
    7fffffff=0077
    7fffffff=00a4
    7fffffff=0080
    7fffffff=0197
    7fffffff=019c
    7fffffff=020b
    7fffffff=020a
    7fffffff=0067
    7fffffff=006c
    7fffffff=0069
    7fffffff=006a
    7fffffff=0160
    7fffffff=00ae
    7fffffff=0185
    7fffffff=0182
    7fffffff=016d
    7fffffff=0174
    7fffffff=00e1
    7fffffff=0179
    7fffffff=0188
    7fffffff=016e
    7fffffff=00d4
    7fffffff=0189
    7fffffff=0170
    7fffffff=0171
    7fffffff=00d2
    7fffffff=0181
    7fffffff=0172
    7fffffff=018e
    7fffffff=018f
    7fffffff=0190
    7fffffff=0191
    7fffffff=0164
    7fffffff=00a4
    7fffffff=00e2
    7fffffff=00e0
    7fffffff=00a4
Wrote 61 keycode(s) to driver
Protocols changed to RC-6
xbmc@xbmc:~$
Reply


Messages In This Thread
[No subject] - by darkscout - 2011-05-11, 02:37
[No subject] - by lukamus - 2011-06-09, 02:23
[No subject] - by darkscout - 2011-06-09, 04:22
[No subject] - by lukamus - 2011-06-09, 07:27
[No subject] - by bsp134 - 2011-06-09, 09:31
[No subject] - by lupick - 2011-06-09, 18:18
[No subject] - by darkscout - 2011-06-09, 18:36
[No subject] - by lukamus - 2011-06-10, 02:42
[No subject] - by tomolac - 2011-08-10, 19:39
[No subject] - by darkscout - 2011-08-10, 22:48
[No subject] - by tomolac - 2011-08-10, 22:53
[No subject] - by colinjones - 2011-08-13, 06:45
[No subject] - by colinjones - 2011-08-13, 08:50
[No subject] - by colinjones - 2011-08-15, 11:29
[No subject] - by colinjones - 2011-08-16, 05:13
[No subject] - by darkscout - 2011-08-16, 08:00
[No subject] - by colinjones - 2011-08-16, 08:05
[No subject] - by illumilore - 2011-11-09, 00:39
Logout Mark Read Team Forum Stats Members Help
ir-keytable or: How I Learned to Stop Worrying about the LIRC Kernel0