Reply To: start / stop kodi based on HDMI monitor status

Max2Play Home Forums Max2Play on Raspberry PI start / stop kodi based on HDMI monitor status Reply To: start / stop kodi based on HDMI monitor status

19. Januar 2016 at 10:35 #17996

I also wonder how to change the script so that it turns on with display but that kodi doesn’t shutdown when I turn off the display.

Can I simply remove this part?

elif [[ "$cmd" != "$oldcmd" ]] ; then

                echo stopping kodi
                $(sudo systemctl stop mediacenter)
                oldcmd=$cmd

Or would I get into problem when I turn on the screen again and kodi is already started?