Windows 10 keeps waking from sleep

8

9

My computer has been waking out of sleep since I've upgraded to windows 10. It usually sleeps for many hours before waking. This is a desktop PC.

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

C:\WINDOWS\system32>powercfg -devicequery wake_armed
NONE

I have "Allow sleep timers" disabled under the advanced power settings.

Automatic maintenance "Allow scheduled maintenance to wake my computer at the scheduled time" is unchecked.

"Wake the computer to run this task" under "Task Scheduler" is unchecked for all tasks.

I do not have TeamViewer installed which was this guy's problem

Does anyone have any idea what could be waking my PC up or what I could do to identify it? Or if there is any way to force the PC to sleep no matter what until I hit the power button?

Dallas

Posted 2015-08-30T02:54:34.003

Reputation: 181

A few possibilities: wake-on-LAN, if there is another device on the system; Windows Update, which, until a recent patch, could not be prevented; vibration causing the mouse to move (though that is not Windows 10-specific). – DrMoishe Pippik – 2015-08-30T04:30:09.253

Check Event Logs to see if the reason is mentioned – Sami Kuhmonen – 2015-08-30T05:12:55.757

1@SamiKuhmonen powercfg get its information from the event logs - the event will say exactly the same. – DavidPostill – 2015-08-30T07:17:39.867

@DrMoishePippik, none of my network devices have "Allow this device to wake the computer" checked. As seen above, none of my devices are wake_armed (including mouse and keyboard). I meticulously went into all of my device power management properties to make sure none of them were able to wake my computer. I see there is an update available... I'll try that and see if it stays sleeping. Seems like it has been waking up 12-20 hours after sleeping it, so it will take awhile to report anything. – Dallas – 2015-08-30T14:12:57.430

Quick test: disconnect from network (WiFi, Bluetooth and Ethernet) before Sleep, and see if it wakes up on its own. BTW, some PC's have Wake-on-LAN setting in BIOS. – DrMoishe Pippik – 2015-08-30T16:29:11.820

I don't have bluetooth, not hooked up via ethernet. I removed the source of internet (just a USB wireless receiver) and it still woke up sometime throughout the day. -lastwake is still unhelpful. – Dallas – 2015-08-31T21:57:37.867

I found "wake on magic packet" and "wake on pattern match" properties in my realtek pcie gbe family controller... and disabled them. but it shouldn't matter anyway as i have it so that device isn't allowed to wake the pc... but we'll see – Dallas – 2015-08-31T22:19:32.493

@DrMoishePippik, still waking up... there should be a setting to "only wake up if I push the power button" -.- – Dallas – 2015-09-02T23:52:03.187

1

Possible duplicate of http://superuser.com/questions/464578/laptop-randomly-waking-up-hibernate-low-battery?rq=1

– sancho.s Reinstate Monica – 2016-07-13T05:56:36.987

@sancho.s, that is a laptop on windows 7, this is a desktop on windows 10. There isn't even a hibernate option. – Dallas – 2016-07-13T13:15:19.850

The Windows version might not introduce any difference, regarding your issue. As for laptop vs. desktop, that does not mean that the answer to your question is not contained in solutions posted there, or even in a fragment of the question. And desktops can hibernate too. You might be surprised. – sancho.s Reinstate Monica – 2016-07-14T01:12:41.217

Answers

2

The "Wake on Magic Packet" option may turn the computer on (if someone/something is pinging the computer). Go through Device Manager to resolve this and not the Network and Sharing Center (see EXPLANATION below).

STEPS:

  1. Open the "Device Manager"
  2. Open the "Network adapters" tree
  3. Select your adapter (you may have two if you have both wireless and Ethernet capabilities)
  4. Right-click on the adapter
  5. Select "Properties"
  6. Select the "Advanced" tab
  7. Under the "Property" box, scroll down and select "Wake on Magic Packet"
  8. Change the "Value" drop-down box to "Disabled"

EXPLANATION: You can go through the "Network and Sharing Center" by selecting "Change adapter settings" on the left side of the screen; selecting your adapter's "Properties"; selecting "Configure"; and then going to the "Power Management" tab. However, I've noticed on some of my computers (including Windows 7), that the magic packet option will be grayed out or unchecked in the "Power Management" tab but be "Enabled" in the "Advanced" tab.

Using the Device Manager route solved my issue with unwanted waking from sleep on my laptop. Good luck.

Luke1018

Posted 2015-08-30T02:54:34.003

Reputation: 133

0

Are you sure it's on sleep mode and not crashing? Windows 10 + nVidia = TDR still... they haven't solved this issue yet (at least for the systems that only have a dedicated GPU)
First step, uninstall P4G, restart, change all the power values to your choice, make sure that you select the correct power option, restart, test.
BTW, on windows 10 there are 2 areas for these options. One is the typical power configuration which we all know about, and the other one is in their "settings" option from the start menu. Check both.

Lisa Coffey

Posted 2015-08-30T02:54:34.003

Reputation: 1

0

My PC started doing this after the latest Windows 10 update; instantly go to sleep after 15 minutes of no usage, as intended, but then 5 or 10 minutes later it booted up again and that cycle goes on all day. Hope this batch file helps you.

powersleep.bat :

@echo off
&mode 32,2 &color cf &title Power Sleep
set "s1=$m='[DllImport ("Powrprof.dll", SetLastError = true)]"
set "s2=static extern bool SetSuspendState(bool hibernate, bool forceCritical, bool disableWakeEvent);"
set "s3=public static void PowerSleep(){ SetSuspendState(false, false, false); }';"
set "s4=add-type -name Import -member $m -namespace Dll; [Dll.Import]::PowerSleep();"
set "ps_powersleep=%s1%%s2%%s3%%s4%" 
call powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -Command "%ps_powersleep:"=\"%"
exit

ubronan

Posted 2015-08-30T02:54:34.003

Reputation: 1

0

I had the same problem. All configurations correct, yet the PC kept waking even though wake timers was disabled, and update wasn't allowed to wake the PC as well. After days I figured out that Spotify has recently (past month) changed, and adds waketimers!

On windows 10, the "allow waketimers->disabled" option in the power settings is ignored (at least, it does not what it should do: prevent waketimers to wake the PC from sleep!). Thus, the waketimer set by Spotify AFTER opening spotify, was actually causing my PC to wake from sleep.

If you have the latest version of Spotify, it might be the cause of your problem as well. You can remove the spotify waketimer via this code (Source)

taskkill /IM Spotify.exe /T /F
taskkill /IM SpotifyCrashService.exe /T /F
taskkill /IM SpotifyWebHelper.exe /T /F

Put the code in a BAT script and run it prior to turning your PC to sleep. You might as well add this code (Source)

rundll32.exe powrprof.dll,SetSuspendState 0,1,0

to turn your PC to sleep from the same bat file (saves a little time)

Jeffrey

Posted 2015-08-30T02:54:34.003

Reputation: 101

1I don't have spotify. I backed up all my files and reformatted (or "reset") windows 10 without keeping any apps or anything and I think its staying asleep now... but perhaps this might help someone else. I really think there should be an option to say "sleep and don't wake up for anything else except me hitting the power button" =\ – Dallas – 2015-09-28T02:58:03.053