[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev rules for 2 identical webcams + 1 spare cam



On Tue, 12 Jul 2011 17:13:22 +0200, Tuxoholic wrote:

(...)

> I already figured out idProduct and idVendor of the spare cam and the
> Logitech Quickcams using udevadm:
> 
> $ cat /etc/udev/rules.d/10-webcam.rules: 
> SUBSYSTEM=="video4linux", ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="62c0", Name="video0"
> 
> SUBSYSTEM=="video4linux", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="08a2", Name="video%n"

Why "video%n"? Why not using a fixed name for each Logitech webcam? 

Just curious O:-)

> This produces an occasional permission slip in video2:
> 
> $ ls -la /dev/video*
> crw-rw----+ 1 root video 81, 2 12. Jul 16:15 /dev/video0 
> crw-rw----+ 1 root video 81, 1 12. Jul 16:15 /dev/video1 
> crw-------  1 root root  81, 2 12. Jul 16:15 /dev/video2
> 
> 
> This never happens if I plug in the 2nd Quickcam *after* system bootup,
> it only happens when both are already plugged in *while* the system is
> booting up.

Have you tried to enforce the permissions of the webcams 
(owner/group/mode)?

Controlling permissions and ownership
http://www.reactivated.net/writing_udev_rules.html#ownership

Greetings,

-- 
Camaleón


Reply to: