[mythtv-users] UDEV rules

Daryl McDonald darylangela at gmail.com
Thu Jan 23 18:17:00 UTC 2014


On Thu, Jan 23, 2014 at 5:35 AM, Yianni <yiannividalis at hotmail.com> wrote:
>>>
>>> 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/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
> I don't like the above lines, I think we got the system confusing the card's inputs. (aerial, s-video and composite)
>
>>> DEVLINKS=/dev/analog1250 /dev/v4l/by-path/pci-0000:02:00.0-video-index0
>>> DEVLINKS=/dev/digital1250
>>> DEVLINKS=/dev/digitalKworld
>
> It says the links have been created. Please verify with "ls"
>
>>> DEVLINKS=/dev/v4l/by-path/pci-0000:04:00.0-video-index0
>>> I'm going to reboot now and see how it looks.
>>
>> I'm confused. Are we making progress?
> Yes, we can call these "teething problems" :). And the time difference doesn't help, either.
>
>>
>> daryl at daryl-A780L3C:~$ ls -lah /dev/video*
>> crw-rw----+ 1 root video 81, 0 Jan 22 17:15 /dev/video0
>> crw-rw----+ 1 root video 81, 5 Jan 22 17:14 /dev/video1
>> crw-rw----+ 1 root video 81, 7 Jan 22 17:15 /dev/video2
>> crw-rw----+ 1 root video 81, 3 Jan 22 17:15 /dev/video24
>> crw-rw----+ 1 root video 81, 1 Jan 22 17:15 /dev/video32
>> lrwxrwxrwx  1 root root      6 Jan 22 17:15 /dev/videopvr150 -> radio0
>> daryl at daryl-A780L3C:~$ ls -lah /dev/dvb*
>> total 0
>> drwxr-xr-x  4 root root   80 Jan 22 17:15 .
>> drwxr-xr-x 16 root root 4.6K Jan 22 17:15 ..
>> drwxr-xr-x  2 root root  120 Jan 22 17:14 adapter0
>> drwxr-xr-x  2 root root  120 Jan 22 17:15 adapter1
>> daryl at daryl-A780L3C:~$
>>
>
>> I'm guessing this is correct because it is having some
>> effect, we've changed video0 to radio0.
>
> That is not good, I'm afraid. We are using a subsystem of the video0 card.
>
> The only devices that will be
>> of any use to me will be the analog pvr150, the digital1250, and the
>> digitalKworld, as I want to capture 1 analog signal, 1 FTA signal, and
>> 1 QAM signal. What next?
>
> I've rephrased the symlinks to create the digital devices under /dev/dvb. Also, I found a different approach for the pvr150 in the archives.
>
> Please try the rules below, but feel free to change the symlinks to your liking before you do.
>
> # Analog side of Hauppauge WinTV-HVR-1250
> SUBSYSTEM=="video4linux",ATTRS{vendor}=="0x14f1",ATTRS{device}=="0x8852",SYMLINK+="an1250",GROUP="video"
> # Digital side of  Hauppauge WinTV-HVR-1250
> SUBSYSTEM=="dvb",ATTRS{vendor}=="0x14f1",ATTRS{device}=="0x8852",SYMLINK+="dvb/dig1250",GROUP="video"
> # Analog Kworld PC150
> SUBSYSTEM=="video4linux",ATTRS{vendor}=="0x1131",ATTRS{device}=="0x1733",SYMLINK+="AnKW150",GROUP="video"
> # Digital Kworld PC150
> SUBSYSTEM=="dvb",ATTRS{vendor}=="0x1131",ATTRS{device}=="0x7133",SYMLINK+="dvb/DigKW150",GROUP="video"
> # Hauppauge computer works Inc. WinTV PVR 150
> # Adapted from http://www.mythtv.org/pipermail/mythtv-users/2008-March/217517.html
> KERNEL=="video[0-9]", ATTR{name}=="ivtv[0-1] encoder MPG", ATTRS{subsystem_device}=="0x8801",SYMLINK+="videopvr150",GROUP="video"
>
> After rebooting to get rid of the stale symlinks, verify the new have been created (ls -lah is your friend) and I suppose the real test will be to stop any myth process (backends, frontends) and try mythtv-setup.
>
>
> Yianni.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users

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

DEVLINKS=/dev/an1250 /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/dvb/dig1250

DEVLINKS=/dev/dvb/DigKW150

Above are the results of tests for the five rules just put in place.
Yianni, your genius is showing, and your efforts are greatly
appreciated. The following looks pretty good too:

daryl at daryl-A780L3C:~$ ls -lah /dev/video*
crw-rw----+ 1 root video 81, 0 Jan 23 13:13 /dev/video0
crw-rw----+ 1 root video 81, 5 Jan 23 13:13 /dev/video1
crw-rw----+ 1 root video 81, 7 Jan 23 13:14 /dev/video2
crw-rw----+ 1 root video 81, 3 Jan 23 13:13 /dev/video24
crw-rw----+ 1 root video 81, 1 Jan 23 13:13 /dev/video32
lrwxrwxrwx  1 root root      6 Jan 23 13:13 /dev/videopvr150 -> video0
daryl at daryl-A780L3C:~$ ls -lah /dev/dvb*
total 0
drwxr-xr-x  4 root root  120 Jan 23 13:14 .
drwxr-xr-x 16 root root 4.6K Jan 23 13:14 ..
drwxr-xr-x  2 root root  120 Jan 23 13:13 adapter0
drwxr-xr-x  2 root root  120 Jan 23 13:14 adapter1
lrwxrwxrwx  1 root root   13 Jan 23 13:13 dig1250 -> adapter0/net0
lrwxrwxrwx  1 root root   13 Jan 23 13:14 DigKW150 -> adapter1/net0
daryl at daryl-A780L3C:~$

Much obliged, Daryl


More information about the mythtv-users mailing list