[mythtv-users] Example IVTV Udev rules

Derek Meek thekazan at gmail.com
Wed Nov 15 21:55:41 UTC 2006


I finally took the time to sit down and figure out udev rule writing and
I figured I'd share the results with you.

DRIVER=="ivtv", ID=="0000:02:08.0", SYMLINK+="pvr_500_1"
DRIVER=="ivtv", ID=="0000:02:09.0", SYMLINK+="pvr_500_2"

ID is the PCI bus ID from the device
IE
02:08.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
02:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

matches the above devices

this will create the symlinks /dev/pvr_500_1 and /dev/pvr_500_2 corresponding to each head of the PVR-500 so i don't have to worry about /dev/videoN jumping around (which has been a problem in the past)

when my 150 arrives it'll be

DRIVER=="ivtv", ID="0000:whatever", SMYLINK+="pvr_150"

I hope this is helpful 

PS a udev rule for my bttv card would be
DRIVER="bttv", ID="0000:00:08.0", SYMLINK+="shitty_cable_box_slaver"

-- 
Derek "Kazan" Meek
----------------------------------------------------------------------------------------
“Is God willing to prevent evil, but not able? Then he is impotent. Is he able, but not willing? Then he is malevolent. Is he both able and willing? Whence then is evil?” - Epicurus



More information about the mythtv-users mailing list