Insomnia
Author:
David Anson
Date: 03/01/2011 Size: 321 KB License: Freeware Requires: 11 Downloads: 22668 times ![]() Restore Missing Windows Files |
![]() Download@MajorGeeks Download@MajorGeeks
|
MajorGeeks: Setting the standard for editor-tested, trusted, and secure downloads since 2001. |
Join the MajorGeeks Mailing List to get the latest updates and exclusive offers!
Free tool and source code to temporarily prevent a computer from entering sleep mode. To temporarily suppress sleeping go to Control Panel, open the Power Options page, change the power plan settings and save plus; remember to undo everything later or download this free tool.
The default power settings for Windows are set up so a computer will go to sleep after 15 to 30 minutes of inactivity (i.e., no mouse or keyboard input). This is great because a computer being used needs to be running at full power. By letting an idle machine enter sleep mode, the user benefits from significantly reducing electricity use, heat generation, component wear, etc. And because sleep mode preserves the state of everything in memory, it's quick to enter, quick to exit, and doesn't affect the user's workflow. All the same, applications continue running, windows stay open and where they were, etc.
However, sometimes a computer is busy even though someone isn't actively using the mouse and keyboard; common examples include playing a movie, burning a DVD, streaming music, etc. You don't want the machine to sleep because you're using it - even though you're not using it! So most media players and disc burners tell Windows not to go to sleep while running. There's a dedicated API for exactly this purpose: the SetThreadExecutionState Win32 Function.
But what about when the computer is busy doing something, and the relevant program doesn't suppress the default sleep behavior? For example, it might be downloading a large file, re-encoding a music collection, backing up the hard drive, or hashing the entire contents of the disk. You don't want the machine to sleep for now but are otherwise happy with the default sleep behavior. Unfortunately, the easiest way to temporarily suppress sleeping is to go to Control Panel, open the Power Options page, change the power plan settings, commit them - and then remember to undo everything once the task is finished. It's not hard, but it's annoying.
Similar:
How to Enable or Disable Wake on LAN in Windows 10 & 11
How to Automatically Lock Computer in Windows 10 & 11
How to Add Allow Sleep with Remote Opens Power Settings
Sleep, Hibernate or Shut Down Your PC?
How to Disable or Enable Hibernate in Windows 10 & 11
How to Change the Size of Hiberfil.Sys in Windows 10 & 11
The default power settings for Windows are set up so a computer will go to sleep after 15 to 30 minutes of inactivity (i.e., no mouse or keyboard input). This is great because a computer being used needs to be running at full power. By letting an idle machine enter sleep mode, the user benefits from significantly reducing electricity use, heat generation, component wear, etc. And because sleep mode preserves the state of everything in memory, it's quick to enter, quick to exit, and doesn't affect the user's workflow. All the same, applications continue running, windows stay open and where they were, etc.
However, sometimes a computer is busy even though someone isn't actively using the mouse and keyboard; common examples include playing a movie, burning a DVD, streaming music, etc. You don't want the machine to sleep because you're using it - even though you're not using it! So most media players and disc burners tell Windows not to go to sleep while running. There's a dedicated API for exactly this purpose: the SetThreadExecutionState Win32 Function.
But what about when the computer is busy doing something, and the relevant program doesn't suppress the default sleep behavior? For example, it might be downloading a large file, re-encoding a music collection, backing up the hard drive, or hashing the entire contents of the disk. You don't want the machine to sleep for now but are otherwise happy with the default sleep behavior. Unfortunately, the easiest way to temporarily suppress sleeping is to go to Control Panel, open the Power Options page, change the power plan settings, commit them - and then remember to undo everything once the task is finished. It's not hard, but it's annoying.
Similar:

Top Downloads In Power Management




