[SOLVED] lirc and nuvoton-cir module

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] lirc and nuvoton-cir module

Postby zeke » Jul 12th, '11, 23:04

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!
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42

Re: lirc and nuvoton-cir module

Postby djennings » Jul 14th, '11, 20:27

User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: lirc and nuvoton-cir module

Postby zeke » Jul 25th, '11, 22:14

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!"
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron