[mythtv-users] Fixed numbers for video devices

Kevin Kuphal kuphal at dls.net
Fri Oct 26 21:43:08 UTC 2007


On 10/26/07, Jos Hoekstra <joshoekstra at gmx.net> wrote:
> Hey,
>
> I've been using myth for quite a while now and I use it a lot with my
> roommates. Recently I've stumbled on a problem which is partly a mythtv
> problem.
>
> I'm using a PVR500 and 350 for recording TV, which gives me 3 video devices:
> /dev/video[0-2]
>
> Lately I got a webcam which I want to use for Zoneminder(looking forward
> to the ZM-plugin ;)), which works fine using the gspcav-driver.
> This one uses:
> /dev/video3
>
> All this works under FC6, until I reboot then the webcam gets
> /dev/video0 and the PVR's shift a number up.
>
> This would be ok if the cam is always connected, but it isn't so the
> nummbers will keep switching around and 1 channel less in mythtv.
>
> Is there a way to force the webcam to be loaded last after the PVR's are
> loaded?(because it seems to be loaded before the PVR's)
> Or, alternatively, is there a way to force the webcam to load at a fixed
> number?
> Can this be done by a udev-rule?
>
> Modprobe.conf relevant sections:
>
> ### IVTV ###
> # ivtv modules setup
> alias char-major-81 videodev
> alias char-major-81-0 ivtv
> options ivtv ivtv_first_minor=0
> alias char-major-81-1 ivtv
> options ivtv ivtv_first_minor=1
> alias char-major-81-2 ivtv
> options ivtv ivtv_first_minor=2
>
> ### GSPCAV ###
> alias char-major-81-3 gspca

Chnage your ivtv_first_minor to start at 1.  Then /dev/video0 will
always be available for the webcam to take.

Kevin


More information about the mythtv-users mailing list