<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v7.1.9-44333">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>RE: [mythtv-users] Help with dual PVR250's & UDEV</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<blockquote style="border-left: 2px solid #325FBA; padding-left: 5px;margin-left:5px;">-----Original message-----<br /><strong>From:</strong> Hika van den Hoven <hikavdh@gmail.com><br /><strong>Sent:</strong>      Mon 16-02-2015 13:52<br /><strong>Subject:</strong>   Re: [mythtv-users] Help with dual PVR250‘s & UDEV<br /><strong>To:</strong> Discussion about MythTV <mythtv-users@mythtv.org>; <br />Hoi Dave,<br /><br />Monday, February 16, 2015, 1:04:56 PM, you wrote:<br /><br />> -----Original message-----<br />> From:Dave Pearson (Lists) <lists@the-pearsons.co.uk><br />> Sent:Mon 16-02-2015 12:01<br />> Subject:[mythtv-users] Help with dual PVR250‘s & UDEV<br />> To:mythtv-users@mythtv.org; <br />>  <br /><br />> Hi,<br /><br />>  <br />> I've currently got 2 backends with a PVR250 in each. Each PVR250 is<br />> connected to a different Set Top Box via the composite port and uses<br />> a different channel change script. I want to put both cards into the<br />> master backend, but I need to be sure that each card always has the<br />> same name, so that the correct channel change script is assigned to the correct card.<br /><br />>  <br />> In advance of this I've been playing with UDEV rules to try and<br />> give the PVR250 in the master back end it's own unique name (such as<br />> /dev/pvr250-1), but I haven't been able to come up with a rule to do this.<br /><br />>  <br />> I guess what I'm looking for is a rule that will name the card, based on which PCI slot it is in.<br /><br />>  <br />> Can anyone help with a rule to do this, I'm running ubuntu 14.10?<br /><br />>  <br />> Thanks,<br /><br />> Dave.<br /><br />> <br />> <http://mandrillapp.com/track/open.php?u=15101611&amp;id=1bd50fb395f74ff685d32b73a637730b><br />>  <br /><br /><br />This works with PVR350 and PVR500:<br /><br /># Hauppauge PVR500 mpeg2 encoder<br /># pci/vendor id 4444:0016 / 0070:e807/e817 <br /># driver ivtv<br />SUBSYSTEM=="video4linux", \<br />        KERNEL=="video*", \<br />        ATTR{name}=="ivtv? encoder MPG", \<br />        ATTRS{vendor}=="0x4444", \<br />        ATTRS{device}=="0x0016", \<br />        ATTRS{subsystem_device}=="0xe807", \<br />        SYMLINK+="v4l/PVR500/mpeg0"<br />SUBSYSTEM=="video4linux", \<br />        KERNEL=="video*", \<br />        ATTR{name}=="ivtv? encoder MPG", \<br />        ATTRS{vendor}=="0x4444", \<br />        ATTRS{device}=="0x0016", \<br />        ATTRS{subsystem_device}=="0xe817", \<br />        SYMLINK+="v4l/PVR500/mpeg1"<br /><br /># Hauppauge PVR350 mpeg2 encoder<br /># pci/vendor id 4444:0803 / 0070:4000 <br /># driver ivtv<br />SUBSYSTEM=="video4linux", \<br />        KERNEL=="video*", \<br />        ATTR{name}=="ivtv? encoder MPG", \<br />        ATTRS{vendor}=="0x4444", \<br />        ATTRS{device}=="0x0803", \<br />        SYMLINK+="v4l/PVR350/mpeg"<br /><br />But this would be identical for both. If you want to distinquish them<br />you have to do that by their pci slot. I have two PVR500's<br />The one has KERNELS=="0000:05:05:0" and the other "0000:05:06:0 on<br />their parent device. So add that.<br /><br />You can check with:<br />udevadm info --attribute-walk --path $(udevadm info --query path --name=/dev/video0)<br /><br />Tot mails,<br />  Hika                            mailto:hikavdh@gmail.com<br /><br />"Zonder hoop kun je niet leven<br />Zonder leven is er geen hoop<br />Het eeuwige dilemma<br />Zeker als je hoop moet vernietigen om te kunnen overleven!"<br /><br />De lerende Mens<br /><br />_______________________________________________<br />mythtv-users mailing list<br />mythtv-users@mythtv.org<br />http://lists.mythtv.org/mailman/listinfo/mythtv-users<br />http://wiki.mythtv.org/Mailing_List_etiquette<br />MythTV Forums: https://forum.mythtv.org<br /></blockquote><p>Hi Hika,</p><p> </p><p>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!</p><p> </p><p>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.</p><p> </p><p> </p><p>Regards,</p><p>Dave.<br /> </p>
<img src="http://mandrillapp.com/track/open.php?u=15101611&id=e17532bc110749268c5f1429caf6ac87" height="1" width="1"></body>
</html>