Kodi Community Forum
Turn off screen saver after waking up from standby/hibernation - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: Turn off screen saver after waking up from standby/hibernation (/showthread.php?tid=210127)



Turn off screen saver after waking up from standby/hibernation - DJ_Izumi - 2014-11-30

Firstly, I don't know if this issue applies to other platforms, I only use windows.

Anyway, my living room XBMC box is set to hibernate after 30mins in an effort to save power. It's a 3770K based HTPC, so I think you can see WHY I don't want it spinning 24/7 if there's no need. The screen saver kicks in after 5mins, and another 25mins it goes into hibernation. When I wake it, it wakes up with the screen saver still running. Is it possible to have XBMC detect that the machine has just awoken and to turn off the screen saver as if some form of input has just been made?


RE: Turn off screen saver after waking up from standby/hibernation - Ned Scott - 2014-11-30

Are we talking about XBMC/Kodi screensaver or Windows screensaver?


RE: Turn off screen saver after waking up from standby/hibernation - teeedubb - 2014-11-30

You could use eventghost to send some kind of input to xbmc on resume, or even make xbmc go to the home screen.


RE: Turn off screen saver after waking up from standby/hibernation - wsnipex - 2014-11-30

if its about the kodi screensaver, then I fully agree. Its annoying having to first wake up the htpc, then press again to disable the screensaver.


RE: Turn off screen saver after waking up from standby/hibernation - DJ_Izumi - 2014-11-30

(2014-11-30, 08:55)Ned Scott Wrote: Are we talking about XBMC/Kodi screensaver or Windows screensaver?

I'm sorry, I should have been clear, I totally mean the XBMC/Kodi internal screensaver and NOT the Windows OS screen saver. AFAIK the Windows OS screensaver does not generate this behavior (Though my OS doesn't have any such screensaver enabled)


RE: Turn off screen saver after waking up from standby/hibernation - wsnipex - 2014-11-30

from a quick test, this seems to work for me on linux: https://github.com/wsnipex/xbmc/commit/f9b143fb33f17c7a19afc1d3547d29d3d8815fff


RE: Turn off screen saver after waking up from standby/hibernation - DJ_Izumi - 2014-12-02

I'm glad my idea generated some interest, now I'm just wondering why I'm the first person who suggested it. Smile

Also, an alternative route may be not to detect that the OS is waking up, but that it's going to sleep. If the screen saver is disabled upon sleep, it won't be active during wakeup anyway. I'm saying that because since timed sleep/hibernation is initiated by Kodi itself, it could just turn off the screensaver at the same time. Hmm, does pressing the remote sleep button cause the screen saver to turn off as well? I should check.


RE: Turn off screen saver after waking up from standby/hibernation - DJ_Izumi - 2015-01-29

I'd like to make an addition to this. It seems that Kodi, if set to run a library update on startup, will also run a library update when waking from sleep or hibernation. If this is so, that means Kodi detects it's awakened and perform a task upon doing so, so shouldn't making it end the screensaver when waking also be doable? Kodi is already detecting it's wakeup afterall.