PC waking up in sleep mode

Recently, I noticed that my PC was waking up from sleep mode without me explicitly clicking the mouse, pressing a key on the keyboard or sending a magic packet…

I found this problem was due to an update of the Ethernet drivers which allowed any packet to wake up the computer…

Click to Read More

This is a problem which comes back regularly when updating drivers. Each time, I wonder what’s wrong again. So, here are some tricks to find the cause.

First:

  • Put the computer at sleep and wait until it wakes up.

Next, look for the last device which turned on the PC:

  • Execute in a Dos prompt : powercfg -lastwake
C:\WINDOWS\system32>powercfg -lastwake
Wake History Count - 1
Wake History [0]
 Wake Source Count - 1
 Wake Source [0]
 Type: Device
 Instance Path: USB\VID_046D&PID_C52B&2b3c7d9c&0&3
 Friendly Name:
 Description: USB Composite Device
 Manufacturer: (Standard USB Host Controller)
Device 0xC52B is a USB Receiver for Wireless Mouse 
Vendor 0x046D is Logitech Inc.
  • Go into the Device Manager, find that device and open its properties. In its “Power Management” tab, disallow the device to turn on the computer. If the option is not available, this device is not causing your issue.
    • If your PC has been waked up by the Ethernet Controller, it can be because any packet can wake it up. In the Power Management tab, tick the option “Only allow a magic packet to wake the computer”.

If this does not help:

  • Open the “Event Viewer” (eventvwr) > “Windows Logs” > “System”.
  • “Filter Current Log” on “Event Source” = Power-Troubleshooter to find which device did wake up your PC:
The system has returned from a low power state.
Sleep Time: ‎2016‎-‎12‎-‎24T09:40:11.549148000Z
Wake Time: ‎2016‎-‎12‎-‎24T09:41:07.347715900Z
Wake Source: Device -Intel(R) Ethernet Connection (2) I219-V

You can also look for the list of devices able to wake up the PC:

  • Type in a Dos Prompt: powercfg -devicequery wake_armed
C:\WINDOWS\system32>powercfg -devicequery wake_armed
Logitech HID-compliant Unifying keyboard
HID-compliant mouse
HID Keyboard Device
HID Keyboard Device (001)
Logitech HID-compliant Unifying Mouse
Intel(R) Ethernet Connection (2) I219-V
Logitech HID-compliant Unifying Mouse (001)

The PC can also be waked up by Timers (Scheduled Tasks):

  • Type in a Dos Prompt: powercfg -waketimers
  • Open the “Task Scheduler” and find the task mentioned by the command above.
  • In the tab “Conditions” of that task, disable the option “Wake the computer to run this task”

You call also disable all tasks that could wake up the PC at once:

  • Open the “Power Options” > “Change plan settings” > “Change advanced power settings”. Under “Sleep”, disable “Allow wake Timers”

Finally, you could also have to disable the Automatic Maintenance:

  • Open “Change Automatic Maintenance settings” and disable “Allow scheduled maintenance to wake up my computer at the scheduled time”

Loading


Categories:

Tags:


Comments

One response to “PC waking up in sleep mode”

Leave a Reply

Your email address will not be published. Required fields are marked *