Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141841 - LIRC 0.8.0-r4 + Kernel 2.6.17-r4: no /dev/lirc/ entries created
Summary: LIRC 0.8.0-r4 + Kernel 2.6.17-r4: no /dev/lirc/ entries created
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Matthias Schwarzott
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-26 18:34 UTC by Kevin Worth
Modified: 2006-08-02 11:19 UTC (History)
2 users (show)

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


Attachments
lirc-0.8.0-2.6.17-bttv-fix.patch (lirc-0.8.0-2.6.17-bttv-fix.patch,1.04 KB, patch)
2006-07-27 14:23 UTC, Sander Sweers
Details | Diff
2nd try (lirc-0.8.0-2.6.17-bttv-fix.patch,1.04 KB, patch)
2006-07-29 07:28 UTC, Sander Sweers
Details | Diff
Last one, promise (lirc-0.8.0-bttv-kernel-2.6.17.patch,1.08 KB, patch)
2006-07-29 07:34 UTC, Sander Sweers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Worth 2006-07-26 18:34:58 UTC
From the changelog it looks like the way lirc interacts with udev has changed a bit. I have tried unmerging lirc, re-emerging, and downgrading. I upgraded to lirc-0.8.0-r4 and 2.6.17-r4 at the same time so I am thinking it is something to do with 2.6.17 kernel or changes to udev interaction with lirc.

Long story short the /dev/lirc/0 device is never created. Modules load just fine. Do I need to manually run mknod in the new version of lirc or should udev do this for me?

I have tried compiling with and without the udev USE flag, but it doesn't seem to change.

