[mythtv-users] Multiple HDPVRs Modprobe Settings
Andrew C. Stadt
acstadt at stadt.ca
Sat May 3 22:09:31 UTC 2014
On Thu, 2014-05-01 at 11:48 -0500, Martin Compton wrote:
> I put a second HDPVR on my Ubuntu 12 / Myth0.27 system. One's input is
> HD, the other's SD (i.e. TV1 and TV2 from ViP222k).
>
> I have configured and confirmed my 'udev' rules create the intended
> device links, and both devices work fine once the video and audio inputs
> are set (using v4l2-ctl on the second HDPVR).
>
> What is the best way to set the default inputs for each HDPVR?
>
> I had been using '/etc/modprobe.d/hdpvr.conf' but can't find any way to
> specify for which HDPVR it is setting the default inputs.
>
> If it cannot be done in modprobe, would adding a script call in my
> 'udev' rules work?
>
> Thanks,
> MC
Just base the udev rules off of the devices serial numbers: Here's a
snippet from my MBE's udev rules (which hosts 2 of my hdpvrs)
[code]
KERNEL=="video[0-9]*", ATTRS{product}=="Hauppauge HD PVR",
ATTRS{serial}=="00A46253", SYMLINK+="hdpvr1", RUN
+="/sbin/hdpvr-install.sh"
KERNEL=="video[0-9]*", ATTRS{product}=="Hauppauge HD PVR",
ATTRS{serial}=="00A40C31", SYMLINK+="hdpvr2", RUN
+="/sbin/hdpvr-install.sh"
[/code]
Of course, you probably don't need to run the script... that was put in
place way back to correct the hue/saturation issue with the latest
firmware and older kernels... I've been informed its since been
corrected, but I still let the script do its thing - it hasn't hurt
anything yet :-)
Cheers,
Andrew.
More information about the mythtv-users
mailing list