Wake from xbmc's screensaver
#1
Is it possible to wake XBMC from its own screensaver using Python (e.g. screen dimmed to un-dimmed). I looked through python-docs, and JSONRPC without any luck. Any help would be much appreciated.
Reply
#2
I have partially solved this with this code:

Code:
if xbmc.getCondVisibility("System.ScreenSaverActive"):
    xbmc.executebuiltin('ActivateWindow(home)')

However it will activate main window, waking up from screensaver, but unfortunately leaving current one. I don't know with this code how to activate current window, as ActivateWindow uses a list of predefined values, none of them for the current window.

Hope this helps a bit.
Reply
#3
The old http api had a send key function. The first key sent was ignored and woke xbmc. If there's a jsonrpc equivalent, you could try that
Reply
#4
As far as I know, this SendKey function effectively worked for waking up the system from the screensaver, but it disappeared with the HTTP API and no JSON equivalent exists.

The most similar function in JSON API is SendText, but it is intended for filling text in edit controls, and I couldn't use it for stopping screensaver.

Br.
Reply
#5
Today I had the same problem and solved it this way:

Code:
if xbmc.getCondVisibility("System.ScreenSaverActive"):
    xbmc.executebuiltin('ActivateWindow(%s)' % xbmcgui.getCurrentWindowId())
Reply

Logout Mark Read Team Forum Stats Members Help
Wake from xbmc's screensaver0