From: <cv...@kr...> - 2011-04-04 16:10:46
|
On Tue, 29 Mar 2011 16:00:30 -0400, Jarod Wilson wrote: >> I'm getting these errors/messages in syslog as well when I use a >> harmony configured as imon-pad. And the harmony has normal buttons, >> not this pad. So it seems that, for a better responsiveness, I >> should add 0x10000f2 and the other codes somehow to lirc. I tried >> editing the imon-pad keytable and then loading it into the kernel >> with ir-keytable. But that didn't help, pressing keys still caused >> the "unknown keypress" messages in syslog. > Hm. Wonder what the Harmony config is actually doing there as far as > the signals its sending... Don't know, but except for this it's working ok. >> How would I need to edit the keytable (or anything else) in order >> to get the additional 0x10000f2 code recognized? I can then add the >> other codes as well, and am happy to feed back the result to you, >> if that helps (others). > Edit drivers/media/rc/keymaps/rc-imon-pad.c. But pushing the code in > using ir-keytable *should* work just as well. Ok, I tried the latter. Syslog: Apr 3 15:44:08 htpc kernel: [ 103.731590] intf0 decoded packet: 01 00 00 0e 00 00 00 00 Apr 3 15:44:08 htpc kernel: [ 103.731601] imon 1-1.6.1:1.0: imon_incoming_packet: unknown keypress, code 0x100000e Apr 3 15:44:08 htpc kernel: [ 103.771564] intf0 decoded packet: 01 00 00 0e 00 00 00 00 Apr 3 15:44:08 htpc kernel: [ 103.771574] imon 1-1.6.1:1.0: imon_incoming_packet: unknown keypress, code 0x100000e Apr 3 15:44:08 htpc kernel: [ 103.803599] intf0 decoded packet: 01 00 7f 00 00 00 00 00 Then I created a new keytable with the 0x100000e code, based on the imon template: [...] 0x01008000 KEY_UP 0x10000f2 KEY_UP 0x01007f00 KEY_DOWN 0x100000e KEY_DOWN 0x01000080 KEY_LEFT 0x100f200 KEY_LEFT 0x0100007f KEY_RIGHT 0x1000e00 KEY_RIGHT 0x2aa515b7 KEY_UP 0x289515b7 KEY_DOWN 0x29a515b7 KEY_LEFT 0x2ba515b7 KEY_RIGHT [...] After loading this with ir-keytable (yes, the number of loaded keysets is matching, so it is loading the new config), syslog is still saying: Apr 3 15:51:33 htpc kernel: [ 548.618452] imon 1-1.6.1:1.0: Configuring IR receiver for iMON protocol Apr 3 15:52:05 htpc kernel: [ 580.768830] intf0 decoded packet: 01 00 00 0e 00 00 00 00 Apr 3 15:52:05 htpc kernel: [ 580.768841] imon 1-1.6.1:1.0: imon_incoming_packet: unknown keypress, code 0x100000e Apr 3 15:52:05 htpc kernel: [ 580.808854] intf0 decoded packet: 01 00 00 0e 00 00 00 00 Apr 3 15:52:05 htpc kernel: [ 580.808865] imon 1-1.6.1:1.0: imon_incoming_packet: unknown keypress, code 0x100000e Any idea what I might be doing wrong? Thanks! |