Temporarily Disable Sleep Mode in Windows with Insomnia

Posted on December 26, 2009 at 5:24 am

Sleep mode can be useful at times when we want to save our laptop batteries, but we do not want to wait for the entire startup routine later.  Most laptop users set their PCs to sleep after just five minutes of non-activity, while the Windows default is just 15 minutes, even when plugged into a power source.

However, there are times when sleep mode is completely inconvenient, like when giving a presentation or watching a DVD.  Microsoft’s Insomnia is a free application designed to solve this issue without constantly reconfiguring your power settings.

Insomnia downloads as a zip file of just 139 KB. Once extracted, the program does not need to go through any kind of installation process to work. Simply double-click the green, pill-like icon and the program starts.

insomnia folder

Once open, the application appears as simply a pop-up window stating that the computer cannot enter sleep mode so long as the window is open.

Insomnia popup window

The temptation to then send your computer into sleep mode (just to see if it will work, of course) is overwhelming. In both Windows Vista and 7, manually sending the computer into sleep mode worked, despite Insomnia’s assurance it would not.

However, neither the Vista nor 7 PC would sleep based on the automatic power settings while the window was open—meaning the program does exactly what it is designed to do.

While it serves its intended purpose, the program lacks one necessary feature: the ability to minimize the window. So, if watching a DVD outside of full screen mode, this window will appear in front of the movie. It can be moved to a remote corner of the screen, but it simply cannot disappear.

For the tech-savvy, Microsoft has included the source code for Insomnia in the zip file.

disable sleep mode

In less than 40 lines of code, the program calls upon the “SetThreadExecutionState Win32” API used by many of the most popular DVD players to keep PCs from sleeping during a movie.

Ultimately, many will be disappointed with this application. It does precisely what it says it does—it keeps the computer from falling asleep during inconvenient times without having to re-configure your computer’s power options.

However, Insomnia would benefit from a couple added features, such as the ability to minimize the window.

Insomnia can be downloaded from: MSDN.com

» Filed Under Free Software Downloads

Related Posts

Comments

2 Responses to “Temporarily Disable Sleep Mode in Windows with Insomnia”

  1. hapidu said on :

    Well I changed one of my Vista’s Power plans to disable sleep so i can basically turn it on or off by changing power plans with my laptop power plan button, or from the battery icon menu next to the clock.


    Pingbacks
  1. Prevent a Mouse from Waking Windows 7 up from Sleep Mode Says:

    [...] Sleep Mode is giving you other problems, check out these articles on disabling sleep mode and troubleshooting Windows 7 when the operating system won’t enter into sleep mode at all. [...]

Please post your comments/suggestions!