[mythtv-users] Help with dual PVR250's & UDEV
Hika van den Hoven
hikavdh at gmail.com
Mon Feb 16 14:23:52 UTC 2015
Hoi Dave,
Monday, February 16, 2015, 3:20:43 PM, you wrote:
> -----Original message-----
> From:Hika van den Hoven <hikavdh at gmail.com>
> Sent:Mon 16-02-2015 13:52
> Subject:Re: [mythtv-users] Help with dual PVR250‘s & UDEV
> To:Discussion about MythTV <mythtv-users at mythtv.org>;
> Hoi Dave,
> Monday, February 16, 2015, 1:04:56 PM, you wrote:
>> -----Original message-----
>> From:Dave Pearson (Lists) <lists at the-pearsons.co.uk>
>> Sent:Mon 16-02-2015 12:01
>> Subject:[mythtv-users] Help with dual PVR250‘s & UDEV
>> To:mythtv-users at mythtv.org;
>>
>> Hi,
>>
>> I've currently got 2 backends with a PVR250 in each. Each PVR250 is
>> connected to a different Set Top Box via the composite port and uses
>> a different channel change script. I want to put both cards into the
>> master backend, but I need to be sure that each card always has the
>> same name, so that the correct channel change script is assigned to the correct card.
>>
>> In advance of this I've been playing with UDEV rules to try and
>> give the PVR250 in the master back end it's own unique name (such as
>> /dev/pvr250-1), but I haven't been able to come up with a rule to do this.
>>
>> I guess what I'm looking for is a rule that will name the card, based on which PCI slot it is in.
>>
>> Can anyone help with a rule to do this, I'm running ubuntu 14.10?
>>
>> Thanks,
>> Dave.
>>
>> <http://mandrillapp.com/track/open.php?u=15101611&id=1bd50fb395f74ff685d32b73a637730b>
>>
> This works with PVR350 and PVR500:
> # Hauppauge PVR500 mpeg2 encoder
> # pci/vendor id 4444:0016 / 0070:e807/e817
> # driver ivtv
> SUBSYSTEM=="video4linux", \
> KERNEL=="video*", \
> ATTR{name}=="ivtv? encoder MPG", \
> ATTRS{vendor}=="0x4444", \
> ATTRS{device}=="0x0016", \
> ATTRS{subsystem_device}=="0xe807", \
> SYMLINK+="v4l/PVR500/mpeg0"
> SUBSYSTEM=="video4linux", \
> KERNEL=="video*", \
> ATTR{name}=="ivtv? encoder MPG", \
> ATTRS{vendor}=="0x4444", \
> ATTRS{device}=="0x0016", \
> ATTRS{subsystem_device}=="0xe817", \
> SYMLINK+="v4l/PVR500/mpeg1"
> # Hauppauge PVR350 mpeg2 encoder
> # pci/vendor id 4444:0803 / 0070:4000
> # driver ivtv
> SUBSYSTEM=="video4linux", \
> KERNEL=="video*", \
> ATTR{name}=="ivtv? encoder MPG", \
> ATTRS{vendor}=="0x4444", \
> ATTRS{device}=="0x0803", \
> SYMLINK+="v4l/PVR350/mpeg"
> But this would be identical for both. If you want to distinquish them
> you have to do that by their pci slot. I have two PVR500's
> The one has KERNELS=="0000:05:05:0" and the other "0000:05:06:0 on
> their parent device. So add that.
> You can check with:
> udevadm info --attribute-walk --path $(udevadm info --query path --name=/dev/video0)
> Tot mails,
> Hika mailto:hikavdh at gmail.com
> Hi Hika,
>
> Thanks for that, it works perfectly with the PCI slot details added
> (and tested with incorrect detail it fails) so I'm good to add the
> other card, knowing that I can address that one too!
>
> I spent ages yesterday trying to come up with a rule to do this,
> but couldn't seem to get the right combination of variables.
>
>
> Regards,
> Dave.
>
Great! It's extremely literal!
Tot mails,
Hika mailto:hikavdh at gmail.com
"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"
De lerende Mens
More information about the mythtv-users
mailing list