[mythtv-users] Help with dual PVR250's & UDEV

Hika van den Hoven hikavdh at gmail.com
Mon Feb 16 13:35:02 UTC 2015


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

"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