Methods to Resolve and Diagnose Sleep Problems with Windows 7
While getting sleep to work reliably with windows 7 is much easier than it was in the days of windows XP, it still can take a little bit of work to get the settings rights. One thing that makes it easier is knowing when the computer went to sleep and then when, and what woke it up. There are several methods to accomplish this task. I will be covering three in this guide. The first is to run powercfg -lastwake from a comand prompt, second is to create a custom view in event viewer and the last method is to use StandbyTracker, a tool created by Andrew Van Til, which will log the sleep events as well as log the results of powercfg -lastwake on each resume. This guide will cover each in that order. First up is using the command prompt…
Open command prompt and type in powercfg -last wake. This will output the results as to the most recent device that was responsible for the waking up the computer.
This method can be very helpful as it will show what device most recently woke up the computer, however it does not show how long the computer was asleep or any other previous sleep and wake cycles for this I use a custom view in the event viewer.
First for those who have not used the event viewer built into windows 7, it is a very powerful tool for debugging many problems in windows 7. This guide will create a custom view showing when the computer went to sleep and then when and what woke the computer up. To start open up event viewer Then, in the event viewer click on “create custom view in the left tab.
Next click ok this will prompt you to give the view a name and a description, I like to use sleep events as the name.
Now you have a new custom view which contains two events. One which will show when the computer went to sleep and the other that will show when the computer woke up. It will also provide information as to why the computer woke up.
Standby Tracker is a handy little tray application that will log each power event, and in addition will execute the over mentioned powercfg -lastwake and add that output to the log. Below is a screenshot of a sample output from the program.
Standby Tracker can be downloaded here
Well in a nutshell these are some methods to track down sleep problems. Please comment if you know of any others.