[mythtv-users] UDEV rules

Daryl McDonald darylangela at gmail.com
Mon Jan 27 20:50:25 UTC 2014


On Mon, Jan 27, 2014 at 3:28 PM, Daryl McDonald <darylangela at gmail.com> wrote:
> On Mon, Jan 27, 2014 at 2:06 PM, Yianni <yiannividalis at hotmail.com> wrote:
>>>
>>> Bill's rule:
>>> KERNEL=="dvb?.frontend?",SUBSYSTEM=="dvb",ATTRS{subsystem_vendor}=="0x0070",ATTRS{subsystem_device}=="0x7911",SYMLINK+="JustTesting",GROUP="video"
>>>
>>> My rule:
>>> KERNEL=="dvb?.frontend?",SUBSYSTEM=="dvb",ATTRS{subsystem_vendor}=="0x0070",ATTRS{subsystem_device}=="0x7911",SYMLINK+="HP1250",GROUP="video"
>>>
>>> Bill's result:
>>> lrwxrwxrwx 1 root root 22 Jan 25 16:43 /dev/JustTesting ->
>>> dvb/adapter0/frontend0
>>>
>>> MY result:
>>> drwxr-xr-x 2 root root 120 Jan 27 13:29 adapter0
>>
>>
>> The "SYMLINK+=" directive means "create a symbolic link under /dev" with the name it is given.
>>
>> The full path is "/dev" + the symlink, i.e. SYMLINK+="HP1250" must have created a symbolic link named HP1250 under /dev, not under /dev/dvb.
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
> Correct, so how do I create it under /dev/dvb?
> Would this by why the symlink name won't stick to the card in BE setup?

MY bad, The rules I have in place are:
KERNEL=="video[0-9]", ATTR{name}=="ivtv[0-1] encoder MPG",
ATTRS{subsystem_device}=="0x8801",SYMLINK+="videopvr150",GROUP="video"
KERNEL=="video[0-9]", ATTR{name}=="saa7133[0] video (Kworld PC150-",
ATTRS{subsystem_device}=="0xa135",SYMLINK+="videoKWd150",GROUP="video"
KERNEL=="video[0-9]", ATTR{name}=="Hauppauge WinTV-HVR1250 (video)",
ATTRS{subsystem_device}=="0x7911",SYMLINK+="videoHP1250",GROUP="video"
KERNEL=="dvb?.frontend?",SUBSYSTEM=="dvb",ATTRS{subsystem_vendor}=="0x0070",ATTRS{subsystem_device}=="0x7911",SYMLINK+="dvbHP1250",GROUP="video"
KERNEL=="dvb?.frontend?",SUBSYSTEM=="dvb",ATTRS{subsystem_vendor}=="0x17de",ATTRS{subsystem_device}=="0xa135",SYMLINK+="dvbKWd150",GROUP="video"

Which results in:
daryl at daryl-A780L3C:~$ ls -lah /dev/video*
crw-rw----+ 1 root video 81, 0 Jan 27 15:18 /dev/video0
crw-rw----+ 1 root video 81, 5 Jan 27 15:18 /dev/video1
crw-rw----+ 1 root video 81, 7 Jan 27 15:18 /dev/video2
crw-rw----+ 1 root video 81, 3 Jan 27 15:18 /dev/video24
crw-rw----+ 1 root video 81, 1 Jan 27 15:18 /dev/video32
lrwxrwxrwx  1 root root      6 Jan 27 15:18 /dev/videoHP1250 -> video1
lrwxrwxrwx  1 root root      6 Jan 27 15:18 /dev/videopvr150 -> video0
daryl at daryl-A780L3C:~$ ls -lah /dev/dvb*
lrwxrwxrwx 1 root root 22 Jan 27 15:18 /dev/dvbHP1250 -> dvb/adapter0/frontend0
lrwxrwxrwx 1 root root 22 Jan 27 15:18 /dev/dvbKWd150 -> dvb/adapter1/frontend0

/dev/dvb:
total 0
drwxr-xr-x  4 root root   80 Jan 27 15:18 .
drwxr-xr-x 16 root root 4.6K Jan 27 15:18 ..
drwxr-xr-x  2 root root  120 Jan 27 15:18 adapter0
drwxr-xr-x  2 root root  120 Jan 27 15:18 adapter1
daryl at daryl-A780L3C:~$

And all that looks good except for no "dvbKWd150" symlink
Daryl


More information about the mythtv-users mailing list