I had my udev rules working well with Ubuntu 8.10, but in 9.10 they changed how udev works and the udev rules below no longer work - no matter if I put them under /etc or /lib or at any priority.
I've googled and searched many times but not found a solution which works.
I realize this is really a Ubuntu 9.10 issue, but am wondering if anyone here has got any ideas ?
It's a pain when I have to re-boot for some reason and all the video sources swap round !
KERNEL=="video[0-9]*", SYSFS{name}=="BT878 video (ProVideo PV150)", SYSFS{subsystem_device}=="0x1460", NAME="video0", SYMLINK+="backdoor"
KERNEL=="video[0-9]*", SYSFS{name}=="BT878 video (ProVideo PV150)", SYSFS{subsystem_device}=="0x1461", NAME="video1", SYMLINK+="sidegate"
KERNEL=="video[0-9]*", SYSFS{name}=="BT878 video (ProVideo PV150)", SYSFS{subsystem_device}=="0x1462", NAME="video2", SYMLINK+="frontdoor"
KERNEL=="video[0-9]*", SYSFS{name}=="BT878 video (ProVideo PV150)", SYSFS{subsystem_device}=="0x1463", NAME="video3", SYMLINK+="backyard"
udev rules and Ubuntu 9.10 question
this work on my 9.10 and 10.04
/etc/udev/rules.d/83duplicate.rules
don't forget to chmod 777 /dev/videoX
/etc/udev/rules.d/83duplicate.rules
Code: Select all
# Liens permanents Video Pour carte Capture Video Surveillance
# Video1 Route /dev/video1 vers /dev/vroute
KERNEL=="video*", ATTRS{device}=="0x036e", ATTRS{vendor}=="0x109e", ATTRS{subsystem_vendor}=="0x804a", ATTRS{subsystem_device}=="0x763c", SYMLINK+="vroute"
# Video2 Cave /dev/video2 vers /dev/vcave
KERNEL=="video*", ATTRS{device}=="0x036e", ATTRS{vendor}=="0x109e", ATTRS{subsystem_vendor}=="0x804b", ATTRS{subsystem_device}=="0x763c", SYMLINK+="vcave"
# Video1 Route /dev/video1 vers /dev/entree
KERNEL=="video*", ATTRS{device}=="0x036e", ATTRS{vendor}=="0x109e", ATTRS{subsystem_vendor}=="0x804c", ATTRS{subsystem_device}=="0x763c", SYMLINK+="ventree"
# Video1 Route /dev/video1 vers /dev/varriere
KERNEL=="video*", ATTRS{device}=="0x036e", ATTRS{vendor}=="0x109e", ATTRS{subsystem_vendor}=="0x804d", ATTRS{subsystem_device}=="0x763c", SYMLINK+="varriere"
# Video0 Webcam /dev/video0 vers /dev/grenier
KERNEL=="video*", ATTRS{idProduct}=="08d9", ATTRS{idVendor}=="046d", SYMLINK+="vgrenier"
#ATTRS{device} and ATTRS{vendor} are the chanel of your Vidéo card "lspci" 0R "lsusb" fa web cam