[mythtv-users] Help understanding udev rules

Greg gregl at nycap.rr.com
Tue Apr 9 14:55:07 UTC 2013


On 04/09/2013 12:07 AM, John J Tucker wrote:
> Greetings,
>
> I would appreciate so help understanding the udev rules.
>
> I have just switched from cable to DirecTV.  My setup is a single 
> combined BE/FE with two HD PVRs. With the previous cable setup I used 
> firewire to change channels and never had problems with the HD PVRs 
> migrating around between /dev/video0 and /dev/video1. The DirecTV 
> setup is that same except that I use the web service (directv_http.pl) 
> to change channels.  Now I have had problems with the HD PVRs 
> switching places and this is not good.
>
> I read the mythtv wiki page 
>  (http://www.mythtv.org/wiki/Device_Filenames_and_udev) and copied the 
> HD PVR sample substituting the serial numbers in the sample for my 
> serial numbers.  My confusion comes from my assumption that I would 
> point to the SYMLINK device vs /dev/video0/1.  mythtv_setup doesn't 
> like the SYMLINK (/dev/v4l/hdpvr1/2) but /dev/video0 and /dev/video1 work.
>
> Would someone explain what I'm doing wrong and how should my setting 
> look like.
>
> copy of my rules.d file
>
> # /etc/udev/rules.d/10-hdpvr.rules
> #HDPVR - hdpvr1
> KERNEL=="video?",SUBSYSTEM=="video4linux",ATTRS{serial}=="00A29AC2",
> SYMLINK+="v4l/hdpvr1"
>
> #HDPVR - hdpvr2
> KERNEL=="video?",SUBSYSTEM=="video4linux",ATTRS{serial}=="00A252CB",
> SYMLINK+="v4l/hdpvr2"
>
> straight from the wiki (mostly).
>
> Thanks in advance.
>
> adios,
> jt
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
Did you look under /dev and see if the symlink is being created.. If so, 
then  go into mythtv-setup and under card setup input change /dev/video1 
to /dev/hdpvr1 and the same for /dev/hdpvr2...restart and it should make 
them stay put..

  I don't have 2 hdpvr's,I have 1 hdpvr,and one pvr150.. Here is a copy 
of my rules..

KERNEL=="video*", ATTR{name}=="ivtv0 encoder MPG", 
ATTRS{device}=="0x244e"  , SYMLINK+="pvr150"

KERNEL=="video*", ATTR{name}=="Hauppauge HD PVR", 
ATTRS{vendor}=="0x8086", SYMLINK+="hdpvr"

You don't say what distro you use ,but a few years ago there was a 
script called uvev-rules-junty.py that would identify your capture 
devices and make the symlink for you.. I still use it.. I'm sure it can 
be adapted to any distro..

good luck


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130409/35c5bf74/attachment.html>


More information about the mythtv-users mailing list