[mythtv-users] tuner numbering
Roger Siddons
dizygotheca at ntlworld.com
Thu Feb 27 23:26:02 UTC 2014
On Thu, 27 Feb 2014 20:20:10 -0000, Daryl McDonald <darylangela at gmail.com>
wrote:
> Hi Roger, I commented out the changes Hika suggested, corrected the
> device ID, disabled my capture-card.(rules), and still the udevadm
> tests show no symlinks:
Well, I'm stumped. How about starting from scratch?
Disable your existing rules by renaming it to digital-cards.disabled.
Paste the following into new file test.rules. Ensure they are all single
lines, i.e. remove newlines from your mail client.
# Match all dvb devices
SUBSYSTEM=="dvb", SYMLINK+="test1"
# Find Leadtek
SUBSYSTEM=="dvb", ATTRS{device}=="0x8852", SYMLINK+="test2"
# Check C shell. Demonstrate failed program
SUBSYSTEM=="dvb", PROGRAM="/bin/csh -c 'echo test3'", SYMLINK+="%c"
# Check bash.
SUBSYSTEM=="dvb", PROGRAM="/bin/bash -c 'echo test4'", SYMLINK+="%c"
# Original
SUBSYSTEM=="dvb", ATTRS{device}=="0x8852", PROGRAM="/bin/sh -c 'K=%k;
K=$${K#dvb}; printf dvb/test5/%%s $${K#*.}; exit 0'", SYMLINK+="%c"
# Bash version
SUBSYSTEM=="dvb", ATTRS{device}=="0x8852", PROGRAM="/bin/bash -c 'K=%k;
K=$${K#dvb}; printf dvb/test6/%%s $${K#*.}; exit 0'", SYMLINK+="%c"
Assuming your Leadtek is still on adapter6 run the usual test:
udevadm test $(udevadm info -q path -n /dev/dvb/adapter6/dvr0)
Report the value of DEVLINKS. I get:
DEVLINKS=/dev/dvb/test5/dvr0 /dev/dvb/test6/dvr0 /dev/test1 /dev/test2
/dev/test4
More information about the mythtv-users
mailing list