Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to get a remote controller running on my slack64 13.1 machine and need some guidance. I know the computer sees the remote because of the steps below. I also understand I need to put a config file in the /etc/lirc folder.
The lirc website does not have lircd.conf file for this remote. I checked in the philips & dell subdirs.
So far here's what I did:
Load lirc_mcdusb & lirc_dev modules using modprobe (I tried lirc_mceusb2 as well) They nornally load automatically at boot time.
Start lircd with
Code:
/usr/sbin/lircd -d /dev/lirc/0
. lircd automatically start at boot time, but I think it doesnt use the -d switch with /dev/lirc/0 as my command above.
Tested with running
Code:
cat /dev/lirc/0
When I press the remote keys, I see output in the terminal. Sign that the computer sees the remote no?
But irw shows no output whatsoever.
I tried to create a custom lircd.conf file using irrecord but I get:
Code:
root@htpc:/etc/lirc# irrecord dell_usb
irrecord - application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)
irrecord: could not open /dev/lirc
irrecord: default_init(): Is a directory
irrecord: could not init hardware (lircd running ? --> close it, check permissions)
thanks for replying to my question! I tried the command as ytou suggested and it worked! I recorded my remote to a file named dell_usb and then copied the file as lircd.conf to /etc/lirc/
Then I restarted the lirc daemon and tried irw, but no output... There seems to be no lircd.conf file already prepared for this remote...
OK I tried for a few weeks now to get this lirc crap to work and still no go. I know I shouldn't get frustrated but eh...
Now I have 3 remotes I can try with. Here's my setup:
-Slackware64 13.1 with lirc 0.8.6 (stock from slack)
-A DELL MR425 mini remote that came with my XPS laptop (http://www.battery-online.org/images/MR425.jpg)
-A DELL RC1974009 (Philips?) remote that also came with my XPS laptop. THis remote also came with its own IR receiver. It is described in my previous posts. (http://www.txcesssurplus.com/catalog...te-control.jpg)
-A new logitech harmony One remote.
Basically I am at the same exact spot as I was when I opened this thread. Seems that everybody are setting up lirc differently and everything I try fails...
I am not going to use the dell remotes on my htpc, but will definitely use the logitech one. So basically I can use the dell remotes to troubleshoot, test and play around to make sure the system works, but ultimately I need the harmony to work.
Here's what I did so far:
1-Because I couldn't find a conf file for the RC1974XXXX remote (seems that nobody uses this one) I went to http://lirc.sourceforge.net/remotes/dell/MR425 to retrieve the lircd.conf file for my dell mr425 remote and saved it as /etc/lircd.conf
2-killed lircd (there is no rc script to start/stop this process?)
3-plugged the IR received in the USB port
4-started lircd with... "lircd" ...
5-typed "irw" to test the remote => no output whatsoever...
this is where I am.
I'd be extremely thankful for any indications or instructions.
EDIT: I tried to install lirc from the git site and I think it failed, trying to start it was complaining about missing shared libraries...
Lirc must be the most poorly documented thing I've seen in a long time. How can I reinstall the modules? Debian users and ubuntu users are discussing about lirc-modules-sources but doing tons of googling and research with slackware in the keywords returns only insugnificant results and primitive results.
Where can I get the drivers? I swear I did not uninstall the modules, not coming by the means of a package I would have had a hard time to remove them...
OK I had the same thing with 0.8.6, I saw the drivers in the drivers folder of the source files, but I am clueless as to how to compile them cause I need to compile them right? Then after compilation, where I should dump them so lirc can find them? I guess its modprobe that will load/unload the modules right?
Other question I have: considering that I want to use my logitech harmony remote, I think the lirc_mceusb2 module is what I need (I will double check that) but it is not included in the src files, so can i get the code somewhere else and compile/install independently of the other drivers from the lirc sources?
Once I have the modules installed, I will retry with a proper lirc.conf file and go from there.
They have decent documentation in the tar files.
You can check the INSTALL file (or if it not engouh doc/html/index.html) to see how to compile and install lirc (including the modules).
Quote:
./setup.sh && make install
might be enough to install lirc daemon and modules.
For the second question "Historically, there were separate 1st-gen and 2nd-gen drivers, lirc_mceusb and lirc_mceusb2. They were merged into a single lirc_mceusb driver as of lirc 0.8.6". Source: http://www.mythtv.org/wiki/MCE_Remote
Ok you are right about the lirc_mceusb module... it has been merged with lirc_mceusb2 that is now obsolete:
Quote:
The functionality of the lirc_mceusb2 driver has been merged into the lirc_mceusb driver. The lirc_mceusb2 driver is now obsolete and has been removed. You should use lirc_mceusb from now on.
Now that I installed lirc 0.8.7 and its modules, I searched for the lircd daemon to start it and went, according to the INSTALL file in the source files in /usr/bin/. Here's what I have there:
OK good news... AT least I got past the last steps.
Because of sound issues, I had to upgrade my kernel and now I am using kernel 2.6.37 and lirc 0.9.0-pre1 (the last release 0.8.7 would not run on this new kernel)
now lirc is properly installed, configured and all modules are installed and loading without glitches. I still cant use the remotes. Basically, irw will not generate any output. This might be associated to several problems, but looking at my /var/log/lircd log, I've found these lines:
Jan 13 22:30:00 htpc lircd: lircd(default) ready, using /var/run/lirc/lircd
Jan 13 22:30:04 htpc lircd: accepted new client on /var/run/lirc/lircd
Jan 13 22:30:04 htpc lircd: could not get hardware features
Jan 13 22:30:04 htpc lircd: this device driver does not support the LIRC ioctl interface
Jan 13 22:30:04 htpc lircd: major number of /dev/lirc/0 is 244
Jan 13 22:30:04 htpc lircd: LIRC major number is 61
Jan 13 22:30:04 htpc lircd: check if /dev/lirc/0 is a LIRC device
Jan 13 22:30:04 htpc lircd: WARNING: Failed to initialize hardware
Jan 13 22:30:23 htpc lircd: removed client
Thatd be why irw dont output anything. I am confused as to how to interpret this ???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.