[mythtv-users] Card not ready
Mike Perkins
mikep at randomtraveller.org.uk
Sun Nov 13 22:56:15 UTC 2022
On 13/11/2022 21:49, James wrote:
>
>
>> On 14 Nov 2022, at 5:14 am, Bob <mythtv at cox.net> wrote:
>>
>> On 11/6/22 14:26, James wrote:
>>> I spent ages, in vain, searching.
>>> Eventually I googled else where that had a link to mythtv wiki. The wiki was clear but thin on *exact* detail of the rules for hashing /dev/dvb/adaptorN/frintendNN.
>>
>> This may not be what you are asking, I use some device specific options to make my cards appear in the order I want, something like this:
>>
>> $ cat /etc/modprobe.d/saa7164.conf
>> options saa7164 adapter_nr=1,2
>>
>> I had a separate problem to address, which was to make the backend wait for the firmware on my card to be loaded. I can share that if that's your problem.
>
> Bob Ta,
> Stevens solution worked perfectly for me. The only thing that puzzled me was how the mangled names were crafted. The rules are not clear :-(
>
I used rules like the following to give my cards repeatable names:
mythtv at jade$% cat /etc/udev/rules.d/10-tuners.rules
# /etc/udev/rules.d/10-tuners.rules
#
# To Ientify serial nos etc for a Device call
# udevadm info -a -p $(udevadm info -q path -n /dev/dvb/adapter0/frontend0)
#
# Create a symlink /dev/dvb/adapter-T-0 pointing to Nova T with serial 4034659290
SUBSYSTEM=="dvb", ATTRS{manufacturer}=="Hauppauge", ATTRS{product}=="Nova-T Stick",
ATTRS{serial}=="4034659290", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter-T-0/%%s
$${K#*.}'", SYMLINK+="%c"
# Create a symlink /dev/dvb/adapter-T-1 pointing to Nova T with serial 4034657139
SUBSYSTEM=="dvb", ATTRS{manufacturer}=="Hauppauge", ATTRS{product}=="Nova-T Stick",
ATTRS{serial}=="4034657139", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter-T-1/%%s
$${K#*.}'", SYMLINK+="%c"
# Create a symlink /dev/dvb/adapter-T2-0 pointing to PCTV 290e with serial 000000104KK5
SUBSYSTEM=="dvb", ATTRS{manufacturer}=="PCTV Systems", ATTRS{product}=="PCTV 290e",
ATTRS{serial}=="000000104KK5", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter-T2-0/%%s
$${K#*.}'", SYMLINK+="%c"
mythtv at jade$
I then use my well-known names to assign to cards and then sources, etc. within mythtv-setup.
Actually, thinking about it, I no longer need these rules, since I have switched to using HDHRs, but
they are still in the config 'just in case' I ever have to go back again.
--
Mike Perkins
More information about the mythtv-users
mailing list