[mythtv-users] Example IVTV Udev rules

Derek Meek thekazan at gmail.com
Wed Nov 15 22:18:34 UTC 2006


you found a bug in my rules for me!  my initial rules need a name line -
they were too lax before

DRIVER=="ivtv", SYSFS{name}=="ivtv? encoder MPEG", ID=="0000:02:08.0",
SYMLINK+="pvr_500_1"
DRIVER=="ivtv", SYSFS{name}=="ivtv? encoder MPEG", ID=="0000:02:09.0",
SYMLINK+="pvr_500_2"
DRIVER=="ivtv", SYSFS{name}=="ivtv? encoder PCM audio",
ID=="0000:02:08.0", SYMLINK+="pvr_500_1_audio"
DRIVER=="ivtv", SYSFS{name}=="ivtv? encoder PCM audio",
ID=="0000:02:09.0", SYMLINK+="pvr_500_2_audio"

Mark Paulus wrote:
> Thanks.  This will help me with a problem where my bttv and my PVR-150
> seem to flip/flop depending upon which kernel I load.  Now I can keep
> them straight......
>
> (Think I'm gonna need to create an additional symlink for the audio
> part of the bttv card, tho)
>
>
>
> Derek Meek wrote:
>> 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"
>>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>   


-- 
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