[mythtv-users] pvr-150 occasionally swaps /dev/video1 to /dev/video0

Brad DerManouelian myth at dermanouelian.com
Fri Mar 28 17:50:52 UTC 2008


stefan_jones at comcast.net wrote:
> I have two capture cards in my mythbox:
> 
> pchdtv-3000, which has been in the box for a while but which  I just recently got working and configured,
> 
> Happague PVR-150, which is my main recording inteface. It is addressed as /dev/video1
> 
> Whenever the HDTV-3000 is installed, and configured, something odd happens -- often but now always -- after a system reset. The Happague card kind of disappears on me. Specifically, the configuration listing swaps from /dev/video1 to /dev/video0. It's like the binding between the database information and the hardware gets lost.
> 
> The fix is easy; I turn off mythbackend, bring up mythtvsetup, and go to the Capture Cards listing for the Happague. The config page will show /dev/video0, and list the hdtv-3000 card as hardware it's seeing. I just need to switch /dev/video0 to /dev/video1 and I'm back in business.
> 
> Anyone else see this? Is there a way to keep this from happening?

You need to set up some udev rules.
http://www.mythtv.org/wiki/index.php/Device_Filenames_and_udev

I have a webcam, a PVR-150, PVR-350 and pcHDTV-5500 in my box that 
always stay where I put them now thanks to udev rules. I also have two 
USB devices (an IRTrans VFD and USB->Serial device for channel changing) 
that used to swap between USB0 and USB1 on me, too.

Here is what I use:

[mythtv at mythtv ~]$ more /etc/udev/rules.d/55-custom.rules
KERNEL=="video[0-9]", ATTR{name}=="cx88_0_ video _pcHDTV HD5500 HD", 
NAME="video3", SYMLINK+="pcHDTV5500_analog"
KERNEL=="video[0-9]", SYSFS{name}=="ivtv[0-1] encoder MPEG", 
NAME="video1", ATTRS{subsystem_device}=="0x4000", SYMLINK+="PVR350"
KERNEL=="video[0-9]", SYSFS{name}=="ivtv[0-1] encoder MPEG", 
NAME="video2", ATTRS{subsystem_device}=="0x8801", SYMLINK+="PVR150"
KERNEL=="video[0-9]", SYSFS{name}=="Logitech QuickCam Pro 4000", 
NAME="video0", GROUP="apache", MODE="0770", SYMLINK+="QuickCamPro4000"
KERNEL=="ttyUSB[0-1]", ATTRS{interface}=="usb serial converter", 
NAME="ttyUSB0", SYMLINK+="USBtoSerialConverter"
KERNEL=="ttyUSB[0-1]", ATTRS{interface}=="IRTrans USB", NAME="ttyUSB1", 
SYMLINK+="IRTransDisplay"



More information about the mythtv-users mailing list