Event Log "Wake Source" when system wakes from sleep

Posted by Doltknuckle on Server Fault See other posts from Server Fault or by Doltknuckle
Published on 2010-12-07T21:49:46Z Indexed on 2011/11/27 9:53 UTC
Read the original article Hit count: 315

Filed under:
|
|

So I've been troubleshooting sleep timers for our systems and have run across an interesting issue. I need a way to report how long a system was awake after a number of different inputs. Now, I've discovered that the System Log tracks wake and sleep events and even tells you the times that everything happens at. The thing is doesn't tell you is what triggered the wake event. It does give you a numerical code however. Here are some examples of what I am finding.

Index              : 2901
EntryType          : Information
InstanceId         : 1
Message            : The system has resumed from sleep.

                     Sleep Time: 2010-10-01T23:20:06.097488100Z
                     Wake Time: 2010-10-03T17:41:12.796400500Z

                     Wake Source: 0
Category           : (0)
CategoryNumber     : 0
Source             : Microsoft-Windows-Power-Troubleshooter

--

Index              : 2841
EntryType          : Information
InstanceId         : 1
Message            : The system has resumed from sleep.

                     Sleep Time: 2010-10-01T19:19:37.239789600Z
                     Wake Time: 2010-10-01T21:28:48.921200800Z

                     Wake Source: 4HID Keyboard Device
Category           : (0)
CategoryNumber     : 0
Source             : Microsoft-Windows-Power-Troubleshooter

So here's my question: Does anyone know what the different numerical codes for the "Wake Source" mean? I think "0" is a magic packet and "4" is a USB device.

Does anyone have any idea if there is any documentation out there on this for Windows 7?

Thanks in advance

© Server Fault or respective owner

Related posts about windows-7

Related posts about event-log