[mythtv-users] UDEV rules

Daryl McDonald darylangela at gmail.com
Wed Jan 22 22:13:35 UTC 2014


On Wed, Jan 22, 2014 at 1:09 PM, Yianni <yiannividalis at hotmail.com> wrote:
>> daryl at daryl-A780L3C:~$ ls -lah /dev/video*
>> crw-rw----+ 1 root video 81, 0 Jan 22 10:26 /dev/video0
>> crw-rw----+ 1 root video 81, 5 Jan 22 10:26 /dev/video1
>> crw-rw----+ 1 root video 81, 7 Jan 22 10:27 /dev/video2
>> crw-rw----+ 1 root video 81, 3 Jan 22 10:26 /dev/video24
>> crw-rw----+ 1 root video 81, 1 Jan 22 10:26 /dev/video32
>> lrwxrwxrwx  1 root root      6 Jan 22 10:26 /dev/videopvr150 -> video0
>
> Ok, the last one I've not seen before (not that I've extensive experience, but...)
>
>
>
>> Apparently I still don't get writing UDEV rules. I have three cards
>> which support five recording formats; video0, video1, video2,
>> adapter0, and adapter1. Because video0 has a working rule, info from
>> the terminal is for the four remaining formats:
>
> Let's try again, taking into account George's suggestion for the vendor instead of subsystem_vendor:
>
> SUBSYSTEM=="video4linux",ATTRS{vendor}=="0x4444",ATTRS{device}=="0x0016",SYMLINK+="videopvr150",GROUP="video"
> SUBSYSTEM=="video4linux",ATTRS{vendor}=="0x14f1",ATTRS{device}=="0x8852",SYMLINK+="analog1250",GROUP="video"
> SUBSYSTEM=="video4linux",ATTRS{vendor}=="0x1131",ATTRS{device}=="0x1733",SYMLINK+="videoKworld",GROUP="video"
> SUBSYSTEM=="dvb",ATTRS{vendor}=="0x14f1",ATTRS{device}=="0x8852",SYMLINK+="computerworks",GROUP="video"
> SUBSYSTEM=="dvb",ATTRS{vendor}=="0x1131",ATTRS{device}=="0x7133",SYMLINK+="digitalPhilips",GROUP="video"
>
> I've reapplied the original rule for the videopvr150 device using vendor. I don't know if I got the names right especially for the last two digitals, feel free to change them.
>
> Try putting them all in the same .rules file (delete the previous rule) and try George's suggestion for testing the rules without rebooting.Execute each line and search for the "DEVLINKS=" line to see if the link will be created.
>
> udevadm test $(udevadm info -q path -n /dev/video0)
> udevadm test $(udevadm info -q path -n /dev/video1)
> udevadm test $(udevadm info -q path -n /dev/video2)
> udevadm test $(udevadm info -q path -n /dev/video24)
> udevadm test $(udevadm info -q path -n /dev/video32)
> udevadm test $(udevadm info -q path -n /dev/dvb/adapter0/dvr0)
> udevadm test $(udevadm info -q path -n /dev/dvb/adapter1/dvr0)
>>
>> Further, I didn't do very well with your test George:
>>
>> daryl at daryl-A780L3C:~$ udevadm trigger $(udevadm info -q path -n /dev/video0)
>> daryl at daryl-A780L3C:~$
>>
> The above command doesn't show anything unless you use the --verbose parameter. (try using "udevadm trigger --help" to see the available options)
>
> Yianni.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users

After running the tests, one for each of the seven lines, I get:

DEVLINKS=/dev/v4l/by-path/pci-0000:04:01.0-video-index0 /dev/videopvr150

DEVLINKS=/dev/analog1250 /dev/v4l/by-path/pci-0000:02:00.0-video-index0

DEVLINKS=/dev/v4l/by-path/pci-0000:04:00.0-video-index0

DEVLINKS=/dev/v4l/by-path/pci-0000:04:01.0-video-index3 /dev/videopvr150

DEVLINKS=/dev/v4l/by-path/pci-0000:04:01.0-video-index1 /dev/videopvr150

DEVLINKS=/dev/digital1250

DEVLINKS=/dev/digitalKworld

I'm going to reboot now and see how it looks.


More information about the mythtv-users mailing list