Logging power events (sleep & wake up) to the event log

Is there any way to log power events, such as when the PC goes to sleep and wkaes up? Additionally, it would be helpful to log the device that caused the PC to wake up. Can this be written to the event logs? If not, how would one query these events?

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

Hello Keith Fletcher,

Welcome to Microsoft Answers Forum!

Event viewer gives you all the information, such as when a user logs on to the computer or when a program encounters an error. Whenever these types of events occur, Windows records the event in an event log that you can read by using Event Viewer. Advanced users might find the details in event logs helpful when troubleshooting problems with Windows and other programs.

For more information, please refer the links mentioned below:

What information appears in event logs (Event Viewer)?

http://windows.microsoft.com/en-US/windows7/What-information-appears-in-event-logs-Event-Viewer

Open Event Viewer

http://windows.microsoft.com/en-US/windows7/Open-Event-Viewer

I hope this information helps. Please get back to us if you have any more questions about this issue.

Thanks and Regards
Mir - Microsoft Support                                                            
Visit our
http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads

4 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I don't see any answer to the original poster's question here. How do you get sleep/wake power events into the logs? Where do you find them?

JoeM845

29 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I realise it's not the whole answer that you need but powercfg -lastwake will tell you what woke the computer up last time
Try*3 - a user
Dell Inspirons 7779, 1545, 9300; Windows 10 Home x64 & Pro x86; Office Pro 2007; HP DJ2540; HTC UPlay [Android 6.0], MyPhoneExplorer

15 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hello, 

You are searching for event ID 42 in System log from source Kernel-Power as the sleeping event

and the event ID 1 in System log from source Power-Troubleshooter for computer's awakening, which are respectively the last and first logs entries upon sleeping/waking up

Correct me if I am wrong

183 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thanks, Gregory.

 

The Kernel-Power 42 event is the last I see before sleeping.. While the Power-Troubeshooter 1 event is not the first event after wakening, it is logged in the wihtin the first 5 seconds after returning from sleep.

9 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

and the event ID 1 in System log from source Power-Troubleshooter for computer's awakening, which are respectively the last and first logs entries upon sleeping/waking up




I've encountered a recent problem where this wake event isn't being logged in the event viewer. If anyone has any idea how to resolve the issue it would be appreciated.

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hello,

in source Power-Troubleshooter there's all info about computer's sleep time, though you need to put attention if there's correct time (sometimes it's couple hours different but time difference still remains same) because for some reason the Event Viewer converts times in UTC into the local time zone.

It applies to Windows 7, but I've got question - does anybody know how to check it in Windows XP? I was looking for it and couldn't find any info...

2 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hello,
1.click start, in the searchbox type "change when computer sleeps" and hit enter

2.click the "turn off display" butten and set it to 2,3,4, or 5 hours or "whatever"

3.do the same on "put computer to sleep" butten (set it to the same as "turn off display") & click on "save changes"...

Hope this helps!

Help those that need it!

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Keith

Logging power events is easy with Event viewer.. 

here are the steps...

  1. Open Event viewer and right click on Custom View and click on 'create custom view 
  2. Under the Filter Tab ; check "By Source" and from the Event sources dropdown select Kernel-Power, Power-Troubleshooter. Also check all the Event Levels.
  3. Just above the Task Category you have space to enter the Event ID.. This is important as you dont need all the information except for entering sleep and resuming from sleep. Just enter 42,1
  4. Leave the rest and click ok
  5. Give a name for this Log ... and you are good to go.
Hope this is what you are looking for... let me know

50 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

This response does not answer the question.

3 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

 
 

Question Info


Last updated November 28, 2020 Views 157,100 Applies to: