Page 1 of 1

can i activate monitor power saving after x seconds?

Posted: Sun Aug 26, 2018 8:22 am
by gaia
hi
is there a way to activate monitor power saving after x seconds?
i would click on the desktop (use on of my mouse buttons) and let xmouse activate monitor power saving after x minutes

i can't find any option
the problem is that i can activate monitor power saving but immediatly the monitor turn on again
thanks

Re: can i activate monitor power saving after x seconds?

Posted: Sun Aug 26, 2018 10:38 am
by phil
There is no option in XMBC to change the time, it just sends the message to Windows to turn off the monitors when the button is pressed... Can you not get Windows not do that for you already (isn't that kind'a the point of the monitor powersaving anyway)?

I suppose I could introduce such an option (to add a configurable delay before the powersave message is sent) but I'm struggling to see a use case when Windows should do it for you anyway???

Re: can i activate monitor power saving after x seconds?

Posted: Thu Nov 01, 2018 10:14 pm
by naarcissus
I think this kind of thing could be solved by including many of the functions applicable to mouse buttons in the Simulated Keys dialog.

With that option OP could set it up like:

Code: Select all

{WAIT:30}{MONITORPS}
This way you would not have to implement a separate configuration dialog.

EDIT:
@gaia
You might be able to use NirCmd (Google it. I'm too new for links.) with the Simulated Keys in XMBC to activate it:

Code: Select all

{WAIT:30}{RUN:<path to exe>\nircmd.exe monitor off}
or:

Code: Select all

{RUN:<path to nircmd>\nircmd.exe cmdwait 30000 monitor off}

Re: can i activate monitor power saving after x seconds?

Posted: Thu Nov 01, 2018 11:23 pm
by phil
I don't think this will work, because simulated keys, while the are sent from another thread, are sent in series, so it would block out any other simulated keystrokes while it waits for 30 minutes!

To be honest, XMBC is not the tool to do this. Maybe you can use XMBC (run application or simulated keystrokes) to kick off a batch file or script that will wait and then do something (n another process), but having long waits in XMBC is not a good idea and is not what it is designed for.