[mythtv-users] UDEV rules

Bill Meek keemllib at gmail.com
Sat Jan 25 23:28:20 UTC 2014


On 01/25/2014 05:18 PM, Hika van den Hoven wrote:
> Hoi Daryl,
>
> The last two you only replied to me. I forwarded them to the list.
>
> Weird that they now point to the frontends. It confirms that more
> simlinks are made, which overwrite each other and only the last one
> sticks. The counter that is used to avoid this in the gentoo udev
> script is obviously not valid here. The named 'IMPORT{program}="v4l_id
> $devnode"' is actualy a binary, that i can't send.
> Maybe the part 'KERNEL=="video*|vbi*', changed to 'KERNEL=="frontend*'
> would exclude the other devices?.
> Or maybe trying:
> SUBSYSTEM=="dvb",ATTRS{vendor}=="0x14f1",ATTRS{device}=="0x8852",SYMLINK+="dvb/dig1250-$KERNEL",GROUP="video"
> SUBSYSTEM=="dvb",ATTRS{vendor}=="0x1131",ATTRS{device}=="0x7133",SYMLINK+="dvb/DigKW150-$KERNEL",GROUP="video"
>
> Also I notice that in the gentooscript '$attr{}' is used and in yours
> 'ATTRS{}' ?


I prefixed my rules with:

     KERNEL=="dvb?.frontend?",

in order for udev to choose frontend0 over net0. I also used the subsystem_device
and subsystem_vendor keys with the corresponding values.

This is my rule and the link it created:

KERNEL=="dvb?.frontend?",SUBSYSTEM=="dvb",ATTRS{subsystem_vendor}=="0x0070",ATTRS{subsystem_device}=="0x7911",SYMLINK+="JustTesting",GROUP="video"

lrwxrwxrwx 1 root root   22 Jan 25 16:43 /dev/JustTesting -> dvb/adapter0/frontend0

-- 
Bill


More information about the mythtv-users mailing list