[mythtv-users] tuner numbering

Roger Siddons dizygotheca at ntlworld.com
Thu Feb 27 01:33:26 UTC 2014


On Thu, 27 Feb 2014 00:27:31 -0000, Hika van den Hoven <hikavdh at gmail.com>  
wrote:

>
>> Thanks Hika, now I see that only the one card took the link, but I
>> don't know why:
>> daryl at daryl-A780L3C:~$ ls -l /dev/dvb*
>> lrwxrwxrwx 1 root root 22 Feb 26 17:20 /dev/dvbHP1250 ->  
>> dvb/adapter6/frontend0
>
>> /dev/dvb:
>> total 0
>> drwxr-xr-x 2 root root 120 Feb 26 17:21 adapter0
>> drwxr-xr-x 2 root root 120 Feb 26 17:20 adapter6
>> daryl at daryl-A780L3C:~$

>
> First, that link is incorrect. Could you still have old rules in
> place?
> And secondly:
>
>> SUBSYSTEM=="dvb", ATTRS{class}=="0x040000", ATTRS{device}=="0x8852",
>> PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/HP1250/%%s $${K#*.};
>> exit 0'", SYMLINK+="%c"
>>
>> SUBSYSTEM=="dvb", ATTRS{class}=="0x048000", ATTRS{device}=="0x08802",
>> PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/PC800i/%%s $${K#*.};
>> exit 0'", SYMLINK+="%c"
>
> uses /bin/sh. Do you have /bin/sh? If not create a link in bin to
> /bin/bash (like I have) like:
> Goto /bin and type: 'sudo ln -s bash sh'
> or replace /bin/sh in your rule with /bin/bash.
>


ls -l /dev/dvb* is only showing you the files in /dev that begin with dvb,  
namely the old link. Check ls -l /dev/dvb/ instead.

Also your 2nd rule has the wrong device id - use 0x8802 rather than  
0x08802.

I don't think the class attribute is much help - you might as well remove  
it. The attributes only serve to uniquely identify the card: vendor/device  
is a typical pattern but you might as well just use the device attribute  
alone.


More information about the mythtv-users mailing list