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.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
gaia
Dedicated
Posts: 54
Joined: Mon Nov 13, 2017 8:07 pm

can i activate monitor power saving after x seconds?

Post 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
_____________
XMouse 's lover
User avatar
phil
Site Admin
Posts: 7664
Joined: Sun Apr 06, 2003 11:12 pm

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

Post 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???
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 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 »

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: 7664
Joined: Sun Apr 06, 2003 11:12 pm

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

Post 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.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply