[mythtv-users] tuner numbering

Roger Siddons dizygotheca at ntlworld.com
Wed Feb 26 21:14:03 UTC 2014


On Wed, 26 Feb 2014 18:57:25 -0000, Daryl McDonald <darylangela at gmail.com>  
wrote:

> On Mon, Feb 24, 2014 at 3:27 PM, Roger Siddons<dizygotheca at ntlworld.com>  
> wrote:
>>
>> Correct. That was my suggestion at
>> http://www.gossamer-threads.com/lists/mythtv/users/562186?#562186
>>
>> Fixing adapter numbers is a simple solution if you don't swap tuners 
>> about
>> and can remember what each adapter is months/years later. Personally I 
>> like
>> to see my own symlink names in the dialog.
>>

>
> Have you had any luck getting the symlink name to stay put in >capture
> cards, for digital cards?
>>

I only have digital cards. And when I start mythtv-setup the capture cards  
still refer to the symlinks they were assigned. My guess is that when  
setup starts/exits, it validates the cards and resets yours to a default  
(first?) because it can't find the dvr0, demux0 or net0 devices.

These rules are based on the information you posted previously. Change the  
"dig1250" and "DigKW150" to whatever you like.

SUBSYSTEM=="dvb", ATTRS{vendor}=="0x14f1", ATTRS{device}=="0x8852",
PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/dig1250/%%s $${K#*.};
exit 0'", SYMLINK+="%c"

SUBSYSTEM=="dvb", ATTRS{vendor}=="0x1131", ATTRS{device}=="0x7133",
PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/DigKW150/%%s $${K#*.};
exit 0'", SYMLINK+="%c"

Rather than creating a single symlink to adapterN/frontend0 it uses shell  
script to create symlinks for all the adapter's device nodes.

Your digital adapter directories should look like this. Note each line of  
the device node begins with a "c" meaning it's a 'character file' (a  
device).

$ ls -l /dev/dvb/adapter0
total 0
drwxr-xr-x 2 root root 120 Jan 25 19:44 ./
drwxr-xr-x 12 root root 240 Jan 25 19:44 ../
crw-rw----+ 1 root video 212, 0 Jan 25 19:44 demux0
crw-rw----+ 1 root video 212, 1 Jan 25 19:44 dvr0
crw-rw----+ 1 root video 212, 7 Jan 25 19:44 frontend0
crw-rw----+ 1 root video 212, 2 Jan 25 19:44 net0

If your system places dig1250 on adapter0 then the udev rule will create  
directory dig1250 as follows. Note each line begins with "l" meaning it's  
a symbolic link and each file links to the similarly named device node on  
the appropriate adapter, so Myth should be happy.

$ ls -l /dev/dvb/dig1250/
total 0
lrwxrwxrwx 1 root root 18 Jan 25 19:44 demux0 -> ../adapter0/demux0
lrwxrwxrwx 1 root root 16 Jan 25 19:44 dvr0 -> ../adapter0/dvr0
lrwxrwxrwx 1 root root 21 Jan 25 19:44 frontend0 -> ../adapter0/frontend0
lrwxrwxrwx 1 root root 16 Jan 25 19:44 net0 -> ../adapter0/net0

I don't know how you've configured your analog card but be careful not to  
disrupt it. You could even put your digital udev rules in a separate  
*.rules file to the analog one(s).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140226/d778ef09/attachment.html>


More information about the mythtv-users mailing list