Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #224695

Re: Logitech C310 rule in /etc/udev/rules.d/25-webcam.rules?

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: Logitech C310 rule in /etc/udev/rules.d/25-webcam.rules?
Date 2020-07-11 00:40 +0200
Message-ID <Ar9Qu-5Fl-21@gated-at.bofh.it> (permalink)
References <Ar8KJ-52M-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


John Conover wrote: 
> udevadm info -a -p $(udevadm info -q path -n /dev/video0):
> 
>   looking at device '//devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1.4/1-1.4.1.4:1.0/video4linux/video0':
>     KERNEL=="video0"
>     SUBSYSTEM=="video4linux"
>     DRIVER==""
>     ATTR{index}=="0"
>     ATTR{dev_debug}=="0"
>     ATTR{name}=="UVC Camera (046d:081b)"
> 
> /etc/udev/rules.d/25-webcam.rules:
> 
>     KERNEL=="video[0-9]*", \
>     SUBSYSTEM=="video4linux", \
>     SUBSYSTEMS=="usb", \
>     ATTRS{idVendor}=="046d", \
>     ATTRS{idProduct}=="081b", \
>     SYMLINK+="video-webcam"
> 
> erratically fails, with /dev/video-webcam ln -s to /dev/video0, and
> the camera on /dev/video1, (after PNP.)
> 
> Is "SUBSYSTEMS=="usb"" the issue in the rule?


 SUBSYSTEM
           Match the subsystem of the event device.

 SUBSYSTEMS
           Search the devpath upwards for a matching device subsystem name.

I've seen lots of rules use SUBSYSTEM and none use SUBSYSTEMS. 

I don't think you need to specify KERNEL, either. Just let the
SYMLINK+= create the /dev/video-webcam for you.

-dsr-

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Logitech C310 rule in /etc/udev/rules.d/25-webcam.rules? conover@rahul.net (John Conover) - 2020-07-10 23:30 +0200
  Re: Logitech C310 rule in /etc/udev/rules.d/25-webcam.rules? Dan Ritter <dsr@randomstring.org> - 2020-07-11 00:40 +0200

csiph-web