Windows 7 Forums


Windows 7: Lastwake Command


Lastwake Command

How to See What Woke Up Your Computer Last
Published 01 Nov 2010
Published by

Featured Tutorial

Safe Internet Browsing
Safe Internet Browsing

How to safely operate on the internet and stay free from malware infections

Troubleshooting Windows 7 Failure to Boot
Troubleshooting Windows 7 Failure to Boot



Microsoft Account Primary Alias Email Address - Change
Microsoft Account Primary Alias Email Address - Change

How to Change your Microsoft Account Primary Alias Email Address

Secunia ONLINE Software Inspector
Secunia ONLINE Software Inspector

How to Scan for Common Software Vulnerabilities

Bootmgr - Move to C:\ with EasyBCD
Bootmgr - Move to C:\ with EasyBCD

How to Move Bootmgr to C:\ with EasyBCD

Search - Find More with Filters and Operators
Search - Find More with Filters and Operators

How to Use Windows Search Filters and Operators to get better Search Results in Windows 7
How to See What Woke Up Your Computer Last

information   Information
This will show you how to see what device, task, or etc... has woken up your computer from sleep or hibernation last.

This will work best if you do this right after your computer wakes up, and before the next time is sleeps. Otherwise you may miss what last woke it previously.






OPTION ONE
Using the "lastwake" Command
1. Open a command prompt.

2. In the command prompt, copy and paste the command below and press enter. (see screenshot below step 3)
powercfg lastwake
3. You will now see what last woke up your computer. (see screenshot below)
Lastwake Command-cmd.jpg

For example:
This is what last woke up my computer from above. Just for information purposes, you can look this up in Device Manager (devmgmt.msc).
HID=Harware ID
  • Description - HID-compliant Bluetooth Mouse
Lastwake Command-description.jpg
  • Instance Path - HID\VID_046D&PID_C71C&REV_0101&Col01
Lastwake Command-instance-path.jpg
4. See related links below if you wish to not allow this device or item to wake the computer anymore.





OPTION TWO
Reading the "Wake Source" Event Viewer Log
1. For how, see: How to Read the Wake Source Log in Event Viewer for Windows 7 and Vista
That's it,
Shawn






Need more help? Try searching our extensive help and support site.
Loading
08 May 2011   #1
tanitani

Windows 7 Professional x64
 
 

Thank you. The powercfg -lastwake command is not working as you described. The following is the result of running it every time the laptop woke up. The first one was a spontaneous wake the rest were by opening the display, NOT a BUTTON!
Thanks.
Gábor

Quote:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>powercfg -lastwake
Wake History Count - 1
Wake History [0]
Wake Source Count - 0



C:\Windows\system32>powercfg -lastwake
Wake History Count - 1
Wake History [0]
Wake Source Count - 1
Wake Source [0]
Type: Fixed Feature
Power Button

C:\Windows\system32>powercfg -lastwake
Wake History Count - 1
Wake History [0]
Wake Source Count - 1
Wake Source [0]
Type: Fixed Feature
Power Button

C:\Windows\system32>powercfg -lastwake
Wake History Count - 1
Wake History [0]
Wake Source Count - 1
Wake Source [0]
Type: Fixed Feature
Power Button

C:\Windows\system32>powercfg -lastwake
Wake History Count - 1
Wake History [0]
Wake Source Count - 1
Wake Source [0]
Type: Fixed Feature
Power Button

C:\Windows\system32>powercfg -lastwake
Wake History Count - 1
Wake History [0]
Wake Source Count - 1
Wake Source [0]
Type: Fixed Feature
Power Button
My System SpecsSystem Spec

08 May 2011   #2
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Gábor, and welcome to Seven Forums.

"Power Button" may just be a general term used for whatever action "opening the display" you did to wake the computer.

You might also check the items listed in this tutorial to see if it may help determine what woke up your computer as well.

Power Options and Sleep Mode Problems - Vista Forums
My System SpecsSystem Spec
22 May 2011   #3
tanitani

Windows 7 Professional x64
 
 

Hello Brink,

Thank you for the quick reply. And thank you for the welcome as well.
I followed your tutorial, and after checking everything the only setting that was different was the:

PCI Express -> Link State Power Management -> Off

For me it was "On". I made the change and so far (about a week) it seems that it works: the laptop did not wake on its own.

The "opening the display" just meant that I opened the screen/lid/display of my laptop up.
Which should not happen actually, since I set the action for "When I close the lid" as "Do nothing".
On all the other laptops I worked with this setting allowed me to also open the laptop without it turning on, but this is a bit off topic.

Thanks again and now that the world did not come to an end (May 21 was supposed to be the end of the world, later it was rescheduled to be October 21 and May 21 was to be the date of "Rapture") I wish you have a good day!

Gábor
My System SpecsSystem Spec
.


22 May 2011   #4
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Gábor,

That's great news. I'm happy to hear that you got it sorted. Thank you for posting back with your results.

Next it will be for Halloween night.
My System SpecsSystem Spec
28 Feb 2013   #5
Pixel Eater

Windows 7 Ultimate x64
 
 

So what exactly does "Wake Source Count - 0" tell us? Because something is waking my computer up, but all I see is...

Wake History Count - 1
Wake History [0]
Wake Source Count - 0

This helped me fix a classic wake on Ethernet problem before, but now I'm not sure.
My System SpecsSystem Spec
28 Feb 2013   #6
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Pixel Eater,

That indicates it doesn't have a wake source and a reason why.

If you haven't already, give OPTION TWO a try to see if Event Viewer may have a log of what woke the computer up.

Hope this helps for now.
My System SpecsSystem Spec
Comment

 Lastwake Command problems?



Tutorial Tools



Similar help and support threads for: Lastwake Command
Windows 7 Tutorial Category
Solved No REG Command in "Open elevated command window here" DOS Box General Discussion
Run administrative command prompt from command prompt General Discussion
Run command box General Discussion
Command Prompt command <ipconfig> not working Network & Sharing
RUN Command General Discussion


All times are GMT -5. The time now is 01:28 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32