Stop sleep while downloading or long processing


  1. Posts : 147
    Windows 10 Pro
       #1

    Stop sleep while downloading or long processing


    If I have a big download or process to run I go to Control Panel > All Control Panel Items > Power Options > Edit Plan Settings > Put the Computer to sleep > Change '30 minutes' to 'Never' and then change it back once the process has been completed. This seems like an archaic process. Is there another way to do this?
      My Computers


  2. Posts : 43,029
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    I use a small free utility called 'Don't Sleep' - which allows a variety of functions to be configured, including scheduled shut down or hibernate.

    E.g.- I set it to block sleep for long enough for the download to complete, then hibernate.
    Stop sleep while downloading or long processing-1.jpg
      My Computers


  3. Posts : 147
    Windows 10 Pro
    Thread Starter
       #3

    Thanks. I will try it out. I thought this is something Microsoft would have thought about as it is a common requirement.

    I have also heard about a command line utility called
    Code:
    powercfg.exe
    although I haven't used it.
      My Computers


  4. Posts : 43,029
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Try powercfg /? at a command prompt. You will see it is not related to your requirement.
    Stop sleep while downloading or long processing-1.jpg
    ... and more..

    A quick search shows this question being asked a good number of times; few solutions.

    There are some browser extensions, but those aren't general solutions of course. I expect there is other freeware around.
      My Computers


  5. Posts : 147
    Windows 10 Pro
    Thread Starter
       #5

    I wonder what sysadmin's do, who have to install for long periods of time on multiple computers?
      My Computers


  6. Posts : 43,029
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    Returning to powercfg - you could disable sleep in a batch file:
    powercfg -X -standby-timeout-ac 0

    More:
    command - Set a one line powershell for sleep and hibernate to turn off - Stack Overflow
      My Computers


  7. Posts : 16,976
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    You could also achieve what you want with a shortcut containing this [so you do not need to set up a batch file for the job]

    Code:
    %windir%\system32\cmd.exe /c "powercfg -change standby-timeout-ac 0"
    - Set it to run minimised [right-click on the shortcut, Properties, Run - select Minimised]
    - Set it to run as Admin [right-click on the shortcut, Properties, Advanced, set Run as Admin]

    If you want to set sleep to Never for both ac [mains power] & dc [battery] then use this combined version of the shortcut [which should also be set to minimised, run as Admin]
    Code:
    %windir%\system32\cmd.exe /c "powercfg -change standby-timeout-ac 0 & powercfg -change standby-timeout-dc 0"

    When you want to return to your normal sleep delay then use this combined shortcut [which should also be set to minimised, run as Admin]
    Code:
    %windir%\system32\cmd.exe /c "powercfg -change standby-timeout-ac 60 & powercfg -change standby-timeout-dc 10"
    where I have assumed 60 mins on ac power & 10 mins on battery


    Denis
    Last edited by Try3; 12 Jun 2018 at 13:49.
      My Computer


  8. Posts : 43,029
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #8

    In practice, Don't Sleep allows you easily to set the time and the event (hibernate, shut down etc) on expiry, so is far more flexible and convenient for a personal user. What is missing is the ability to correlate the expiry of the sleep block with the end of the operation - say a download.
      My Computers


  9. Posts : 147
    Windows 10 Pro
    Thread Starter
       #9

    It is good that there are different options for this problem out there but Microsoft should have sorted this out a long time ago through a GUI within Windows.
      My Computers


  10. Posts : 43,029
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #10

    Feedback Hub app... please add your contribution..!
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:35.
Find Us




Windows 10 Forums