[mythtvnz] Detect manual power-on and start MythFrontend - how?

Steven Ellis steven at openmedia.co.nz
Mon Jun 2 23:24:40 BST 2008


On Tue, June 3, 2008 9:20 am, Andrew Ruthven wrote:
> On Mon, 2008-06-02 at 22:21 +1200, Criggie wrote:
>> Matt Poff wrote:
>> > Curious to know how others are handling this (if at all)?
>>
>> I don't - kinda.  My backend is always on, but is out in the garage
>> where the aerials are.  It doesn't even have X installed.
>>
>> Theres an old P3 inside as a dedicated front end, which runs X out of
>> inittab, and then runs mythfrontend out of that user's .Xsession file.
>>   Then when X quits it runs sudo poweroff.
>
> You're game, on my frontend, if X exists then iniittab restarts X and
> the frontend.  This nicely handles the case where mythfrontend crashes
> (or needs to be killed because it has locked up).
>
> To shutdown our frontend we use the "Exit and shutdown" option when
> exiting the frontend.
>
> I've been meaning to package these bits and pieces up into a .deb but
> haven't gotten around to it yet.
>
> Actually, I've been meaning to hook one of the buttons on our remote
> control a "kill myth" command so that I don't have to ssh in from
> another box to kill the frontend (this is a regular occurance).

I have the power button on th Hauppauge MCE remote setup for such an issue.

First press will exit mythfrontend (kill -9), which is often enough to
then restart the frontend from mythwelcome.

Second press will cause X to restart

Steve

--------------------------------------------
Steven Ellis - Technical Director
OpenMedia Limited - The Home of myPVR
email   - steven at openmedia.co.nz
website - http://www.openmedia.co.nz



More information about the mythtvnz mailing list