[mythtv-users] HDPVR Kernel module reload as power cycle
Rob Davis
rob at davis-family.info
Wed Dec 5 14:59:33 UTC 2012
On 2012-12-04 11:26, Michael wrote:
> On 11/30/2012 09:33 AM, Steven Adeff wrote:
>> from the wiki,
>> "If you still experience problems with stability, a small kernel
>> module re-load script is included below in the Bitrate and Picture
>> Controls sub section that re-loads the kernel modules and acts like
>> a
>> power cycle on the HD-PVR." -
>>
>> http://www.mythtv.org/wiki/Hauppauge_HD-PVR#Firmware_Version_Stability
>>
>> Is this correct, that reloading the kernel module for the hdpvr acts
>> as a power cycle negating the need for the user to physically power
>> cycle the device?
>>
>> If so, has anyone figured out a way to initiate a module reload at a
>> time where MythTV won't be using any attached HDPVR devices?
>>
>
> Here is what I use to see if my hdpvrs are in use and if not, power
> down my satellite receiver. You could probably modify it to do what
> you want.
>
> !/bin/bash
> export PATH=/usr/bin
> MYTHWEBURL=http://<url>/mythweb/status
>
> wget -O - --quiet $MYTHWEBURL | grep HDPVR | \
> while read line; do
> dish=`echo $line | sed -e 's/.*hdpvr\([0-9]\).*/\1/'`
> if `echo $line | grep --quiet 'and is not recording'`; then
> echo "Powering off directv-${dish}"
> /usr/local/bin/directv-${dish} off
> else
> echo "directv-${dish} is busy"
> fi
> done
How often do you run this?
More information about the mythtv-users
mailing list