I use OS 11.4 64Bit KDE
I have a webcam and a tv card and both work fine. The only problem is that they change the mounting path every time I reboot the computer.
Sometimes one is /dev/video1 and sometimes is /dev/video0 and vice versa. The problem is that every time they change paths, I have to re configure my tv app and skype, and it is quite annoying.
Is there any way to tell linux to always use the same path for the same device, so even if I disconnect my webcam, my tv card would remain in /dev/video1, instead of changing to /dev/video0?
If so, please give me the steps, since I am no expert.

On 05/14/2011 05:06 PM, cepiolidus wrote:
>
> I use OS 11.4 64Bit KDE
>
> I have a webcam and a tv card and both work fine. The only problem is
> that they change the mounting path every time I reboot the computer.
>
> Sometimes one is /dev/video1 and sometimes is /dev/video0 and vice
> versa. The problem is that every time they change paths, I have to re
> configure my tv app and skype, and it is quite annoying.
>
> Is there any way to tell linux to always use the same path for the same
> device, so even if I disconnect my webcam, my tv card would remain in
> /dev/video1, instead of changing to /dev/video0?
>
> If so, please give me the steps, since I am no expert.
This type of persistent naming is handled by udev and requires creating the
appropriate rules in a file in /etc/udev/rules.d. I would suggest using the command
kdesu kwrite /etc/udev/rules.d/99-persistent-video.rules
I’m not exactly what rules you need, but I would start by using lsusb to get the
IDs for the devices. For my webcam, I get the following:
Bus 001 Device 002: ID 04f2:b016 Chicony Electronics Co., Ltd VGA 30fps UVC Webcam
The rule that I would need to force this be /dev/video2 would be (I think):
ATTRS{idVendor}=="04f2", ATTRS{idProduct}=="b016", KERNEL=="video*", NAME="video2"
If the above line is wrapped, be aware that everything needs to be on a single line.