Results 1 to 2 of 2

Thread: Webcam / TV card path conflict

  1. #1
    Join Date
    Apr 2009
    Location
    Plantation, FL
    Posts
    172

    Default Webcam / TV card path conflict

    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.


  2. #2
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,236

    Default Re: Webcam / TV card path conflict

    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

    Code:
    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:

    Code:
    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):

    Code:
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •