How to Prevent Your Windows Computer from Suddenly Waking Up In Sleep Mode

By | August 23, 2022

It is a frustrating problem when your PC suddenly wakes up from sleep. Not only is it a waste of power, but it might wake you up if you sleep near your computer.

If you have trouble keeping your Windows 10 system in sleep mode, we are here to help. Let’s take a look at why your computer turns on automatically, and how to stop your computer from waking up without your command.

Check Build Device in Command Prompt

To find out why your computer is turning on suddenly, you can first use some Command Prompt commands to get an idea of ​​what is going on.

To open Command Prompt, right-click on the Start button (or press Win + X) to open the power user menu. There, select Command Prompt (or Windows PowerShell; both will work). Enter the following command:

powercfg –lastwake

This will show you the last device that woke your PC from sleep. if you see something like Wake History Count – 0 as in the screenshot below, Windows has no record of what it is. This can happen if you recently rebooted your PC.

Next, you should try the following commands:

powercfg –devicequery wake_armed

This one displays all the devices that are allowed to wake your PC from sleep. It’s common to see your mouse and keyboard listed here.

If you don’t want the device to have the authority to wake your PC, use the following command to disable it, replacing the text in brackets with the device name. We look at a more user-friendly way to do this below.

powercfg -devicedisablewake [NAMA PERANGKAT]

Review More Sleep Information in Event Viewer

For a bit more information about the latest sleep event, you can open the Event Viewer in Windows. Search in the Start menu for easy access; once open, select Windows Logs > System in the left sidebar. From there, click Filter Current Log in the right sidebar.

In the filter window, click inside the box Event sources and select Power-Troubleshooter. You can use the dropdown Logged at the top to set the time frame if you want, then press OK.

After this, you will see a list of events that are displayed when Windows wakes up from sleep. Choose one to get more info about it, including when exactly it happened. check Wake Source in the box to see what causes it. It may say Unknown, which obviously doesn’t help much. But if there’s a specific cause here, you’ll know what to look for moving forward.

Use Device Manager to Disable Wake-Ups

Using the information you get from the Command Prompt and Event Viewer, you can now easily prevent your computer from turning on during sleep mode via Device Manager. To open it, right-click the Start button (or press Win + X) and select Device Manager from list.

This utility shows all devices connected to your PC, but not all have the ability to wake your computer. You will want to check what the above command reveals. Devices below Keyboards, Mice and other pointing devices, and Human Interface Devices is the most common cause.

Expand that list and double click on an entry to open a window Properties-his. If there is more than one entry, you may have to check each one individually. Unfortunately, devices don’t always include model names, and you may see multiple devices if you’ve connected more than one in the past.

In the window Properties for your device, you will see the tab Power Management at the top. Select this, then uncheck Allow this device to wake the computer and press OK. This prevents the mouse, keyboard, or other device from waking Windows from sleep.

Repeat this process for all the devices that you also want to disable. While you most likely won’t bump into the keyboard by chance (unless your pet activates it), mice are a much more common problem. A very sensitive mouse can wake your computer from the slight shaking of your desk or floor. So, it’s a good idea to prevent your mouse from waking the PC.

Even if you disable each device’s ability to wake your computer from sleep, you can still wake it up using the power button. It is up to you whether you want to keep other devices enabled for this purpose. For troubleshooting purposes, it is best to disable everything to begin with.

Stop Network Wake-Ups

While looking around in Device Manager, you should be aware of another common cause: your computer may have woken up from its network connection.

Most modern systems include a feature called Wake-On-LAN. This allows you to power on your computer from anywhere in the world. Which using Wake-On-LAN can be useful, it may also malfunction and cause your computer to wake up randomly.

If you don’t care about this feature, try disabling it to see if your sleep problems go away. In Device Manager, expand the section Network adapters and look for your connection adapter. This feature is almost always used with a wired connection, so look for entries containing Ethernet Connection or similar.

In the window Propertiesnya, switch back to tab Power Management. Depending on your adapter, you may have Allow this device to wake the computer box simple uncheck if so. However, other network adapters will have a list of options. In the example below, unchecking each of the boxes below Wake on LAN will disable the feature.

Disable Scheduled Task Activation Timer

Windows Task Scheduler allows you to set up routines to run automatically on your system. While this is convenient, some tasks are set to wake the computer so they can run. Even if you never set the task manually, it’s possible that some app wakes up Windows so it can check for updates or similar.

You can dig through the Task Scheduler by hand, but it’s not necessary. On the other hand, changing a simple option in your power plan will disable the task from waking Windows. To access this, go to Settings > System > Power & sleep. On the right, click Additional power settings to open the Control Panel page for Power Options

There, click the referensi Change plan settings next to your current power plan. On the resulting page, select Change advanced power settings to open a new window. Finally, expand items sleep, followed by Allow wake timers. Change this to Disable and press OK. Now, Windows will no longer wake up for scheduled events.

For best results, you should repeat this for each power plan. That way, you won’t start having problems again if you change plans.

Disable the Scheduled Maintenance Feature

Windows 10 has moved so many preferences to the Settings panel that you probably haven’t visited the Control Panel very often. As it turns out, a lesser-known feature from Windows 8, called Automatic Maintenance, is still present in Windows 10. It can wake your PC on its own, so you should disable it if your problem hasn’t gone away.

To check it, type control panel into the Start menu to find and open it. If you see Category at the top right, click and change to Small icons.

From there, select Security and Maintenance. Expand section Maintenance and find Automatic Maintenance, then click Change maintenance settings underneath. Make sure the checkbox Allow scheduled maintenance to wake up my computer at the scheduled time unchecked.

Scan for Malware

At this point, it’s a good idea to run an anti-malware scan to make sure you don’t have anything malicious waking up your system. Even though all malware acts differently, there is a chance that it will wake up your system to call home or take some other action.

You can scan with the built-in Windows Defender. For a second opinion, download the free version Malwarebytes and run a scan with it. Hopefully you haven’t hidden anything on your system, but it’s worth checking if you still can’t explain the wake behavior.

Stop Your Computer From Turning On By Itself

Hopefully, one of these tips helped you solve the problem of your PC turning on suddenly. This problem can have many causes, so it is often difficult to solve. After making the above changes, if the problem still occurs, you may need to perform the first steps again to diagnose what device is still waking your PC.

Category: