assign webcam/camera module to /dev/video* at boot
Posted: Sat Feb 22, 2014 8:54 pm
hello all,
I am new to arch, but I can copy and paste well, kheh,
but I can not get the udev rule right...
I have camera board and 2 usb webcam and I want to use motion, to watch my dogs when I am away.
but as I reboot rpi, cameras get assigned in /dev/video* randomly,
which does not match my motion cameras configuration files /dev/video* assignment.
in /etc/modules-load.d/raspberrypi.conf I added bcm2835-v4l2 so my camera board gets its place in /dev/video* on boot
from here I wrote rule (should I have seperate rule file for each camera, or can I put all in one file), in /etc/udev/rules.d/83-webcam.rules :
but this code is not working always, more chance that without it...
is above code sintax correct?
if so, what now?
kind regards
I am new to arch, but I can copy and paste well, kheh,
but I can not get the udev rule right...
I have camera board and 2 usb webcam and I want to use motion, to watch my dogs when I am away.
but as I reboot rpi, cameras get assigned in /dev/video* randomly,
which does not match my motion cameras configuration files /dev/video* assignment.
in /etc/modules-load.d/raspberrypi.conf I added bcm2835-v4l2 so my camera board gets its place in /dev/video* on boot
from here I wrote rule (should I have seperate rule file for each camera, or can I put all in one file), in /etc/udev/rules.d/83-webcam.rules :
Code: Select all
KERNEL=="video0", SUBSYSTEM=="video4linux", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="082b", GROUP="video", SYMLINK+="web_cam0"
KERNEL=="video1", SUBSYSTEM=="video4linux", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ac8", ATTRS{idProduct}=="0323", GROUP="video", SYMLINK+="web_cam1"
KERNEL=="video2", SUBSYSTEM=="video4linux", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0f63", ATTRS{idProduct}=="05d7", GROUP="video", SYMLINK+="web_cam2" is above code sintax correct?
if so, what now?
kind regards