Start Kodi on TV startup and stop on TV poweroff with CEC
#1
Hello everyone,

Kodi is running great on my Raspberry Pi 3B with latest stable using Debian stretch minimal (command line). Cec also works fine. I have automated that Kodi starts on startup.

It would be awesome if I could only start Kodi when TV is on, I don't need to have it in the background when TV is off and I would save my pi some CPU and memory, since I am using the Pi for more stuff and I don't have enough juice sometimes.

Is this possible to automate, how?
Reply
#2
Big Grin 
(2019-04-08, 21:27)cotarelo Wrote: Hello everyone,

Kodi is running great on my Raspberry Pi 3B with latest stable using Debian stretch minimal (command line). Cec also works fine. I have automated that Kodi starts on startup.

It would be awesome if I could only start Kodi when TV is on, I don't need to have it in the background when TV is off and I would save my pi some CPU and memory, since I am using the Pi for more stuff and I don't have enough juice sometimes.

Is this possible to automate, how?

Anybody ?
Reply
#3
This isn't really a kodi question but some script that will run outside of kodi.
First question is can you detect if your TV is off from bash? (this varies with tv models).

Try running "tvservice -s" both with TV on and off and see if the state reported changes.
Reply

Logout Mark Read Team Forum Stats Members Help
Start Kodi on TV startup and stop on TV poweroff with CEC0