Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275527 - sys-fs/udev-141: No longer creates /dev/v4l/ dir and /dev/video -> /dev/video0 symlink
Summary: sys-fs/udev-141: No longer creates /dev/v4l/ dir and /dev/video -> /dev/video...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 19:58 UTC by Joerg Schaible
Modified: 2009-09-12 20:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schaible 2009-06-26 19:58:49 UTC
After the update to udev-141 my tv card with saa7134 chipset stops working (loading module saa7134_empress). With udev-124-r2 devices are created for /dev/video[0] linked to v4l/video. With kdetv I can use v4l or v4l2 driver to watch TV. However, after an update to udev 141 kdetv does no longer find any valid video card (nor does mplayer). It seems that this udev version creates /dev/video using v4l2, but something is wrong.

Reproducible: Always

Steps to Reproduce:
1. emerge udv-141
2. use video device
3. 

Actual Results:  
no valid video device is found

Expected Results:  
video device should be valid and working
Comment 1 Szymon Zygmunt 2009-06-29 21:00:02 UTC
(In reply to comment #0)
> After the update to udev-141 my tv card with saa7134 chipset stops working
> (loading module saa7134_empress). With udev-124-r2 devices are created for
> /dev/video[0] linked to v4l/video. With kdetv I can use v4l or v4l2 driver to
> watch TV. However, after an update to udev 141 kdetv does no longer find any
> valid video card (nor does mplayer). It seems that this udev version creates
> /dev/video using v4l2, but something is wrong.

Probably I have the same issue. udev-141 doesn't create symlinks for /dev/video -> /dev/video0, /dev/radio -> /dev/radio0, /dev/lirc -> /dev/lirc0. I had to modify configuration for lirc (/etc/conf.d/lirc) and gnomeradio, because after upgrade to udev-141 they can't start.
I downgraded to 124-r2 and now everything is ok.

Comment 2 Christopher Smith 2009-07-01 07:19:12 UTC
Udev 141 is broken for me also.  It fails to create symlinks.  Did the rules udev rules change?
Comment 3 Zorzo Luca 2009-07-07 19:26:57 UTC
For me it is the same.
I'm worried about 15 missing rules with this new stable udev, the one that manages v4l is 40-video.rules. I don't know about others.
Comment 4 Matthias Schwarzott gentoo-dev 2009-07-07 20:33:33 UTC
(In reply to comment #1)
> 
> Probably I have the same issue. udev-141 doesn't create symlinks for /dev/video
> -> /dev/video0, /dev/radio -> /dev/radio0, /dev/lirc -> /dev/lirc0. I had to
> modify configuration for lirc (/etc/conf.d/lirc) and gnomeradio, because after
> upgrade to udev-141 they can't start.
> I downgraded to 124-r2 and now everything is ok.
> 
udev upstream removed these, as they are considered unneeded and are only used by old software as it seems.
See here for the relevant part of the discussion:
http://thread.gmane.org/gmane.linux.hotplug.devel/13498/focus=13547
Comment 5 Matthias Schwarzott gentoo-dev 2009-07-07 20:37:03 UTC
(In reply to comment #0)
> After the update to udev-141 my tv card with saa7134 chipset stops working
> (loading module saa7134_empress). With udev-124-r2 devices are created for
> /dev/video[0] linked to v4l/video. With kdetv I can use v4l or v4l2 driver to
> watch TV. However, after an update to udev 141 kdetv does no longer find any
> valid video card (nor does mplayer). It seems that this udev version creates
> /dev/video using v4l2, but something is wrong.

udev does not have anything todo with v4l or v4l2 usage.
If the kernel makes a device video0, udev will create it, regardless of it supporting v4l or v4l2.
yes, udev-141 does not create a link /dev/video to /dev/video0. But that should not stop you from using your video card.

Does all your software tries to use the /dev/video symlink?
Comment 6 Matthias Schwarzott gentoo-dev 2009-07-07 20:38:37 UTC
(In reply to comment #3)
> For me it is the same.
> I'm worried about 15 missing rules with this new stable udev, the one that
> manages v4l is 40-video.rules. I don't know about others.
> 
If you compare the complete rulesets you see that a lot of rules moved from gentoo specific 40-video.rules into the generic 50-udev-default.rules.

So please explicitly list the ones you miss, so we can check if they might harm.
Comment 7 Zorzo Luca 2009-07-08 06:57:20 UTC
The only one i've noticed is 40-video.rules.. Some stable applications use /dev/v4l/ symlinks by default (i know alevt). Maybe we can add a rule for them, also if it was removed by upstream.
Comment 8 Matthias Schwarzott gentoo-dev 2009-07-08 12:05:36 UTC
(In reply to comment #7)
> The only one i've noticed is 40-video.rules.. Some stable applications use
> /dev/v4l/ symlinks by default (i know alevt). Maybe we can add a rule for them,
> also if it was removed by upstream.
> 
I talk about rules - that are text lines inside the files, not about files/filenames.
40-video.rules was removed in udev-134.
The contained rules were either moved to 50-udev-defaults.rules (the group=video stuff).

From what I know I say that /dev/v4l/ is a deprecated naming convention of devfs that is no longer supported since file 40-video.rules got removed.
Please file bugs about software still using these names.

If you really want to keep it, just add rules like this to a private rules-file:
KERNEL=="video[0-9]*", SYMLINK+="v4l/%k"
Comment 9 Matthias Schwarzott gentoo-dev 2009-09-05 12:35:31 UTC
Please reopen if these rules are still needed.
Comment 10 Joerg Schaible 2009-09-05 18:40:58 UTC
Do you know, which version of udev claims to have a fix for this then?
Comment 11 Matthias Schwarzott gentoo-dev 2009-09-06 11:53:43 UTC
(In reply to comment #10)
> Do you know, which version of udev claims to have a fix for this then?
> 
What is a fix in your sense? Adding back the link video->video0 ?
This was explicitly removed at udev upstream with this commit:
commit 6b956a99836b936ee252243d9d0680318aaf3f0a
Author: Kay Sievers <kay.sievers@vrfy.org>
Date:   Mon Dec 22 13:34:54 2008 +0100

    rules: remove legacy symlinks
Comment 12 Joerg Schaible 2009-09-12 20:53:51 UTC
The original summary of this issue stated that my TV card based on the saa7134 chipset stopped working. And this is although I am using the v4l2 driver of kdetv. A "fix in my sense" means an udev version that does not suddenly drop this support.