can i activate monitor power saving after x seconds?

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
Post Reply
gaia
Member
Posts: 15
Joined: Mon Nov 13, 2017 8:07 pm

can i activate monitor power saving after x seconds?

Post by gaia » Sun Aug 26, 2018 8:22 am

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

User avatar
phil
Site Admin
Posts: 5594
Joined: Sun Apr 06, 2003 11:12 pm

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

Post by phil » Sun Aug 26, 2018 10:38 am

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???
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

naarcissus
New User
Posts: 1
Joined: Thu Nov 01, 2018 9:31 pm

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

Post by naarcissus » Thu Nov 01, 2018 10:14 pm

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}

User avatar
phil
Site Admin
Posts: 5594
Joined: Sun Apr 06, 2003 11:12 pm

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

Post by phil » Thu Nov 01, 2018 11:23 pm

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.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

Post Reply