Page 1 of 1

[SOLVED] lirc and nuvoton-cir module

PostPosted: Jul 12th, '11, 23:04
by zeke
Hi all, I am having trouble with the MCE remote that came with my ASRock 330. It has the nuvoton IR receiver built in. I have tried prtty much everything I could find on the web to get this remote working. Currently I have it sending garbage keyboard signals through a pure input layer. (input5, IIRC)

This makes some - but not many - keys functional.

I have asked for help from the lirc listserv, but no one has any advice...hoping I can get more traction here....

I think the problem is shown in the output of dmesg:


IR NEC protocol handler initialized
Registered IR keymap rc-rc6-mce
input: Nuvoton w836x7hg Infrared Remote Transceiver as /devices/virtual/rc/rc0/input5
rc0: Nuvoton w836x7hg Infrared Remote Transceiver as /devices/virtual/rc/rc0
nuvoton_cir: driver has been successfully loaded
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
lirc_dev: IR Remote Control driver registered, major 61
ir_lirc_codec: disagrees about version of symbol lirc_dev_fop_poll
ir_lirc_codec: Unknown symbol lirc_dev_fop_poll (err -22)
ir_lirc_codec: disagrees about version of symbol lirc_dev_fop_open
ir_lirc_codec: Unknown symbol lirc_dev_fop_open (err -22)
ir_lirc_codec: disagrees about version of symbol lirc_get_pdata
ir_lirc_codec: Unknown symbol lirc_get_pdata (err -22)
ir_lirc_codec: disagrees about version of symbol lirc_dev_fop_close
ir_lirc_codec: Unknown symbol lirc_dev_fop_close (err -22)
ir_lirc_codec: disagrees about version of symbol lirc_dev_fop_read
ir_lirc_codec: Unknown symbol lirc_dev_fop_read (err -22)
ir_lirc_codec: disagrees about version of symbol lirc_register_driver
ir_lirc_codec: Unknown symbol lirc_register_driver (err -22)
ir_lirc_codec: disagrees about version of symbol lirc_dev_fop_ioctl
ir_lirc_codec: Unknown symbol lirc_dev_fop_ioctl (err -22)
ACPI: PCI Interrupt Link [LPMU] enabled at IRQ 22
nvidia 0000:00:03.5: PCI INT B -> Link[LPMU] -> GSI 22 (level, low) -> IRQ 22
ACPI: PCI Interrupt Link [SGRU] enabled at IRQ 21
nvidia 0000:01:00.0: PCI INT A -> Link[SGRU] -> GSI 21 (level, low) -> IRQ 21
ACPI: PCI Interrupt Link [LMAC] enabled at IRQ 20
forcedeth 0000:00:0a.0: PCI INT A -> Link[LMAC] -> GSI 20 (level, low) -> IRQ 20
ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 23
HDA Intel 0000:00:08.0: PCI INT A -> Link[LAZA] -> GSI 23 (level, low) -> IRQ 23


lsmod | grep ir returns:
lirc_dev 19196 0
ir_sony_decoder 12549 0
ir_jvc_decoder 12546 0
ir_rc6_decoder 12546 0
ir_rc5_decoder 12546 0
nuvoton_cir 17805 0
ir_nec_decoder 12546 0
rc_core 26838 8 ir_sony_decoder,rc_rc6_mce,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,nuvoton_cir,ir_nec_decoder

irw does not respond to the remote, but if I use ir-keytable, and press the remote keys, I get some control codes like ']]]]B'

I found this thread:
http://www.linuxquestions.org/questions ... ks-843751/

But I can't find a place in /etc/init.d/lircd or /etclirc/linrd.conf to add the text
'for protocol in rc5 nec rc6 sony mceusb'

Any help would be so appreciated.

I know one option is to go back to Mandriva 2010.2 with the older kernel and compile the debian driver, (that worked before), but I would really like to utilize the newer kernel and Mageia!

Re: lirc and nuvoton-cir module

PostPosted: Jul 14th, '11, 20:27
by djennings

Re: lirc and nuvoton-cir module

PostPosted: Jul 25th, '11, 22:14
by zeke
This can be marked as solved....Thomas Bonell from the lirc listserv has provided the solution:
thanks to djennings, we have lirc 0.9.0 (see linked post)....as he writes:
"To do so I had to do the following:

1. Install LIRC 0.9.0 (from a RPM built for myself).

2. Configure LIRC daemon properly, with this /etc/sysconfig/lircd: http://pastebin.com/42iUnd7S

3. Configure LIRC remote properly, with this /etc/lircd.conf: http://lirc.sourceforge.net/remotes/dev ... f.devinput

4. Restart LIRC. At this point, you should be able to talk to your remote through LIRC, you can check this by executing irw.



5. I do not know if this change affects the final result, but I did anyway. You must tell Xorg to ignore the remote control, otherwise they would handle it as a keyboard. How? Adding the file / usr/share/X11/xorg.conf.d/11-evdev-quirks.conf with this content: http://pastebin.com/Nwje38mP

6. In my own case, I use the remote control to handle XBMC. I had to change Lircmap.xml according the new configuration of the remote. I added to my /usr/share/xbmc/system/Lircmap.xml this lines: http://pastebin.com/1wYQ2hCV

7. Enjoy!"