Prevent Windows from Sleeping

By  on  

I have a few processes on my Windows gaming PC that are critical but sometimes get impacted over night as Windows tells my beloved machine to tone it down. My machine has the necessary cooling so I'm happy to let the processes do their work.

There is a setting in the UI which allows you to prevent Windows from sleeping but disabling that didn't seem to work. Want to truly prevent sleep and hibernation? Open the Command Prompt app with "Run as Administrator" and use the following two commands:

C:\Windows\system32> powercfg.exe /h off

I've noticed better performance of those processes when I'm not using the PC so I think all is well! Keep those Windows processes rolling at max power!

Recent Features

  • By
    Camera and Video Control with HTML5

    Client-side APIs on mobile and desktop devices are quickly providing the same APIs.  Of course our mobile devices got access to some of these APIs first, but those APIs are slowly making their way to the desktop.  One of those APIs is the getUserMedia API...

  • By
    Chris Coyier’s Favorite CodePen Demos

    David asked me if I'd be up for a guest post picking out some of my favorite Pens from CodePen. A daunting task! There are so many! I managed to pick a few though that have blown me away over the past few months. If you...

Incredible Demos

Discussion

  1. Eugene

    Thanks, a useful thing! The description looks a bit confusing though. You mention two commands, but there is only one command mentioned later.

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!