LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-03-2007, 03:22 PM   #1
broxtor
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Linux Mint 19.1
Posts: 99

Rep: Reputation: 16
lircd issues: Won't start at boot


I'm trying to get lirc to work with my hauppage PVR 350 tv card. But I'm having some difficulties.

I followed the guide at: http://www.mythtv.org/wiki/index.php...buntu_Edgy_Eft
I've done every step in this guide and encountered no errors. The problem is that lircd won't start at boot. When I try to start it manually with 'sudo /etc/init.d/lirc start', it looks like it starts. But as soon as I type 'irw' lirc dies immediately. The log says the following:
lircd: lircd(hauppauge) ready
lircd: accepted new client on /dev/lircd
lircd: could not open /dev/lirc
lircd: default_init(): Is a directory
lircd: caught signal

When I perform the following steps I do get it to work, but I have to do this every time I booted.

sudo chmod 666 /dev/lirc

At this point when I do: ls -l /dev/lirc I get the following output:
?--------- ? ? ? ? ? /dev/lirc/0

When I now start 'sudo lircd -d /dev/lirc/0' irw works and I can receive signal. Does anyone have an idea how to solve this issue?

Additional info:
lsmod | grep lirc:
lirc_i2c 10244 0
lirc_dev 14676 1 lirc_i2c
i2c_core 21776 12 i2c_ec,cx88xx,bttv,lirc_i2c,msp3400,saa7127,saa7115,tuner,nvidia,ivtv,i2c_algo_bit,tveeprom

dmesg | grep lirc:
[ 24.296000] lirc_dev: IR Remote Control driver registered, at major 61
[ 24.308000] lirc_i2c: no version for "lirc_unregister_plugin" found: kernel tainted.
[ 24.544000] lirc_i2c: chip found @ 0x18 (Hauppauge IR)
[ 24.544000] lirc_dev: lirc_register_plugin: sample_rate: 10
 
Old 04-03-2007, 03:31 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
From the sound of it, that is a udev error. The permissions are not properly being set when the module loads, and you have to set them manually. Did you double check that the lirc.rules file it had you create is correct? Are there any errors from udev, for that matter?
 
Old 04-03-2007, 03:53 PM   #3
broxtor
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Linux Mint 19.1
Posts: 99

Original Poster
Rep: Reputation: 16
The file /etc/udev/rules.d/90-lirc.rules contained:
KERNEL=="lirc[0-9]*", NAME="lirc/%n", MODE="0666"

The howto guide says it should contain:
KERNEL="lirc[0-9]*", NAME="lirc/%n", MODE="0666"

But changing it (removing a =) didn't do the trick. About the udev errors: I'm not sure. How do I check for UDEV errors? I check /var/log/messages, but it doesn't tell me any udev things.
 
Old 04-04-2007, 11:17 AM   #4
broxtor
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Linux Mint 19.1
Posts: 99

Original Poster
Rep: Reputation: 16
Allright, I found where the udev errors go (/var/log/syslog) and there is indeed an error message. It says: udevd[2437]: add_to_rules: invalid rule '/etc/udev/rules.d/90-lirc.rules:1'

So, apperantly the line KERNEL="lirc[0-9]*", NAME="lirc/%n", MODE="0666" is incorrect.
But I have no idea what I should change it to. Does anyone have a suggestion for me?
 
Old 04-04-2007, 02:24 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I'm not very good with udev rules myself, sadly. I know that you should have the two equal signs after KERNEL (rather than one), but beyond that it looks correct to me. Is that copied and pasted from the file exactly?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot start lircd? kmokrzcyki Linux - Hardware 0 04-03-2007 08:59 AM
lircd starts but then crashes as soon as connection made mattydee Linux - Desktop 2 01-07-2007 04:25 PM
Lirc vs. Lircd jagot Linux - Hardware 2 06-19-2006 02:34 AM
Mandrake 10.1, lircd, lircmd conn-fused Linux - Hardware 0 01-29-2005 07:12 PM
lirc lircd installation freevo mimsmall Fedora 1 05-11-2004 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration