<br><br><div class="gmail_quote">On Wed, Dec 5, 2012 at 7:59 AM, Rob Davis <span dir="ltr"><<a href="mailto:rob@davis-family.info" target="_blank">rob@davis-family.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 2012-12-04 11:26, Michael wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 11/30/2012 09:33 AM, Steven Adeff wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
from the wiki,<br>
"If you still experience problems with stability, a small kernel<br>
module re-load script is included below in the Bitrate and Picture<br>
Controls sub section that re-loads the kernel modules and acts like a<br>
power cycle on the HD-PVR." -<br>
<br>
<a href="http://www.mythtv.org/wiki/Hauppauge_HD-PVR#Firmware_Version_Stability" target="_blank">http://www.mythtv.org/wiki/<u></u>Hauppauge_HD-PVR#Firmware_<u></u>Version_Stability</a><br>
<br>
Is this correct, that reloading the kernel module for the hdpvr acts<br>
as a power cycle negating the need for the user to physically power<br>
cycle the device?<br>
<br>
If so, has anyone figured out a way to initiate a module reload at a<br>
time where MythTV won't be using any attached HDPVR devices?<br>
<br>
</blockquote>
<br>
Here is what I use to see if my hdpvrs are in use and if not, power<br>
down my satellite receiver. You could probably modify it to do what<br>
you want.<br>
<br>
!/bin/bash<br>
export PATH=/usr/bin<br>
MYTHWEBURL=http://<url>/<u></u>mythweb/status<br>
<br>
wget -O - --quiet $MYTHWEBURL | grep HDPVR | \<br>
while read line; do<br>
dish=`echo $line | sed -e 's/.*hdpvr\([0-9]\).*/\1/'`<br>
if `echo $line | grep --quiet 'and is not recording'`; then<br>
echo "Powering off directv-${dish}"<br>
/usr/local/bin/directv-${dish} off<br>
else<br>
echo "directv-${dish} is busy"<br>
fi<br>
done<br>
</blockquote>
<br></div></div>
How often do you run this?<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br>Since I want the satellite off any time it isn't in use, I run this every 30 minutes.<br><br>In the case of reloading the module, may you run want to reload once or twice a day.<br>
<br>The script would probably need to be modified to:<br><br>2) Check to see if the PVR is in use<br>3) If it is, sleep 10 minutes and loop until it isn't<br>4) Reload the module<br>5) exit<br><br>Michael<br><br> <br>
</div></div>