[mythtv-users] Power on/off TV with CEC

Simon Hobson linux at thehobsons.co.uk
Sun May 25 08:44:32 UTC 2014


Josu Lazkano <josu.lazkano at gmail.com> wrote:

> But nothing happens on power off. The frontend PC power off but the TV is on.
> 
> How could I power off? Need I configure any CEC command?

I'm not familiar with either CEC or this bit of software, but ...

I expect you'll need to configure <something> to send a command as the system shuts down. Timing is important here - you don't want it to happen too soon, but equally your script *MUST* run before the system stops the daemon you use to talk to the CEC adapter (or anything that needs).

I imagine a script added to /etc/init.d, and linked to in /etc/rcn.d/Knnn, would do it - the trick will be getting it to run at the right time.



More information about the mythtv-users mailing list