<p dir="ltr">On 8 October 2012 10:49, Josu Lazkano <<a href="mailto:josu.lazkano@gmail.com">josu.lazkano@gmail.com</a>> wrote:<br>
> I want to suspend the frontend and switch off the TV, I think I have<br>
> two options for the TV switch OFF:</p>
<p dir="ltr">My TV has an RS-323 port that I use to control it over a serial cable.</p>
<p dir="ltr">> I normally use irsend to switch off the TV, but I don't know to switch<br>
> on when the frontend is on suspend mode.</p>
<p dir="ltr">Are you asking how to make the the remote wake up the computer? That's done typically by setting up Wake on USB. Or are you asking how to turn on the TV upon resume? A script in sleep.d is how I do that; they get executed on resume too, with case statements to distinguish between sleep and resume.</p>
<p dir="ltr">In fact, you could put the commands to turn off the TV in the same script in the sleep section, and have the power button on your remote just call the suspend command. Then its consistent and symmetrical.</p>
<p dir="ltr">David</p>