I am looking at setting up my pi 2 to shutdown when it detects that my TV has been shutdown via CEC notification.
Currently my pi is powered by a energy saving power board that cuts the power about 20 seconds after the TV is shutdown, I was think of setting up a script to detect the CEC shutdown notification and initiate pi shutdown.
Has anyone tried something like this? does it sound feasible ?
Hi,
I am looking at setting up my pi 2 to shutdown when it detects that my TV has been shutdown via CEC notification.
Currently my pi is powered by a energy saving power board that cuts the power about 20 seconds after the TV is shutdown, I was think of setting up a script to detect the CEC shutdown notification and initiate pi shutdown.
Has anyone tried something like this? does it sound feasible ?
thanks
Change the setting in Preferences to 'Shutdown' for 'When TV is turned off', however some TV's cut power immediately to the USB port when powered off, this will kill the power to the Pi before a proper shutdown has occurred and will eventually corrupt the SD card. Much better to leave the Pi on 24/7.