Skip to contentSkip to conversation

udev: how to define a webcam that has a microphone?

DISCUSSION Niv 1 participant 1 message Mar 25, 2006

lore
Share & tools
lore

Niv

author
#0 lore raw

hay there,
I wrote a rule for the webcam, but it seems that the alsa is loaded before video for linux and so the microphone in loaded , and my rule is not obaid.

I was wondering where I may read more to solve it.

BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="08c5", NAME="v4l/video2", S
YMLINK="video2 qc5000" , GROUP="webcam"

also, I lost my /etc/group and /etc/passwd and wanted to add the missing groups.

ls -la /dev/v4l/
total 0
drwxr-xr-x 2 root root 120 Mar 24 19:45 . drwxr-xr-x 21 root root 29600 Mar 25 00:24 .. crw-rw---- 1 root video 81, 64 Mar 22 19:33 radio0 crw-rw---- 1 root video 81, 224 Mar 22 19:33 vbi0 crw-rw---- 1 root webcam 81, 2 Mar 24 19:45 video0 crw-rw---- 1 root tv 81, 0 Mar 24 19:45 video1

I tried to add a group named webcam with gid 81:

# fgrep 81 /etc/group
webcam:x:81:niv

but I still get the 81 listed and not "webcam"
so how do I fix it?

Thanks,
Niv

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel