PC waking from sleep for unknown reason

43

16

I recently started experiencing an issue with my PC, which runs Windows 10 Pro. It wakes from hibernation at seemingly random times. I have done the following to try and troubleshoot the issue:

  • Turn off wake timers
  • Disable all peripherals from waking the system
  • Unplug network cable (No Wi-Fi)
  • Try another power outlet

The computer still wakes at random times. When issuing the command

powercfg /lastwake

I get the following:

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

I absolutely need Wake on LAN to work on the system, and it always has before. This issue only started recently.

cascer1

Posted 2015-08-11T10:13:47.937

Reputation: 1 762

Relevant: My Windows 7 PC wakes up randomly and powercfg lastwake shows nothing. What to do?

– DavidPostill – 2015-08-11T10:27:34.850

@DavidPostill I'm afraid neither of those questions you just posted was of any help.

I just tried increasing the timeout to go from sleep to hibernate. Though it never woke up exactly the amount of time after sleeping specified in the settings. – cascer1 – 2015-08-11T10:37:59.407

Have a look at this discussion Windows 10 wakes randomly whether this helps you with some idea.

– vembutech – 2015-08-11T11:26:07.860

And another one: http://superuser.com/questions/464578/laptop-randomly-waking-up-hibernate-low-battery

– Badiboy – 2015-08-11T14:12:06.593

Also see http://superuser.com/a/1014580/384183

– Nick Baker – 2016-08-17T21:16:21.713

July 2018. There is NO powerdownETC option under Winlogon. It only has AlternativeShells; AutoLogonChecked; GPExtension (expandable with 100+ lists of numbers); VolatileUserMgrKey (mine is set to 1). – Floyd Beck – 2018-07-12T21:46:15.560

Answers

10

The issue was caused by TeamViewer, it creates wake timers that are somehow ran(?) even though wake timers are disabled. Even shutting down TeamViewer doesn't solve the issue for me. But uninstalling TeamViewer resolved the issue.

cascer1

Posted 2015-08-11T10:13:47.937

Reputation: 1 762

How did you determine this is what caused it to wake? – Dallas – 2015-08-25T23:55:01.953

@smerny - I found it here, Look for an answer by GBoDH containing TeamViewer (the only answer containing TeamViewer on that page)

– cascer1 – 2015-08-26T19:39:24.157

I don't have teamviewer installed, and can't find Realtek (or any other) PCIE controller on my machine. Yet the darn computer keeps restarting. – Jimmy – 2015-12-31T15:19:30.420

21

I found that it was the "Allow Wake Timers" detailed here.

This has worked for me so far. Go to:

Control Panel\Hardware and Sound\Power Options\Edit Plan Settings

Click "Change advanced power settings"

Go to "Sleep->Allow wake timers" and change the setting to Disable.

And also from here.

Go to Task Scheduler

Find NT TASK\Microsoft\Windows\UpdateOrchestrator\Reboot

Its actually just named Reboot but you have to go inside those folders

Right Click > Properties > Conditions

Uncheck Wake the computer to run this task

Paul

Posted 2015-08-11T10:13:47.937

Reputation: 311

2Didn't work for me :( – Jimmy – 2015-12-31T15:17:36.327

1Disabling wake timers didn't solve the problem for me. It turned out Teamviewer was ignoring the setting (how does a program overrule an OS setting again?) and rebooting anyway. It seems to be solved in the later versions. – cascer1 – 2016-03-13T08:58:37.717

1In addition to this, I had the mouse and the keyboard set as allowed to wake the PC. both of bad quality which kept always on regardless of the PC power status. Disabling both features gave me the working solution in my case – Moslem Ben Dhaou – 2016-07-27T10:01:41.993

Also makes sense to remove NTFS write permissions from this task for all accounts (including SYSTEM). This way updates will not re-enable the wake condition again. The file is located here: C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator – Monsignor – 2016-12-10T19:10:45.427

what do I do if Task Scheduler is started as admin but it requires a user and password to change the settings? A user/password that I don't have (user is S-1-5-18, whatever that is) – jcollum – 2018-03-21T02:40:00.903

1@jcollum Use psexec to start cmd as SYSTEM (the user with SID S-1-5-18), then open the task scheduler from that cmd (using taskschd.msc command), then perform the changes in that one. Note that psexec needs to run as administrator, so it can do its magic. – Paul Stelian – 2018-07-12T00:21:31.783

1

Another approach is to see which devices are able to wake up the computer :

powercfg -devicequery wake_armed

And then, try to deactivate this device related privilege in devmgmt.msc

Alexis-Emmanuel Haeringer

Posted 2015-08-11T10:13:47.937

Reputation: 151

0

FOUND THE PROBLEM:

edit the registry Key hkey_local_machine\software\Microsoft\Windows NT\CurrentVersion\WinLogon and modify PowerdownAfterShutdown and change it to 1

Source: Windows 10 wakes randomly from hibernate - Microsoft Community https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_perf/windows-10-wakes-randomly-from-hibernate/247e69c3-cc7a-40db-b34e-43d8d60e6947?auth=1

Summary: this setting prevents the computer from fully powering down upon "hibernation" if it's set to 0. Response: Who knew there would be any question? But apparently it's one more straw in the nest. If it doesn't work - I'll be back. Upvote please.

My Original post (background facts and personal peeves and observations):

Also have situation - with no teamviewer. The O.S. settings are being ignored, and no WAKE shows up in powercfg -lastwake. At first I thought that there was some intent to wake it - we all did. That is not true - it is just failing to power down. Note that this error is a prime security issue. And, it is standard operating procedure for Microsoft with its impossibly arbitrary levels of complexity, to create the situation incidentally (not accidentally.) They weren't happy with just being impossibly stupid since the browser wars - they had to double down again and again. Someone needs to go in that place and seriously reformat their drive.

Ion-Christopher

Posted 2015-08-11T10:13:47.937

Reputation: 1

PARTIAL ANSWER RETRACTION. WORKAROUND. Due to the severe nature of this security issue, if your system persists in waking, after you have done the above steps, use this procedure: enter hibernation, and on shut down PULL THE PLUG and THE BATTERY (for laptops.)
IMPORTANT STARTUP ISSUE: reinstall battery / plug in the machine. IT MAY IMMEDIATELY RESTART - wait for it. Do not touch anything except to turn on your monitor. IF NOT, then press the power button / resume key. IT SHOULD RESUME NORMALLY, EITHER WAY.
– Ion-Christopher – 2017-09-30T10:19:01.513

1CAUTION: Users who are not familiar with editing the Windows Registry should proceed with caution, as making changes to it can have big consequences for your system. – jvriesem – 2017-10-26T17:53:43.770

0

I think that is not possible to solve it. When some Windows updates are pending due a computer restart and the computer is in hibernate mode, it automatically turns on at the scheduled time to restart. You must restart Windows manually, but if another update requires restart and you don't restart imediatelly, when you put the computer to hibernate, at the next time scheduled to restart , the computer will turn on again. Nevertheless, it is possible to change the schedule time to a period when the computer is normally turned on.

Ulisses Farias

Posted 2015-08-11T10:13:47.937

Reputation: 1

How do you change the scheduled time? – Nilzor – 2015-09-22T06:16:23.150

"I don't think a fix is possible" isn't really an answer, unless you really support why it isn't possible. Because there are many reasons this could be happening -- not just Windows updates -- proving that a fix isn't possible would be difficult and tedious. – jvriesem – 2017-10-26T17:51:02.587