From: Douglas Clowes
Sent: Thursday, May 05, 2011 10:12 PM
To: Krister Hallergard
Cc: Jarod Wilson ; lirc-list@lists.sourceforge.net
Subject: Re: Lirc daemon running but no output in Kubuntu 11.04

OK, the list doesn't like long responses (should have cut) 8(

So here goes the shortened version:

On 2011-05-05 23:01, Krister Hallergard wrote:

Thanks Douglas.  Followed your suggestion after making a fresh install of Kubuntu 11.04:
root@DESKTOP:~# ir-keytable -c -w /lib/udev/rc_keymaps/haupp                                                                                                          
Read haupp table                                                                                                                                                       
Old keytable cleared                                                                                                                                                   
Wrote 45 keycode(s) to driver                                                                                                                                          
Protocols changed to other 
 
After this there is no output whatsoever when doing "ir-keytable -t" - is that as expected?

No, it suggests to me that the protocol is not correct.

When the protocol is correct, you should get scancodes. And you did have scancodes before.

When both the protocol and keytable are correct you should get both scancodes and keycodes. The keycodes should be like "KEY_POWER" and "KEY_TV".

If you don't have keycodes then lircd (devinput) has nothing to read. If you get keycodes then your lircd.conf should contain those keycodes as in "/usr/share/lirc/remotes/devinput/lircd.conf.devinput".

I see that in your other post you had all of the protocols enabled. Try ir-keytable -pRC-5 and go through the protocols until you get scancodes or just enable them all, as in:
ir-keytable -pNEC -pRC-5 -pRC-6 -pJVC -pSONY

Basically the protocol decodes the raw IR into scancodes, the keytable translates the scancodes into keycodes, the LIRC bridge bridges something to the old LIRC /dev/lirc* for backwardish compatibility.

So, better to use the new way if you can. Play with the protocol until you get scancodes, keep that protocol and play with the keytable until you get keycodes. Keep both of those and play with lircd.conf until you get keys in irw. Keep all that and play with ~/.lircrc until your app is under control :)

BTW: you don't need to install lirc-modules-source. That was only put there to make it easier to patch the lirc kernel modules and you don't need to do that, do you?

Regards,

Douglas


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