[mythtv-users] UDEV rules

Bill Meek keemllib at gmail.com
Sun Jan 26 16:21:55 UTC 2014


On 01/26/2014 09:02 AM, Daryl McDonald wrote:
> On Sat, Jan 25, 2014 at 6:51 PM, Bill Meek <keemllib at gmail.com> wrote:
>> On 01/25/2014 05:36 PM, Hika van den Hoven wrote:
>>>
>>> Hoi Bill,
>>>
>>> One more isue, What if you have two identical cards? Without a counter
>>> of sorts you will only get one!
>>
>>
>> Good point.
>>
>> I haven't tried yet. On my 'test' host, there's only one card, so
>> it's easy. On my 'production' host I do have a single card with
>> 2 tuners and a diff of the output from udevadm info for each half
>> looks like this:
>>
>> <   looking at device
>> '/devices/pci0000:00/0000:00:1c.4/0000:06:00.0/dvb/dvb0.frontend0':
>> <     KERNEL=="dvb0.frontend0"
>> ---
>>>    looking at device
>>> '/devices/pci0000:00/0000:00:1c.4/0000:06:00.0/dvb/dvb1.frontend0':
>>>      KERNEL=="dvb1.frontend0"
>>
>> For this card, there is a single connection to the antenna for both halves
>> so the same MythTV source is used. But that's for testing another day.
>
> Is it possible that the GROUP for analog should stay "video", but the
> GROUP for digital should be "dvb"? I was able to get the analog card
> to take the symlink name, but not the digital one.   Daryl

I'd say not. In fact omitting the GROUP key completely allows udevadm trigger
to create the symlinks (haven't tested after a reboot as I'm recording now.)

Here's what I came up with for my dual tuner card.

     http://pastebin.com/GADQ2kvV

Pastebin the *current* output of:

     udevadm info --attribute-walk --path $(udevadm info --query path --name=/dev/dvb/adapter0/frontend0)

(or whatever device(s) you're testing) and the rule if you're not getting the
link(s) you want.

-- 
Bill



More information about the mythtv-users mailing list