LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums HCL Reviews Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-02-2007, 06:40 PM   #1
rrrssssss
Member
 
Registered: Mar 2005
Posts: 284

Rep: Reputation: 33
Video0, Video1, Video2 Switch Places During Each Reboot


Hello Ubuntu forum,

I installed Kubuntu 6.10 (Edgy) a month ago and I am very pleased with it in every respect. It recognized both of my cx88 chip based capture cards immediately (Turtle Beach and TV Wonder Pro), and after I installed ivtv, it recognized my third capture card, the Hauppauge 150. So Kubuntu now recognizes all three of my capture cards and I am pleased once again.

But it wasn't until I actually needed to use the video devices (video0, video1, and video2) by my installing MythTV that I realized I have a problem.

The three video devices randomly switch places with each other during each reboot, causing me to constantly reconfigure my capture card in MythTV setup (I'm presently using only the Hauppauge card). For example, sometimes the Hauppauge card uses video0 and other times it will use video2 or video1 (ivtv-detect also shows this).

After doing a little Googling, I found out that this is caused by a bug in Kubuntu 6.10
https://bugs.launchpad.net/ubuntu/+bug/77332

Is anyone reading this savvy enough to show me how to keep these three video devices from switching places with one another during each reboot? Just for the record, the three video devices work fine once configured in MythTV. I am not a Linux expert.

I would truly appreciate your help.

Roy

Last edited by rrrssssss; 05-03-2007 at 04:33 AM.
 
Old 05-03-2007, 10:33 PM   #2
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
This was a problem I had in 6.10 between a TV card and a webcam. You can overcome this problem by adding symbolic udev rules that will link /dev/video{n} of a particular device and vendor code to a new mount point. First use udevinfo to identify the device and vendor numbers as follows:

udevinfo -a -p $(udevinfo -q path -n /dev/video0)
udevinfo -a -p $(udevinfo -q path -n /dev/video1)
udevinfo -a -p $(udevinfo -q path -n /dev/video2)

You'll be most interested in the lines that look like:

ATTRS{device}=="0x0016"
ATTRS{vendor}=="0x4444"

Lastly create udev rules in /etc/udev/rules.d/95-perso.rules

KERNEL=="video*", SYSFS{vendor}=="0x4444", SYSFS{device}=="0x0016", SYSFS{name}=="ivtv0 encoder MPEG", SYMLINK+="video/pvr150"

Above is the udev rule that assigns a new symlink "video/pvr150" to whatever video{n} the system selects. The actual mount point will be /dev/video/pvr150

Create a rule for each TV card in a similar fashion.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SAN Volumes Go away with switch reboot nitrohuffer2001 Linux - Hardware 3 12-16-2006 09:07 PM
eth0 and eth1 switch places on reboot? slayer17 Linux - Networking 8 12-14-2005 09:33 PM
bttv on /dev/video1 liguorir Linux - Software 1 08-29-2004 03:38 PM
2 video modes, can i switch without reboot? true_atlantis Linux - Hardware 4 05-30-2004 03:00 PM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration