Kodi Community Forum

Full Version: Shutdown.py? Where and who? Standby possible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have now for a year problems with my HD200 graphics driver after resume.
So i am looking for a working solution:

Right now i am using AutoHotkey. This tool is looking if Kodi is running.
If not send standby signal. This way Kodi is closing before the PC goes to sleep.

After Resume i can start Kodi by task. So i can override the graphic failure.
If i dont go this way Kodi screen is black after resume.

But AutoHotkey is not working perfect for me needs.
I read about a shutdown.py where i can put extra commands in.
Is this right? And wher can i find this script?

My requirement: If i manual close Kodi by pressing a shortcut (eg key A) the script will close Kodi and after that call the sleep command.
Maybe anyone can help me to solve my problem?