[mythtv-users] Suspend to RAM
mythtv at blandford.net
Fri Nov 2 14:09:22 UTC 2012
On 11/01/2012 09:14 PM, Joseph Fry wrote:
> But I have an other problem, before I suspend the machine I use to
> switch of the TV with a irsend command. But when I return from
> suspend mode the TV is off.
> I don't know how to manage this, do I need a special script to run
> before return from suspend? how could I check if the TV is off?
> I would use an IRSEND to power the tv back on when the system resumes
> from suspend (eg
> To determine if the TV is already on, there are several approaches
> you might take:
> 1. do an edid query (should only work if the tv is on)
> 2. use a serial cable, if your tv has a db9, and see if you get a
> response from the set.
> 3. ping the tv (assuming it has network connectivity)
> I have also read that you could wire the tv's usb +5v and GND to a
> serial port's CTS and GND and sense the CTS status of the port using a
> python or C program... but that's far more complicated.
Most modern TV support discrete codes for on and off as well as toggle
power. You just need to figure out the code for on and always transmit
it when resuming. Then you don't care about whether the TV is already
on or off.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mythtv-users