[mythtv] Tv power control idea

Robert Johnston anaerin at gmail.com
Thu Dec 29 22:41:11 EST 2005

On 12/29/05, Neil Whelchel <koyama at firstlight.net> wrote:
> Hello,
> I am using a large plasma TV with Myth and from time to time it gets
> forgotten about and left on overnight or even longer.
> So I came up with the idea of powering off the TV when the screensaver
> would come on. (Also this has the ability to turn the TV on as well.)
> At the moment I hacked the fillowing into screensaver-x11.cpp. Knowing
> that this ais a temporary hack I am posting here for ideas as to what the
> correct way to go about this is...
> The hack simply checks for the presence of a FIFO in the /tmp directory.
> If the file is there it simply writes a number to it to indicate the state
> of the screensaver. The number is read by another (daemon) which calls
> irsend to switch the power of the TV. I am watching a pin of the parallel
> port to get the power state of the TV.
> At the moment it is all very crude but it works very well, no more
> TV-on-all-night problem and pressing any button on the remote turns the TV
> on!

This is a very convoluted solution... Does not the plasma in question
support DPMS? If it does, why not use DPMS to put the plasma into
Robert "Anaerin" Johnston

More information about the mythtv-dev mailing list