I have to stop windows from going into sleep when my program is running. And I don't only want to prevent the sleep-timer, I also want to cancel the sleep-event if I press the sleep-button or in any other way actively tell the computer to sleep.
- Program Preventing Windows From Sleeping
- Program Preventing Windows From Shutting Down
- Program Preventing Windows From Closing
- Program Preventing Windows From Sleeping Bags
- Program Preventing Windows From Sleeping Pills
So your computer is set to go to sleep after a half hour of inactivity, but the darn thing never actually goes to sleep. Want to figure out what's keeping it awake? Here's a quick command for Windows and OS X that'll let you know.
A lot of things can keep your computer from going to sleep, like downloading a file, opening a file on the network, or even a disconnected printer with an open job. Luckily, both Windows and OS X have an easy method for finding out what the problem is.
Program Preventing Windows From Sleeping
Advertisement
For Windows: Go to Start > Programs > Accessories, right-click on Command Prompt, and open it as an administrator. Then type:
It'll let you know if anything is keeping the computer awake. In the screenshot above, for example, it told me that I had a file open in PotPlayer that was preventing my computer from sleeping (since the file resided on the network).
Advertisement
Program Preventing Windows From Shutting Down
For Mac: go to /Applications/Utilities, open up the Terminal, and type:
Program Preventing Windows From Closing
It'll tell you if a device is preventing sleep, and what process that is. Unfortunately, this one seems a little more finicky—some people are having problems where it only tells you that your computer's being kept awake, but it doesn't say by what. If you get stuck in that situation, check out Apple's Help page on the subject. It lists a lot of common possibilities. Hit the link below to read more about each method.
Program Preventing Windows From Sleeping Bags
Advertisement Fujitsu siemens amilo a1645 drivers xp download.
What's Keeping My Computer Awake? | Stack Exchange
Find Out What's Keeping Your Mac Awake | Mac OS X Hints
Program Preventing Windows From Sleeping Pills
Advertisement Sound driver download vista.