THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | |
in Search

John Paul Cook

Windows Not Sleeping All Night

Having a computer wake up when you don’t want it to wastes electricity and drains the battery on mobile devices. My desktop had been waking up at night, so I assumed it was some network traffic on my home network. I unchecked Allow this device to wake the computer on my network adapters.

image

Figure 1. Network adapter Power Management tab.

That didn’t solve the problem. I included the screen capture in Figure 1 because it could be part of the solution for someone else.

To identify the root cause instead of guessing, the System log was examined. As you can see, pressing the sleep button was putting the machine to sleep.

image

Figure 2. Timestamp of when the computer was put to sleep.

To figure out what was waking the machine up, the System log was checked to review all events following the sleep event.

image

Figure 3. System log showing what woke the computer up.

This is what requested the computer to wake up:

Wake Source: Timer - Windows will execute 'NT TASK\Microsoft\Windows\TaskScheduler\Regular Maintenance' scheduled task that requested waking the computer.

A Bing search provided more information: http://support.microsoft.com/kb/2799178

To change this behavior, go to the Action Center and click on Change maintenance settings.

image

Figure 4. Automatic Maintenance section in the Action Center.

There are two options for modifying the Automatic Maintenance schedule. You can change the time or disable the ability for automatic maintenance to wake your device.

image

Figure 5. Options for controlling maintenance events waking the computer.

Published Sunday, May 18, 2014 11:05 AM by John Paul Cook

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Kevin said:

Thanks!  I've been having this same issue and figured it was just an issue with the mouse waking the computer.

May 18, 2014 3:55 PM

Leave a Comment

(required) 
(required) 
Submit

About John Paul Cook

John Paul Cook is a Technology Solution Professional for Microsoft's data platform and works out of Microsoft's Houston office. Prior to joining Microsoft, he was a Microsoft SQL Server MVP. He is experienced in Microsoft SQL Server and Oracle database application design, development, and implementation. He has spoken at many conferences including Microsoft TechEd and the SQL PASS Summit. He has worked in oil and gas, financial, manufacturing, and healthcare industries. John is also a Registered Nurse who graduated from Vanderbilt University with a Master of Science in Nursing Informatics and is an active member of the Sigma Theta Tau nursing honor society. He volunteers as a nurse at safety net clinics. Contributing author to SQL Server MVP Deep Dives and SQL Server MVP Deep Dives Volume 2.

This Blog

Syndication

Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement