View Full Version : Mint-7/Jaunty kernel 2.6.30 remote control issue


kwisher
07-12-09, 11:41 PM
I just upgraded my Myth box to Mint-7/Jaunty and updated the kernel to 2.26.30. My two Kworld-115 analog tuners now function correctly but my Microsoft MCE USB receiver and remote do not work. The first time I hit a button on the remote the red light on the receiver comes on and stays on.

Anyone have any suggestions where to start?

TIA

wnewell
07-13-09, 02:16 AM
LIRC. First thing I'd do is make sure the button on the remote isn't stuck. Then I'd pull up a terminal and run irw and see if the system is seeing the signals. If not, examine the lircd.conf files, etc. If irw gets the right signals then examine the lircrc file. In both these file cases, some distros use simlinks for everything and some even have bogus lircd.conf files that will really screw you up if you don't know that they pointed the config file to something else in the main lirc config file.

kwisher
07-13-09, 10:05 AM
Please forgive my ignorance, but I have never had to deal with manually troubleshooting lirc issues. Can you please be more specific or provide some useful links to more info?

Thanks

kwisher
07-13-09, 10:30 AM
After doing some searching I tried this:

ran /usr/sbin/lircd -n --driver=default -d /dev/lirc0 in one terminal. Opened another terminal and started irw and received this in the first terminal:

lircd-0.8.4a[32001]: lircd(default) ready
lircd-0.8.4a[32001]: accepted new client on /dev/lircd
lircd-0.8.4a[32001]: could not get file information for /dev/lirc0
lircd-0.8.4a[32001]: default_init(): No such file or directory
lircd-0.8.4a[32001]: Failed to initialize hardware

When restarting lircd:

# /etc/init.d/lirc restart
* Stopping remote control daemon(s): LIRC [fail]
* Loading LIRC modules [ OK ]
* Unable to load LIRC kernel modules. Verify your
* selected kernel modules in /etc/lirc/hardware.conf

Also tried this:

# dpkg-reconfigure lirc-modules-source
Removing all DKMS Modules
Done.
Adding Module to DKMS build system
Doing initial module build

Error! Build of lirc_cmdir.ko failed for: 2.6.30-020630-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/lirc/0.8.4a/build/ for more information.
Installing initial module

Error! Could not locate lirc_atiusb.ko for module lirc in the DKMS tree.
You must run a dkms build for kernel 2.6.30-020630-generic (x86_64) first.
Done.


Does this help?

wnewell
07-14-09, 04:43 PM
Configure /etc/lirc.conf first to match your hardware and file structure. If you don't have an lircd.conf file for your remote, either find one or create it yourself using irrecord. Put lircd.conf in the dir listed in lirc.conf. Start lircd and run irw in a terminal window. There's comments in lirc.config, but being new to lirc I'd highly suggest you read all the lirc docs. Once you understand it, it's not too bad, but there's lots of things that must be right to get it to work properly. You must have a compatible ir receiver and know what driver to use with it. I have no idea what receiver or remote you have.

kwisher
07-14-09, 06:01 PM
Configure /etc/lirc.conf first to match your hardware and file structure. If you don't have an lircd.conf file for your remote, either find one or create it yourself using irrecord. Put lircd.conf in the dir listed in lirc.conf. Start lircd and run irw in a terminal window. There's comments in lirc.config, but being new to lirc I'd highly suggest you read all the lirc docs. Once you understand it, it's not too bad, but there's lots of things that must be right to get it to work properly. You must have a compatible ir receiver and know what driver to use with it. I have no idea what receiver or remote you have.

From what little I know it appears the lirc module did not get included with the new kernel.

wnewell
07-15-09, 03:59 AM
I don't think LIRC has ever been included "in" the kernel. It's just another program.
http://lirc.org/

tux99
07-15-09, 04:48 AM
You are correct LIRC itself is not part of the kernel but LIRC requires a kernel driver module for many/most IR receivers.

kwisher
07-15-09, 09:51 AM
You are correct LIRC itself is not part of the kernel but LIRC requires a kernel driver module for many/most IR receivers.

Any idea on how I can resolve this issue?

wnewell
07-15-09, 01:33 PM
List your make/model/type of IR receiver and remote. List all your lirc config files. Maybe I can see the problem. A search on lirc howto will get you lots of hits too.

kwisher
07-15-09, 02:25 PM
List your make/model/type of IR receiver and remote. List all your lirc config files. Maybe I can see the problem. A search on lirc howto will get you lots of hits too.

lsusb reports this for the receiver:

Bus 002 Device 002: ID 1784:0008 TopSeed Technology Corp.

The receiver and remote were branded as Microsoft but I believe Phillips supplies the actual hardware.

When you say list "all" my lirc config files, can you be more specific as to what files you want? I don't believe this is a config issue. To me the error below states exactly what the problem is:

# dpkg-reconfigure lirc-modules-source
Removing all DKMS Modules
Done.
Adding Module to DKMS build system
Doing initial module build

Error! Build of lirc_cmdir.ko failed for: 2.6.30-020630-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/lirc/0.8.4a/build/ for more information.
Installing initial module

Error! Could not locate lirc_atiusb.ko for module lirc in the DKMS tree.
You must run a dkms build for kernel 2.6.30-020630-generic (x86_64) first.
Done.

wnewell
07-16-09, 02:07 AM
These files.
/etc/lirc/hardware.conf
lircd.conf wherever you put put it.

Do a locate for atiusb and see what you get. All those modules should have been installed when you installed the lirc package. I don't know why it would need an ATI driver if you have an MCE compatible ir receiver. My HP receiver uses mceusb. Newer ones use mceusb2.
I assume you have the kernel sources installed in /usr/src.

wnewell
07-16-09, 02:56 AM
OK I think I see the problem now. The lirc package doesn't contain the kernel modules and they aren't even dependencies on Mandriva 2009.1. I have no idea when they separated them as I don't recall the last time I tried to install the lirc rpm by itself. In Mandriva besides the base lirc package you need to install either the dkms lirc package (and compile them) or the prebuilt lirc kernel modules for the kernel you are using., which would seem to be easier. Have no idea how your distro handles this, but it's probably similar. How utterly stupid this is.

tux99
07-16-09, 04:36 AM
OK I think I see the problem now. The lirc package doesn't contain the kernel modules and they aren't even dependencies on Mandriva 2009.1. I have no idea when they separated them as I don't recall the last time I tried to install the lirc rpm by itself. In Mandriva besides the base lirc package you need to install either the dkms lirc package (and compile them) or the prebuilt lirc kernel modules for the kernel you are using., which would seem to be easier. Have no idea how your distro handles this, but it's probably similar. How utterly stupid this is.

I guess the reason that the prebuilt lirc kernel module package is not a dependency of 'lirc' is because not all IR receivers require a kernel module.
For example my Creative Infra receiver works with the standard serial port kernel driver, not with any special lirc kernel module.

On the other hand I perfectly agree that the whole lirc installation and configuration procedure is not exactly user friendly, it took my quite a while to figure it all out myself despite having many years Linux experience, see this thread for my experience:
http://www.avsforum.com/avs-vb/showthread.php?t=1143935

For this reason I suggested integrating lirc setup into the Mandriva Control Center:
http://ideas.mandriva.com/en/idees/show.php?id=87
We'll see if Mandriva will implement it, meanwhile please vote for it!

kwisher
07-16-09, 09:56 AM
Found this on the LIRC website. Maybe this is why I am having problems. Support only goes to kernel 2.26.29:

lirc-0.8.5 has been tested with kernel versions up to 2.6.29. Older versions should also work. 2.4.x kernels are not supported anymore, but chances are good that it's still working. The last release officially supporting 2.4.x was 0.8.2. Please don't report problems with compilation on 2.4.x kernels, but if you submit a reasonable patch, it will be accepted. 2.2.x kernels are not supported anymore. If you are not able to compile lirc-0.8.5 with more recent kernel versions than given above please use the LIRC CVS version or the latest CVS snapshot. If these also do not work post the relevant information on the LIRC mailing list.

wnewell
07-16-09, 01:52 PM
That just means 2.6.30 wasn't out when they wrote that. There's no reason it won't work with it. Check your sources for the driver codes. usr/src/<version>/etc./etc/...... If they aren't there, they may be included in the lirc tar (don't recall) and they should be in the repository for the distro you are using somewhere. I just dl'd lirc from lirc.org and the drivers are included with it so you can go that route if you can't find the prebuilts. BTW, this is not an lirc problem, but lies square on the heads of the distro developers.