MythTV should use the static device names in /dev/v4l/by-path/* to stop video devices changing on boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mythbuntu |
Expired
|
Medium
|
Unassigned |
Bug Description
I am using Mythbuntu 8.04 fully updated.
I have two tuner cards, a Hauppauge PVR-150 (MPEG2 hardware encoder) and a bttv WinFast 2000XP (V4L software encoder).
Every few reboots, the two cards will switch device nodes. Earlier today, the Hauppauge was /dev/video0 and the bttv was /dev/video1. Now, they have switched so that the Hauppauge is /dev/video1 and the bttv is /dev/video0. I will attach an lshal from before and after.
Every time that this happens, it causes me real issues. The cards do not work until I switch the setup as the MPEG2 card will be setup as a V4L card and vice-versa, with the wrong input selected (one uses "Tuner 1" and the other uses "Television"). Even worse, when I switch the device nodes in the setup, it often seems to break my scheduled recordings in unexpected ways. I have set it up as if I were moving everything to new hardware a few times, but it takes an age.
If I can be of any further help, please let me know.
This sounds like a really common issue out there. Normally, I just reboot the thing until it goes back to how it was. Couldn't something be clever about this and be persistent until both cards weren't there (similar to DHCP, which tries to give everyone the same IP address but copes if things have changed)?
Alternatively, could Mythbuntu create udev rules in the setup so that these don't change?
As a workaround, can somebody please step me through creating a udev rule to stop this happening? I found: ubuntuforums. org/showpost. php?p=6440182& postcount= 7 rules.d/ 60-symlinks. rules; added the following line:
http://
which talks about creating a udev rule (in that case to stop a remote from jumping around device nodes) by changing /etc/udev/
# Create /dev/input/irremote symlink for Nova-T 500 =="IR-receiver inside an USB DVB receiver", SYMLINK+ ="input/ irremote"
KERNEL=="event*", ATTRS{name}
Could I do a similar thing and have symlinks created to /dev/video_bttv and /dev/video_pvr150 and then set MythTV up to use those instead of video0 and video1? If so, where do I get the "name" field for that line?
Thanks!