[SOLVED] lirc and nuvotron-cir driver

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] lirc and nuvotron-cir driver

Postby zeke » Jun 19th, '11, 22:11

I am running Mageia on an ASRock 330HT NVidia-ION system. It comes with the Nuvoton w836x7hg IR receiver and a mceusb style remote.

I am trying to get the remote working, but have had no luck so far.

the nuvoton-cir driver is in the kernel and is loaded, and I have tried several different lircd.config files, changed hardware profile line in /etc/sysconfig/lircd. Still I can't get any response from irw

So I think it may be related to the point X3lectric makes in this post.
http://forum.xbmc.org/showthread.php?p=814625

I have tried to compile the sensor drivers as described in the page linked from his sig inthe xbmc forum, but it fails, missing headers (I have the kernel-devel rpm installed).

KDElirc sees remotes and I can configure them, but there is no response - i presume for the same reason irw is not seeing any signal.

I am running the current repo version of lirc (0.8.7 IIRC) and kernel-desktop586-current.

Any help would be much appreciated...hopefully someone out there has much more understanding of lirc than I do!
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42

Re: lirc and nuvotron-cir driver

Postby djennings » Jun 19th, '11, 23:01

There are problems with lirc-0.8.7-1 in Mageia 1 It is incompatible with the 2.6.38 kernel in Mageai 1
See https://bugs.mageia.org/show_bug.cgi?id=1265
I resolved the problem by building an RPM for lirc-0.9.0 which works for me.
I could share the rpm with you, but it is for x86_64 architecture.

As a workaround you could try installing a kernel from Mandriva 2010.1 and install dkms-lirc so a kernel module gets built when you boot into the Mandriva kernel.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: lirc and nuvotron-cir driver

Postby zeke » Jun 20th, '11, 01:59

Thanks, at one time I thought I had read about problems with lirc<0.9, but then others (on other distros) were getting it to work.

I am downloading the x64iso, and will install tonight. Assuming I can get huludesktop to run, I have no problem moving this machine to 64bit, and would very much appreciate your rpm!

I gave some thought to compiling myself, but couldn't figure out how to specify the correct driver in the precompile lirc configuration.
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42

Re: lirc and nuvotron-cir driver

Postby djennings » Jun 20th, '11, 02:16

You can find lirc 0.9.0 at http://dl.dropbox.com/u/285824/lirc-0.9.0-1dj1.x86_64.rpm
You will also need dkms-lirc to build the kernel module
http://dl.dropbox.com/u/285824/dkms-lirc-0.9.0-1dj1.x86_64.rpm

The rpms are unsigned so do not be surprised if you get a warning from urpmi when you install them.

Hope it works for you
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: lirc and nuvotron-cir driver

Postby zeke » Jun 20th, '11, 17:00

Brilliant!

Worked great. Have you been able to remap the OK key to Enter though?
The original lircd.conf file had these mappings:

OK 0x00007bdd
Enter 0x00007bf4

I changed OK to 0x00007bf4, but no dice.

I don't really understand these mappings as ir-keytable outputs different signals from these keys when I press them.

Finally, I am still trying to get the suspend working. I created a /etc/pm/sleep.d file, and modified the /etc/rc.d/rc.local file as described in this thread:

(I changed the driver from lirc_wb677 to lirc_dev), and it wakes, but won't sleep.

Thanks again djennings, this is the best I have had this box functioning since I got it almost a year ago!!!!
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42

Re: lirc and nuvotron-cir driver

Postby djennings » Jun 20th, '11, 23:01

Jolly good. :D

Your lirc mappings will depend on your control. I got mine from a link on the MythTV wiki. There is good advice there even if you are not using MythTV
http://www.mythtv.org/wiki/LIRC
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: lirc and nuvotron-cir driver

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

This can be marked as solved!

Thanks to Thomas Bonell on the lirc listserv for the solution:

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

Re: [Solved] lirc and nuvotron-cir driver

Postby Annubis » Dec 7th, '11, 12:21

Hey! I'm Tomàs Deltell, not Thomas Bonell :P
User avatar
Annubis
 
Posts: 10
Joined: Dec 5th, '11, 11:01


Return to Basic support

Who is online

Users browsing this forum: sturmvogel and 1 guest