Is there an app that will disallow my Win10 desktop from "sleeping" ?
-
Is there an app that will disallow my Win10 desktop from "sleeping" ?
I sometimes run my desktop overnight, copying from our network here at work.
I've had issues where I've come in next morning and the desktop has put the network to sleep and put the USB drives to sleep to conserve power and that has stopped the copy.
Is there an App or something that can sit in my tray and disallow my computer from power saving or sleeping?
(I have turned off USB power management in the device manager, and the network adaptor, but for some reason some little thing is sleeping and halting my copying process. I'd just like to know if there is an App available.)
-
-
There are programs such as "MouseJiggler" that create fake mouse movements after a set interval to prevent sleep from occurring. Try something like that and see if it helps.
Mouse Jiggler - Home Page
-
There are programs such as "MouseJiggler" that create fake mouse movements after a set interval to prevent sleep from occurring. Try something like that and see if it helps.
Mouse Jiggler - Home Page
Thanks...
Even if the screen is locked? (I leave work at 5pm, lock screen, and its stlll doing the copying.)
-
-
That's a good question. I've not tried it, you might just need to do a quick test. Maybe set some real low timeout values, like 1 minute, then lock the screen and see if it works.
As an alternative, you could also set a custom power plan and switch to that power plan. In fact, that's actually the method that I use. I sometimes perform some video processing tasks on my laptop and I have a custom power plan that sets everything to high performance mode and prevents sleep from happening. When I perform those tasks I simply switch to that power plan.
-
-
I don't understand why you have not set up power options that avoid sleep.
- - - - - - - - - - - - - - -- -
Those utilities might well be fine but you can do it yourself if you want [as an alternative to changing power plans].
Keep display on.bat
Code:
:KeepDisplayOn
:: Purpose - Stop the display blanking without changing power options
:: Closure - Hover the cursor over its Taskbar icon and click on the X button of its popup thumbnail [or click on the Taskbar icon and click on the x control of its Control box in the top right corner of its window]
:ReRunKeepDisplayOn
set ThisVBScript="%TEMP%\KeepDisplayOn-%RANDOM%.vbs"
Echo Set WshShell = WScript.CreateObject("WScript.Shell") > %ThisVBScript%
Echo WshShell.SendKeys "{NUMLOCK}" >> %ThisVBScript%
Echo WshShell.SendKeys "{NUMLOCK}" >> %ThisVBScript%
Call %ThisVBScript%
del %ThisVBScript%
TimeOut /T 20 /NOBREAK >nul
:: Pause during testing
GoTo ReRunKeepDisplayOn
This batch file simulates tapping on the Numlock key [twice in succession] every 20 seconds.
Denis
Last edited by Try3; 09 Oct 2020 at 13:39.
-
Isn't it slightly bonkers that the Windows developers think that copying data is so close to doing 'nothing' that they let Windows go to sleep?
-
Denis - Copied your "keep display on" text and saved to a bat file. Works perfectly!
One request from those of us who are coding challenged and have the capability to mess up working bat files with a single keystroke. Is it possible to echo out the text and just have a single line showing in the cmd prompt window that states "Close to Allow Sleep" message.
-
-
I have removed the stray %ThisVar% that was a leftover from something I was doing during testing. It did not affect the working of either of the posted versions of the batch file but I don't like stray contents because they disrupt debugging.
Denis - Copied your "keep display on" text and saved to a bat file. Works perfectly!
One request from those of us who are coding challenged and have the capability to mess up working bat files with a single keystroke. Is it possible to echo out the text and just have a single line showing in the cmd prompt window that states "Close to Allow Sleep" message.
Homer,
Because I set tools such as this to run minimised, I never bother hiding anything.
But, since you asked, how about showing nothing and just having the window called Close to allow sleep?
Keep display on.bat
Code:
:KeepDisplayOn
:: Purpose - Stop the display blanking without changing power options
:: Closure - Hover the cursor over its Taskbar icon and click on the X button of its popup thumbnail [or click on the Taskbar icon and click on the x control of its Control box in the top right corner of its window]
@Set ThisTitle=Close to allow sleep
@Title %ThisTitle%
:ReRunKeepDisplayOn
@set ThisVBScript="%TEMP%\KeepDisplayOn-%RANDOM%.vbs"
@Echo Set WshShell = WScript.CreateObject("WScript.Shell") > %ThisVBScript%
@Echo WshShell.SendKeys "{NUMLOCK}" >> %ThisVBScript%
@Echo WshShell.SendKeys "{NUMLOCK}" >> %ThisVBScript%
@call %ThisVBScript%
@del %ThisVBScript%
@TimeOut /T 20 /NOBREAK >nul
:: Pause during testing
@GoTo ReRunKeepDisplayOn
Personally, I always run this from a shortcut that is set to run minimised and that has an icon that reminds me what it is without reading anything.
which appears in the Taskbar as
Denis
Last edited by Try3; 09 Oct 2020 at 13:42.
-
For the same reason given of downloading and copying I set both Sleep and Hibernation to Never.