[mythtv-users] Re: Improving WAF -- Poweroff Through The Remote
eric at generation-i.com
Thu Jun 10 17:13:10 EDT 2004
It sounds like the fix is to add a hook to mythfrontend to handle 'EXEC'
for an external app. This would be a very useful capability that lirc
already has therefore if myth is supposed to be a replacement for lirc
daemons it should be there too. Or have I missed something?
On Thu, 10 Jun 2004, Xavier Hervy wrote:
> ggalt at comcast.net wrote:
> > 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
> no chance that's can work. action in keybindings table should be a code
> that mythfrontend or plugin can catch.
> The only way to do that in myth is to make a patch.
> otherwise you can probably launch a script directly with lirc ? (i don't
> use lirc then ...)
More information about the mythtv-users