I’ve read a few threads about using the Screensaver starting to trigger turning the TV off using the CEC connection, but I’m a little stumped. It worked as soon as I enabled it, worked great… but no longer works and I’m at a loss to explain why.
It was all good, and my testing of the Vero was positive, so I decided to unplug my old media center. While doing that I thought I would take the opportunity to clean and dust the TV and stand, reroute some cables and general tidy up. When I reconnected everything the CEC function did not work at all, no response from the Vero using the TV remote. So I read a thread here which instructed to unplug TV and Vero power, wait 5 minutes and then power the TV up, set to the correct input and power on the Vero. Worked like a charm, everything remote related is back to normal. But the screensaver starting no longer turns the TV off. I’ve tried toggling just about every setting, restarting after each change, different screensaver etc. No way can I seem to get it to work again…
Script? There’s nothing customized here, just go into Settings, System, Input, Peripherals, CEC Adapters and insure CEC is enabled then checkmark the setting to “Put devices in standby mode when activating the Screensaver”. Job done. And it worked perfectly and consistently until I unplugged and rerouted my cables and restarted.
There is no “Standby” being initiated in your debug logs. So it might be that the screensaver not triggering it.
to check if the CEC part is working try echo "standby 0" | cec-client -s
and if that is working try Kodi kodi-send --action="CECStandby"
I’ll try those commands in the morning. To be clear, I issue these via a ssh remote session directly from the command prompt?
What’s really odd is this did work fine through a number of Vero reboots and TV power cycles. It only stopped working after everything was unplugged while I organized cables and then plugged back in and powered up. No config changes were made at all…
This turned the TV off as expected. When I turned the TV back on, CEC remote buttons no longer controlled KODI. I had to reboot the Vero and then I regained the ability to control it via the TV remote.
This did nothing with KODI unless KODI was actively in screensaver mode in which case it stopped the screensaver.
Good thought. Yes I did change the HDMI cable to a shorter, higher quality one but it’s plugged into the same TV input as before. But I already tried swapping back to the other one with no difference. As I say, the CEC remote commands are passing through with no problem as I can navigate KODI perfectly with my TV remote.
Ok, I am out of thoughts. For me this either is a Kodi issue (but then it should not have worked before) or it is a cable issue (but then using the same cable and poweroff all devices for a couple of minutes should make it work.
Did you change anything in terms of refresh rate settings or audio always on settings?
I changed nothing in terms of refresh rate, audio or any core hardware settings. But I do recall going through the CEC settings in KODI and disabling “Wake devices when deactivating the screensaver” because I didn’t want any key on the remote to turn the TV back on, just the Power key. I may have “cleaned up” a couple of other CEC settings since I only have a TV and the Vero, no other components, therefore I never switch inputs or have to designate a different source etc. But, I’ve since tried a number of different settings in the CEC device in case there was something required I didn’t realize. I continued this work this morning and…
It’s now working again.
I’ve narrowed it down to one of two settings which I toggled on before it stated working again:
Switch source to this device on startup
Send “Inactive source” command on shutdown.
I don’t know which of these did the trick because I toggled them both on at the same time and when the screensaver kicked in the TV turned off. I’ve since tried toggling them off one at a time, then both together and the TV continues to turn off when the screensaver kicks in regardless of their setting. I hate ambiguous solutions…
I’m happy to continue to test if you’re curious and have any theories, but otherwise job done (fingers crossed).
Thanks for all your help, much appreciated!
I also tried this as it would be great for my setup (with a Plasma), if the screensaver could turn off the TV and turn it back on…
This didn’t help here:
echo "standby 0" | cec-client -s
works as expected and turns the TV off. However,
didn’t work here either and neither did any Kodi command to wake up the TV again.
Is there a version of the echo “standby 0” | cec-client -s command to wake the TV up from standby?
EDIT: Doing, what @Phydeaux tried seems to have worked after I rebooted the Vero 4k. Now the TV is properly turned off when screensaver kicks in and turned back on when I press a button on the remote again.