[mythtv-users] Udev
Bill Meek
keemllib at gmail.com
Wed Nov 28 20:46:34 UTC 2018
On 11/28/18 2:16 PM, Daryl McDonald wrote:
>>
>> Yes: udevadm info -a -p $(udevadm info -q path -n /dev/dvb/adapter0/dvr0)
>>
> Further testing, running the above command with only one tuner installed at
> a time shows unique info for the two HP cards and identical info for the
> two PC800i cards. Would it be functional to have three Udev rules and allow
> the second PC800i card to be labelled what-ever?
I *think* you'd be happy with a single rule. The question mark on the KERNEL line
gets both of my tuners.
Here's my rule for a single HVR-2200 card that has two tuners on it. Both record
ATSC (not on different sources.) There's no unique information about the tuners.
SUBSYSTEM=="dvb", \
KERNEL=="dvb?.frontend0", \
ATTRS{subsystem_vendor}=="0x0070", \
ATTRS{subsystem_device}=="0x8851", \
SYMLINK+="dvb/hvr-2200-$minor", \
TAG+="systemd"
#Creates:
# lrwxrwxrwx 1 root root 18 Dec 27 23:27 /dev/dvb/hvr-2200-0 -> adapter0/frontend0
# lrwxrwxrwx 1 root root 18 Dec 27 23:27 /dev/dvb/hvr-2200-4 -> adapter1/frontend0
looking at device '/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/dvb/dvb0.frontend0':
KERNEL=="dvb0.frontend0"
SUBSYSTEM=="dvb"
DRIVER==""
looking at device '/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/dvb/dvb1.frontend0':
KERNEL=="dvb1.frontend0"
SUBSYSTEM=="dvb"
DRIVER==""
--
Bill
More information about the mythtv-users
mailing list