Fix Windows 7 Sleep mode from waking up by itself


Find Out What Woke Your Computer

Windows knows what woke up your computer most recently, so the next time it wakes up unexpectedly, open the Start menu and search for “cmd,” then right-click the Command Prompt and choose Run As Administrator. Type the following command and press Enter:

powercfg -lastwake

If you’re lucky, it’ll give you a pretty clear answer. For example, the last time my workstation woke up, it was due to my cloud backup program running its scheduled backup for the evening. In that case, your search is over, and you can adjust that program’s settings or uninstall it to stop the problem. 

In other cases, it may list a specific hardware device, and you can skip down to the relevant section in this article, or do some extra Googling on what settings to change on that device.

If that command didn’t give you useful information, try this one:

powercfg -waketimers

I’ve also had luck searching Windows’ Event Viewer for information. Click the Start menu, search for “Event Viewer,” and launch the tool. In the sidebar, head to Windows Logs > System, then click the Filter Current Log button on the right side of the window.

Choose Power-Troubleshooter from the Event Sources drop-down menu and click OK to see all the times your computer woke up recently and what caused them. Filtering by Kernel-Power may help too, but in my experience, it’s less likely to include useful data.

Using that information, you can try some of the solutions below to keep your computer from waking up randomly next time.


Recent Posts

Bottom Line

In this post, we have introduced five methods to solve the issue computer turns on by itself. If you have the same problem, you can try to use these methods to solve it.

In addition, if you have any better solution to fix the problem computer automatically turns on, you can share it on the comment zone.

What’s more, if you have any problem with MiniTool ShadowMaker, please feel free to contact us via the email [email protected].

Why does my PC wake up from sleep by itself?

Fortunately, Windows (including Windows 10 and Windows 11) can identify the components that triggered the wake up process. For this, we can use the powercfg command.

Open Command Prompt with administrative privileges and run the following command:

The command returns the event by which your system

The command returns the event by which your system wakes up. For example, in my particular case, pressing the power button woke up the computer last time. This can give you a good idea of why your computer turns on automatically by itself.

How to Find Out What’s Causing Your Computer to Wake Up

To find out what is causing your computer to wake up, open Command Prompt as an administrator and type in powercfg/lastwake. Then type powercfg/waketimers to find out if you have any wake timers on.

  1. Click the magnifying glass icon in the bottom-left corner of your screen.
  2. Then type Command Prompt into the search bar.
  3. Next, click Open as administrator. You will get a pop-up message asking if you want to run the program as an administrator. Click Yes
  4. Then type in powercfg/lastwake and hit Enter on your keyboard. This will show you whether it is your devices, programs, or other actions that caused your Windows 10 computer to wake up. If you see something like USB, that means it is probably one of your USB devices, like your mouse of your keyboard.
  5. Then type powercfg/waketimers to see if you have any wake timers set on your computer. This will show you if there are any processes or tasks that are scheduled and are causing your Windows 10 computer to wake up.

Disable Other Wake Timers

If none of the above fix your issue, you may have to dig into the wake timers set on your computer—that is, scheduled events that are allowed to wake your machine. Open the Start menu, search for “Edit Power Plan,” and click Change Advanced Settings in the Edit Plan Settings window.

Head to Sleep > Allow Wake Timers and change both Battery and Plugged In to Disabled. You’ll want to repeat this process for all your power plans in the drop-down menu at the top, not just the one you’re currently using.

Here’s the thing, though: this is a sweeping setting designed to affect all wake timers, which may mean it’s too overzealous for you (if you have certain wake timers you want turned on). It’s also weirdly ineffective, which means even if you do want to go nuclear on wake timers, it may not stop them all, but feel free to adjust it anyway.

With that in mind, I also recommend opening PowerShell and running the following command:

Get-ScheduledTask | where {$_.settings.waketorun}

This may help you find scheduled tasks designed to wake up your PC. If you find any you want turned off, open the Start menu and search for “Task Scheduler,” then navigate to the task in question using the sidebar, and double-click to edit it. Select the Conditions tab and uncheck the Wake the Computer to Run This Task box.

Random wakeups can be incredibly finicky to solve, and you may find that even more digging is required to find your specific issue. But hopefully the above options have at least pointed you in the right direction.

Keep in mind that you may have to go back and do this in a few months if it starts happening again—new programs, new hardware, and Windows updates can always cause the problem to resurface. It’s a curse, but at least now you can keep it under control.

Like What You’re Reading?

Sign up for Tips & Tricks newsletter for expert advice to get the most out of your technology.

This newsletter may contain advertising, deals, or affiliate links. Subscribing to a newsletter indicates your consent to our Terms of Use and Privacy Policy. You may unsubscribe from the newsletters at any time.

Thanks for signing up! Your subscription has been confirmed. Keep an eye on your inbox! Sign up for other newsletters

How to Stop Programs From Keeping Your Computer Up

To stop a program from waking up your Windows 10 computer, open the Command Prompt and type powercfg -requests. This will show you the program that is keeping your computer from sleeping. Then close the program.

In the example above, Google Chrome stopped the computer from going to sleep because it was playing an audio file.

If you’re having trouble quitting an app, check out our guide on how to force quit an application on a Windows 10 PC.

Note: This article has been updated with more recent information.

Was this article helpful?

Thanks for your feedback, add a comment here to help improve the article