Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104677 - lirc udev says /dev/lirc/0 but conf.d/lircd says /dev/lirc0
Summary: lirc udev says /dev/lirc/0 but conf.d/lircd says /dev/lirc0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 111820
Blocks: 120139
  Show dependency tree
 
Reported: 2005-09-02 23:40 UTC by Ginsu
Modified: 2006-02-20 00:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
files/lircd.conf.patch (lircd.conf.patch,248 bytes, patch)
2005-10-17 10:31 UTC, Christoph Gysin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ginsu 2005-09-02 23:40:26 UTC
The udev rule lirc 0.7.2 installs makes udev create a /dev/lirc/0 node but the
/etc/conf.d/lircd config file it installs says to use /dev/lirc0 by default.

Reproducible: Always
Steps to Reproduce:
Comment 1 Surakshan Mendis 2005-09-18 00:56:37 UTC
bingo, this *MUST* to be corrected.
Since kernel 2.6.13 was released I had to use 0.7.2 so my lirc_gpio module would
compile.

The affect of this bug is as follows, lirc starts, syslog see's this
Sep 18 15:47:07 synapse lircd-0.7.2[8322]: accepted new client on /dev/lircd
Sep 18 15:47:07 synapse lircd-0.7.2[8322]: could not open /dev/lirc
Sep 18 15:47:07 synapse lircd-0.7.2[8322]: default_init(): Is a directory
Sep 18 15:47:07 synapse lircd-0.7.2[8322]: caught signal
Sep 18 15:48:59 synapse lircd-0.7.2[8362]: lircd(leadtek_0010) ready

So far so good, but the minute you try do something like run irw, lircd dies,
syslog gets this
Sep 18 15:47:07 synapse lircd-0.7.2[8322]: accepted new client on /dev/lircd
Sep 18 15:47:07 synapse lircd-0.7.2[8322]: could not open /dev/lirc
Sep 18 15:47:07 synapse lircd-0.7.2[8322]: default_init(): Is a directory
Sep 18 15:47:07 synapse lircd-0.7.2[8322]: caught signal

After playing around i figured out that starting lircd manually with the -d
option as follows  lircd -d /dev/lirc/0 works so I came to post a bug.

But of course now I've discovered that the you set this option in
/etc/conf.d/lircd so setting the correct location fixes. But it's broken by
default and is an easy fix!

Comment 2 Christoph Gysin 2005-10-17 10:31:52 UTC
Created attachment 70859 [details, diff]
files/lircd.conf.patch

change the default lirc device from /dev/lirc0 to /dev/lirc/0
Comment 3 Radek Podgorny 2005-12-11 06:59:12 UTC
I had to elaborate today to find out the same thing. Please, fix this one.
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2006-02-20 00:43:37 UTC
thx, fixed in 0.8.0