[mythtv-users] Kill frontend when TV is turned off.

Brian J. Stults bstults at fsu.edu
Fri Jan 22 14:35:53 UTC 2010


Jan Johansson wrote:
> 
> Since I am away from home, I do not have ready access to my set-up to
> experiment with this idea.
> But, it occurred to me that it would be kind of neat to kill
> mythfrontend when the TV-gets turned off (Because then it would drop to
> mythwelcome, and eventually power down).
> Now, I suppose that I could let read-edid/parse-edid run every cpl of
> minutes and act when no information is available. But can someone think
> of any other ways to do this?
> 

This may not be what you want, but I use xscreensaver to determine when
the frontend is not in use and shut it down.  The screensaver is
disabled by mythtv when recordings/videos/dvds are being watched, so
that's not a problem.  When the frontend is not playing something and
keys/buttons are not being pressed, the idle counter starts.  I have
mine set so the screensaver activates after 10 minutes of idle time
which instantly kills the frontend.  Then the system goes back to
mythwelcome which handles powering down our two myth boxes when appropriate.

As an added bonus, when mythwelcome is running and the system is not
shutting down (like when another recording is coming up,
mythfilldatabase is running, or someone is watching something on the
other box), the screensaver starts up and displays random photos from
our collection in mythgallery.  Very entertaining.  That's definitely my
wife's favorite part of our whole setup.


More information about the mythtv-users mailing list