[mythtv-users] Fedora card detection order
Michael T. Dean
mtdean at thirdcontact.com
Thu Aug 24 02:11:48 UTC 2006
On 08/23/2006 12:59 PM, Allen J. Newton wrote:
>Daniel Agar wrote:
>>I use fedora core 5 and have 2 x pvr150 and an ati tv wonder
>>but the order always seems random, with or without these options. What can
>>be done about this?
In addition to the links Matthias gave
>This was driving me nuts for quite awhile, too. Nothing I tried from dinking
>with modprobe.conf to adding modprobe lines to rc.sysinit would cause the
>/dev/videox devices to map the same between reboots. Frankly, I hope someone
>has a better suggestion than I do, because mine is kind of a kludge, but it
>solved the problem for me.
>I created the attached script to deal with the situation. What it basically
>does is creates symlinks in /dev. It creates /dev/dvrx (where x is 0, 1, and
>so forth) for each /dev/videox device which appears to produce MPEG-2 headers
>when read from, and /dev/winTVx for other /dev/videox devices (where "x" is a
>single digit) that produce anything (assumed here to be MJPEG/AVI source). If
>the device doesn't produce anything, the script doesn't produce a link to it.
>It also handles the /dev/radio, /dev/vbi and /dev/lirc links for my system.
>Yours may vary, so please feel free to modify as you need.
>Last but not least, what I did was change the devices I use in mythtvsetup
>from /dev/video0, etc, to /dev/dvr0 for MPEG-2 devices and /dev/winTV0, etc,
>for MJPEG devices. Now I don't worry about which /dev/videox devices give
>what, any more.
>The script is called setVideoDevs and should be installed into /etc/init.d/
>and is chkconfig-compliant and set to launch before lircd and mythbackend.
Hey, you could package up your script and call it udev. ;)
More information about the mythtv-users