[mythtv-users] UDEV rules

Yianni yiannividalis at hotmail.com
Sat Jan 25 21:22:32 UTC 2014


> >> If you just look in /dev for the exact filename and path, you can type that
> >> name in the field in Myth-setup
> >
> > When I try to change whatever presents itself in the field I get
> > "failed to open"
> >>
> >> Tot mails,
> >>   Hika                            mailto:hikavdh at gmail.com
> >>
> >> "Zonder hoop kun je niet leven
> >> Zonder leven is er geen hoop
> >> Het eeuwige dilemma
> >> Zeker als je hoop moet vernietigen om te kunnen overleven!"
> >>
> >> De lerende Mens
> >> --
> >>
> >> Saturday, January 25, 2014, 4:14:38 PM, you wrote:
> >>
> >>> On Fri, Jan 24, 2014 at 8:46 PM, Roger Siddons <dizygotheca at ntlworld.com> wrote:
> >>>> On Sat, 25 Jan 2014 00:21:33 -0000, Bill Meek <keemllib at gmail.com> wrote:
> >>>>
> >>>>> On 01/23/2014 11:18 PM, George Nassas wrote:
> >>>>>>>
> >>>>>>> On Jan 23, 2014, at 6:01 PM, Daryl McDonald <darylangela at gmail.com>
> >>>>>>> wrote:
> >>>>>>>
> >>>>>>> OK I just went into setup>capture cards, and when I try to change
> >>>>>>> /dev/dvb/adapter0/frontend0 to anything with "dig1250" in it, I get
> >>>>>>> "failed to open" the only thing that opens is what presents when I
> >>>>>>> navigate through new cards. Obviously I'm missing how to or what to
> >>>>>>> change. Similarly with the other cards the symlink name returns
> >>>>>>> "failed to open" Help?   Daryl
> >>>>>>
> >>>>>>
> >>>>>> You're making the right change in the right place. Probably the myth
> >>>>>> backend is still running, it takes an exclusive lock on capture cards and
> >>>>>> that would cause such a failure. Normally when the setup program sees an
> >>>>>> active backend it offers to shut it down although that shutdown is not
> >>>>>> necessarily reliable in my experience.
> >>>>>>
> >>>>>> On the plus side it looks like the symlink is good. It's clearly pointing
> >>>>>> to a tuner.
> >>>>>>
> >>>>>> - George
> >>>>
> >>>>
> >>>> Another possibility: if you're *editing* the existing capture cards, won't
> >>>> mythtv-setup already have opened the tuner ? So it won't be able to open it
> >>>> again via your new symlink = 'failed to open'
> >>>>
> >>>> Whenever I do this sort of thing I always 'delete all' capture cards first,
> >>>> then define new ones...
> >>
> >>> Like I told Mark, after deleting all cards and selecting new card the
> >>> only options that present with the left/right arrows are /dev/whatever
> >>> or/video/whatever no symlinks show up.
> >>>>
> >>>> _______________________________________________
> >>>> mythtv-users mailing list
> >>>> mythtv-users at mythtv.org
> >>>> http://www.mythtv.org/mailman/listinfo/mythtv-users
> >>> _______________________________________________
> >>> mythtv-users mailing list
> >>> mythtv-users at mythtv.org
> >>> http://www.mythtv.org/mailman/listinfo/mythtv-users
> >>
> >> _______________________________________________
> >> mythtv-users mailing list
> >> mythtv-users at mythtv.org
> >> http://www.mythtv.org/mailman/listinfo/mythtv-users
> 
> Here is the "grep" you suggested Mark:
> daryl at daryl-A780L3C:~$ cat /etc/group | grep video
> video:x:44:mythtv
> daryl at daryl-A780L3C:~$
> 
> And further, on a whim, I went into the BE deleted all capture cards,
> then rebooted, and then went in again and was still not presented with
> symlink names, only /dev/adapter0/frontend0, /dev/adapter1/frontend0,
> /dev/video0, /dev/video24, /dev/video36, and only by backspacing and
> typing can I get /dev/video1, or /dev/video2, they won't present with
> left/right arrows, but they are recognized as "saa7134" and "Kworld
> pc150u" so although the symlinks look good, maybe they didn't fully
> take?
> 
> I don't fully understand the output from the grep, but my gut feeling
> is that since I am able to configure the cards, without udev involved,
> permissions must be correct, right?
> 
> thanks Daryl

Daryl,

1. Please make sure the backend is not running: "ps aux | grep backend | grep -v grep" should return nothing before you try modifying anything in mythtv-setup. If it's still running, use the commands of your distribution to stop it.

Use ls -lah to verify that the symlinks have been created. Write down the device they point to. For example, from one of your posts, you mention:

lrwxrwxrwx  1 root root      6 Jan 23 13:13 /dev/videopvr150 -> video0 

2. In mythtv-setup, Capture Cards, find the card /dev/video0 and replace it with /dev/videopvr150, even if you have to type it by hand. Change only this device for now, and make sure you press "Finish" to finalize the change. Exit mythtv-setup, start the backend and the frontend and try to tune to a channel on this card. If the test is successful, try the next symlink.

To tell you the truth, I'm a bit concerned about:

lrwxrwxrwx  1 root root   13 Jan 23 13:13 dig1250 -> adapter0/net0 
lrwxrwxrwx  1 root root   13 Jan 23 13:14 DigKW150 -> adapter1/net0 

as Bill Meek already pointed out. We are trying to symlink dig1250 to the parent device, i.e. /dev/dvb/adapter0 and not its subdevices. Then, in mythtv-setup, the card would be /dev/dvb/dig1250/frontend0 but it doesn't appear to link correctly.

If you still have the patience and the time, you can  try the following rules for the digital cards and use the respective "udevadm test" command to check the "DEVLINKS=" it returns.

# Digital side of  Hauppauge WinTV-HVR-1250 
SUBSYSTEM=="dvb",ATTRS{device}=="0x8852",ATTRS{subsystem_vendor}=="0x0070",SYMLINK+="dvb/dig1250",GROUP="video" 
    # Digital Kworld PC150 
SUBSYSTEM=="dvb",ATTRS{device}=="0x7133",ATTRS{subsystem_vendor}=="0x17de",SYMLINK+="dvb/DigKW150",GROUP="video" 

Yianni.


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


More information about the mythtv-users mailing list