On 2011-05-06 19:43, Krister Hallergard wrote:


Thanks Douglas. First I uninstalled lirc-modules-source.  Now realize that I should not have installed it on the fresh install - sorry Jarod!
 
Then I tried all the protocols and reconfirmed that only the RC-5 works.  Still only get scancodes and no keycodes, and after applying "ir-keytable -c -w /lib/udev/rc_keymaps/haupp" I do not get any scancodes either.  (yes, have copied the file lircd.conf.devinput to /etc/lirc/lircd.conf)
 
Cheers, Krister
Hi Krister,

It would appear that setting a keytable changes the protocol:

[root@penguin ~]# ir-keytable
Found /sys/class/rc/rc1/ (/dev/input/event4) with:
    Driver mceusb, table rc-rc6-mce
    Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
    Enabled protocols:
    Repeat delay = 500 ms, repeat period = 33 ms
[root@penguin ~]# ir-keytable -s rc1 -pRC-5 <---------------------- force protocol to RC-5
Protocols changed to RC-5
[root@penguin ~]# ir-keytable
Found /sys/class/rc/rc1/ (/dev/input/event4) with:
    Driver mceusb, table rc-rc6-mce
    Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
    Enabled protocols: RC-5 <-------------------------------------------------- confirm protocol RC-5
    Repeat delay = 500 ms, repeat period = 33 ms
[root@penguin ~]# ir-keytable -s rc1 -w /etc/rc_keymaps/haupp ---- load haup keymap
Read haupp table
Wrote 45 keycode(s) to driver
Protocols changed to other <------------------------------------------ see protocol changed to "other" (read none)
[root@penguin ~]# ir-keytable
Found /sys/class/rc/rc1/ (/dev/input/event4) with:
    Driver mceusb, table rc-rc6-mce
    Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
    Enabled protocols: <--------------------------------------------------- confirm no protocol
    Repeat delay = 500 ms, repeat period = 33 ms
[root@penguin ~]# ir-keytable -s rc1 -pRC-5
Protocols changed to RC-5 <------------------------------------------- now put it back

I am guessing that you had scancodes when you had the RC-5 protocol and then loaded the haupp keytable which probably set the protocol to other/none and that's how you lost the scancodes. I am also guessing that if you switch the keytable and then force the protocol back to RC-5 you might get both.

Douglas