Note I am using the hauppauge driver (and modprobing lirc_i2c).
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-26 18:45:04 UTC
Works fine here... udev version you are using?
Comment 2 Kevin Worth 2006-07-26 18:52:07 UTC
(In reply to comment #1)
> Works fine here... udev version you are using?
> 

portage says udev-087-r1
Comment 3 Matthias Schwarzott gentoo-dev 2006-07-26 22:37:19 UTC
Since lirc-0.8.0-r1 there was no big change, only a few small things.
1. Support for usbirboy -> Only a new depend.
2. Changed Parameter when no device-type is set
3. By default set device the daemon uses to /dev/lirc/0 - when not using usbirboy
4. Removing a define garanteeing usage of /dev/lirc/0 before 3 was realized (forcing define LIRC_HAVE_DEVFS).
5. Installing udev-rules-file conditional by udev-ude-flag.
6. Adding an commented out /etc/modules.d/lirc
7. Adding a patch for lirc to work also with kernel-2.6.18(rc).

I suspect your problem is either with point 7 or point 4.
The only change to udev-file is that in the first comparison the "=" was replaced by "==".


First try to comment the line "epatch ${FILESDIR}/${P}-kernel-2.6.18.diff".
Perhaps this patch is a little bit to invasive.
Comment 4 Kevin Worth 2006-07-26 23:26:03 UTC
(In reply to comment #3)

Tried commenting out 2.6.18.diff as well as udev-904.diff. Neither seemed to have the desired effect.

What should actually create the /dev/lirc/ devices? Do they get created when you modprobe lirc_dev?

Also, what effect does the udev use flag have? Should most people have it enabled if they are using udev?
Comment 5 Matthias Schwarzott gentoo-dev 2006-07-27 06:19:13 UTC
The udev use-flag does only control weather /etc/udev/rules.d/10-lirc.rules gets installed.

What you also can control is if there are entries under /sys/class/lirc/ existing.

Can you eventually try to use your older Kernel (if you have not deleted it) in combination with lirc-2.6.17-r4?

I personally use lirc-0.8.0-r4 with Kernels 2.6.16.20, and 2.6.17-gentoo-r1 with the lirc_serial driver.
Comment 6 Kevin Worth 2006-07-27 08:57:33 UTC
(In reply to comment #5)

OK, using kernel 2.6.16-r13 works. Note that I also had to step my ivtv driver back to 0.6.3 as 0.7.0 require 2.6.17 kernel... the tv tuner and the remote are on the same device so it's hard to tell whether this stops working because of the new kernel or the new ivtv version. However, since it sounds like you have the serial lirc module working, perhaps I need to talk to the ivtv folks.
Comment 7 Kevin Worth 2006-07-27 11:28:26 UTC
Aha... see below. 


From: Sander Sweers <sander.sweers@gmail.com>	
Reply-To: User discussion about IVTV <ivtv-users@ivtvdriver.org>
To: User discussion about IVTV <ivtv-users@ivtvdriver.org>
Date: Jul 27, 2006 9:21 AM
Subject: Re: [ivtv-users] lirc 0.7.0 + kernel 2.6.17 = no /dev/lirc/ entries

On 27/07/06, Kevin Worth <kworth@gmail.com> wrote:
> I am using Gentoo, running gentoo-sources-2.6.17-r4 with lirc-0.7.0-r4
> ebuilds. However, my /dev/lirc/0 device never gets created when I
> modprobe lirc_i2c to use the hauppauge remote. I tried stepping back
> to kernel 2.6.16 + lirc 0.6.3 and it works fine.
>
> Not sure if this is an lirc, kernel, or ivtv bug, but the maintainer
> for Gentoo's lirc has 0.7.0 running fine on 2.6.17 using the
> lirc_serial driver. Anyone have any suggestions or have this working?
>

You will need to get lirc from cvs to get this to work. AFAIK it had
to do with a name change in the bttv driver.

Greets
Sander

PS: Also on gentoo ;-)

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Comment 8 Sander Sweers 2006-07-27 12:08:55 UTC
The below link/patch should fix the issue.
http://tinyurl.com/ptnkc
Comment 9 Matthias Schwarzott gentoo-dev 2006-07-27 13:10:56 UTC
(In reply to comment #8)
@Kevin:
Can you please try out if this patch works for you.
> The below link/patch should fix the issue.
> http://tinyurl.com/ptnkc
If yes, I will add it to the lirc-ebuild.

PS: it is 0.8.0 not 0.7.0

Comment 10 Sander Sweers 2006-07-27 14:23:27 UTC
Created attachment 92874 [details, diff]
lirc-0.8.0-2.6.17-bttv-fix.patch

The above link/patch was only 1 of 2 commits. This patch is both combined. I have tested it with kernel 2.6.17 but it broke kernel 2.6.15 for me.
Comment 11 Kevin Worth 2006-07-27 16:00:13 UTC
(In reply to comment #10)

Sounds good I will try that- I don't know enough about how some of these patches work. Should I add an epatch line with the diff you attached to the current lirc ebuild to test? Here is some info from Sander on the ivtv mailing list. :

>I checked lirc cvs and i'm pretty sure this change is the fix. Could
>you try it? If it works for you i'll submit a bug report b.g.o with a
>patch.
>http://lirc.cvs.sourceforge.net/lirc/lirc/drivers/lirc_i2c/lirc_i2c.c?r1=1.37&r2=1.38
>
>Greets
>Sander
Comment 12 Kevin Worth 2006-07-27 16:01:23 UTC
lol ignore above comment.. I hadn't seen Sander was replying directly to this bug
Comment 13 Rob Ostensen 2006-07-28 20:19:52 UTC
(In reply to comment #10)
> Created an attachment (id=92874) [edit]
> lirc-0.8.0-2.6.17-bttv-fix.patch
> 
> The above link/patch was only 1 of 2 commits. This patch is both combined. I
> have tested it with kernel 2.6.17 but it broke kernel 2.6.15 for me.
> 

The edit line needs to have a '{' in there somewhere.
Comment 14 Sander Sweers 2006-07-29 07:28:29 UTC
Created attachment 93001 [details, diff]
2nd try

An { was left out by accident. Uploading new patch
Comment 15 Sander Sweers 2006-07-29 07:34:31 UTC
Created attachment 93002 [details, diff]
Last one, promise

It helps if I actually attach the correct patch :|
Comment 16 Scott Jubenville 2006-07-30 19:44:38 UTC
Patch worked great Sander. Sooner we can get a lirc bump in portage with this patch it will save a ton of people issues now that gentoo-sources-2.6.17-r4 was marked stable and people will start to upgrade and hit this problem.
Comment 17 Matthias Schwarzott gentoo-dev 2006-07-31 02:04:24 UTC
Added the patch to new ebuild-revision lirc-0.8.0-r5.
Comment 18 Kevin Worth 2006-08-02 11:19:54 UTC
(In reply to comment #17)
> Added the patch to new ebuild-revision lirc-0.8.0-r5.
> 

Tested on my machine with kernel 2.6.17-r4 + lirc 0.8.0-r5 and it is working nicely. Thanks!