[mythtv-users] Improving WAF -- Poweroff Through The Remote

ggalt at comcast.net ggalt at comcast.net
Thu Jun 10 16:27:10 EDT 2004


I'm trying to improve the WAF factor of MythTV.  I have a headless system at home (FC1 and Alex's RPMs with a PVR-350) that remains on all the time.  The problem is that we occassionally get significant thunderstorms and power outages/surges.  Usually, if I'm home and a big storm is on, I simply remotely log into the box and power it down -- this is beyond my wife's capabilities (note: for those who are going to suggest a UPS, I've got one, but it doesn't always last for the full power outage, and while I can get it to power the system off, my wife would like to be able to shut things down on her own).

I've set up a new button on the main menu to call a script that shuts down the compture with the following:
   <button>
	<type>TURNOFF</type>
	<text>ShutDown Computer</text>
	<action>EXEC $HOME/MythPowerOff</action>
   </button> 

Thjs runs a simple script that powers off the system, and it works as long as the TV is still on, but this too seems beyond my wife -- at least most of the time.

My wife  would like to be able to use the nice green power button on the Hauppauge Grey remote to turn the system off.  I figured that if I could bind a key to execute the script, I would be home free.

I tried modifying the "keybinding' table in MythConverg to add an entry that would allow the F10 key to call the shutdown script.  I was then going to simply modify my lircrc file to bind the green power key to the F10 key, but the attempt to modify the keybinding table did not work.  This was the line added to the keybinding table:

INSERT keybindings VALUES ('Global', 'EXEC $HOME/MythPowerOff', 'Shutdown Computer', 'F10', 'localhost.localdomain');

This does not work.  Any clues on binding a key to a script, or do I need to edit the source and recompile?

George


More information about the mythtv-users mailing list