<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 04/09/2013 12:07 AM, John J Tucker
wrote:<br>
</div>
<blockquote cite="mid:BCF00E21-E0F8-4500-8A48-2E3F9F81401C"
type="cite">Greetings,
<div><br>
</div>
<div>I would appreciate so help understanding the udev rules.</div>
<div><br>
</div>
<div>I have just switched from cable to DirecTV. My setup is a
single combined BE/FE with two HD PVRs. With the previous cable
setup I used firewire to change channels and never had problems
with the HD PVRs migrating around between /dev/video0 and
/dev/video1. The DirecTV setup is that same except that I use
the web service (directv_http.pl) to change channels. Now I
have had problems with the HD PVRs switching places and this is
not good.</div>
<div><br>
</div>
<div>I read the mythtv wiki page (<a moz-do-not-send="true"
href="http://www.mythtv.org/wiki/Device_Filenames_and_udev">http://www.mythtv.org/wiki/Device_Filenames_and_udev</a>)
and copied the HD PVR sample substituting the serial numbers in
the sample for my serial numbers. My confusion comes from my
assumption that I would point to the SYMLINK device vs
/dev/video0/1. mythtv_setup doesn't like the SYMLINK
(/dev/v4l/hdpvr1/2) but /dev/video0 and /dev/video1 work.</div>
<div><br>
</div>
<div>Would someone explain what I'm doing wrong and how should my
setting look like.</div>
<div><br>
</div>
<div>copy of my rules.d file</div>
<div><br>
</div>
<div>
<div># /etc/udev/rules.d/10-hdpvr.rules</div>
<div>#HDPVR - hdpvr1</div>
<div>KERNEL=="video?",SUBSYSTEM=="video4linux",ATTRS{serial}=="00A29AC2",</div>
<div>SYMLINK+="v4l/hdpvr1"</div>
<div><br>
</div>
<div>#HDPVR - hdpvr2</div>
<div>KERNEL=="video?",SUBSYSTEM=="video4linux",ATTRS{serial}=="00A252CB",</div>
<div>SYMLINK+="v4l/hdpvr2"</div>
</div>
<div><br>
</div>
<div>
<div>straight from the wiki (mostly).</div>
</div>
<div><br>
</div>
<div>Thanks in advance.</div>
<div><br>
</div>
<div>adios,</div>
<div>jt</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a>
</pre>
</blockquote>
Did you look under /dev and see if the symlink is being created.. If
so, then go into mythtv-setup and under card setup input change
/dev/video1 to /dev/hdpvr1 and the same for /dev/hdpvr2...restart
and it should make them stay put..<br>
<br>
I don't have 2 hdpvr's,I have 1 hdpvr,and one pvr150.. Here is a
copy of my rules..<br>
<br>
KERNEL=="video*", ATTR{name}=="ivtv0 encoder MPG",
ATTRS{device}=="0x244e" , SYMLINK+="pvr150"<br>
<br>
KERNEL=="video*", ATTR{name}=="Hauppauge HD PVR",
ATTRS{vendor}=="0x8086", SYMLINK+="hdpvr"<br>
<br>
You don't say what distro you use ,but a few years ago there was a
script called uvev-rules-junty.py that would identify your capture
devices and make the symlink for you.. I still use it.. I'm sure it
can be adapted to any distro..<br>
<br>
good luck<br>
<br>
<br>
</body>
</html>