SlackwareThis Forum is for the discussion of Slackware 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.
This time I need some pointers on getting lirc (lircd, more specifically) to LOAD.
I was reading the lirc manual, and I became totally confused! It is meant for ANY DISTRO, and begins at such a "early" stage of the process that I got lost! I have a Hauppauge WinTV PVR 150 tv / capture card INSTALLED and WORKING FINE (now, thanks to a lot of help from you good folks out there!); that card has the IR receiver that I will use, as well as the sensor that detects the IR signals...
I believe that all DRIVERS are installed that I require, but I can't be sure! The lirc manual talks about "rebuilding the kernel" and such, and I really don't think that I will need to do this with Slackware 13.37, will I? I have performed an:
"ls -l /dev/lirc*"
and no device was found! Is the "lirc" device not supposed to be called "/dev/lirc" or "/dev/lirc0" or something similiar? Or would I only see this device AFTER the lircd daemon is running? Gosh, this seems convoluted! I'm still not grasping some fundamental concepts here!
So, what I need help doing is :
1) What do I need to do to get the lircd daemon up and running? How do I test for this after I have performed the steps?
2) I know that the lirc package from SlackBuilds comes with a hauppauge version for the .lircd.conf file, named "lircd.conf.hauppauge", as well as a lircmd.conf file named "lircmd.conf.hauppauge"; I believe that I simply need to copy these two files to their correct location ("/etc", and NOT "/etc/lirc" as the documentation for lirc maintains?) renaming them (respectfully) "lircd.conf" and "lircmd.conf"; what else must I do before I can get the lircd daemon running? Can someone provide me with a sample commandline to perform the loading?
3) When I try and run "lircd", I get the following message:
"lircd: can't open or create /var/run/lirc/lircd.pid"
"lircd: No such file or directory"
What does this mean, exactly? I don't know anything about "sockets", so I don't know what I am looking at, here!
With any help you might provide, please give PROFUSE EXPLANATIONS about what each step is doing, and where I might find more info. on the subject(s)! I really want to LEARN how to do this stuff, but, for right now, it's all just a little too confusing! I am pretty sure I know how to utilize apps. like "irexec" to perform a task when a specific key on my remote is pressed, and I can fairly well follow along with the other docs. I have encountered on using an IR remote to control specific tasks; now I just need to load the daemon!
For specifics, I am running the 32-bit version of Slackware 13.37, and I have never re-compiled the kernel or anything like that!
My system is still "cherry"!
I think maybe just getting me to a point in the lirc manual where the lircd daemon is "up and running", so that I can IGNORE all of the preliminary, non-pertinent info. would be what I am actually after, because I am fairly certain that a LOT of the early parts of the manual do NOT apply to those of us using Slackware 13.37!? Am I correct in my thinking here?
Now, I just had a "feeling" (or, maybe I recalled something...), but I thought that I should try and load the "lirc_i2c.ko" driver...; so I typed:
"modprobe lirc_i2c"
And after this, I typed:
"/etc/rc.d/rc.lircd start"
and finally I received a "successful" response:
Starting the LIRC daemon:
/usr/sbin/lircd -d /dev/lirc/0 --release
Creating /dev/lircd sym link to /var/run/lirc/lircd.
/dev/lircd exists.
Starting the irexec daemon:
/usr/bin/irexec -d /etc/lircrc
Then, I tried lsmod | grep lirc AGAIN (to confirm), and this time I received:
I am NOT SURE. but I think that "lirc_i2c.ko" IS the correct driver I need? Do you know?
Anyways, I am farther along now than I was!
Thanks a TON!!!
However, I am still having difficulty determining whether or not the system is actually recognizing button-presses on the remote! I know that a lirc driver is RUNNING, but I have yet to actually have irexec DO ANYTHING in response to my remote! I tried using irw, but get no responses to buttone presses on the remote AT ALL (and I have tried ALL of my Hauppauge-based lircd.conf data files)!
I have a small collection of different "data sets" for the lircd.conf file that are SUPPOSED to be hauppauge-remote parameters, but, so far, none of them have worked!
I have also tried to use the "irrecord" app., but I can not seem to get it to work! I keep getting
different error messages! Here is the outputs from one of my attempts:
> irrecord
irrecord - application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)
irrecord: could not get file information for /dev/lirc
irrecord: default_init(): No such file or directory
irrecord: could not init hardware (lircd running ? --> close it, check permissions)
Yes, lircd WAS RUNNING...; so how do I "check permissions" for it? I know about FILE permissions, and about program execution permissions, but if I have already RAN "rc.lircd" successfully, then what could be wrong with "permissions" in this case? I really do not understand what it wants me to do here! And, what is "default_init()? I didn't see anythin about it in the docs. / man pages...!
The source of my earlier problem with this situation was that I did not even know how to CHECK to see if a specific driver was loaded or not, so you really helped me out a lot! I just really do not know how to proceed at this point...; if I could just get the system to acknowledge ONE BUTTON PRESS on the remote, I think I'd have it all squared!!!
According to this page the i2c driver seems correct. You might want to read that page for other tips about the remote.
I don't know why the lirc_i2c driver is not being loaded automatically. You might want to look into that.
Using irw is not obvious. Open a terminal window and run the command. Nothing will happen until you start pressing buttons with the remote control device. Terminate irw by pressing Ctrl-C. If you are seeing no response then my first guess is the lircd.conf file is incorrect. This page might help: http://wiki.linuxmce.org/index.php/A...0_Remote_Setup
I don't remember the reasons or story, but I ran into similar problems with respect to /dev/lirc. If you look at my rc.lircd startup script, you'll notice I run a check for /dev/lirc. If that device node does not exist my script creates a sym link to /var/run/lirc/lircd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.