04.05.2024

How to fix sleep issues in Windows 10

Your computer will no longer light up out of the blue in the middle of the night. windows-10-fbdfdc9.jpg” alt=”How to fix Windows 10 hibernation problems” />

Sometimes the PC wakes up at the wrong time – say, right after you put it to sleep. Or even does it at random times. It is especially annoying when the device in your bedroom just interferes with sleep. Here's how to fix the problem.

Find out why the system is waking up

There are two ways to do this: quickly, through the command line, and slowly, through the system event log.

Via command line

Click “Start”, type “Command Prompt” and open it.

How to fix Windows 10 hibernation issues

Enter command:

powercfg -lastwake

Press Enter. The computer will display what exactly woke the system last time.

How to fix hibernation problems Windows 10

This could be a power button press, mouse, keyboard or network adapter activity. Or events like a wake-up or refresh timer, or something else.

There is another command that will allow you to clarify what caused the wake-up. Type in the line:

powercfg -devicequery wake_armed

And press Enter. All devices that can wake up your computer will appear in front of you.

How to fix hibernation problems Windows 10

It will be possible to disable their ability to wake the computer from sleep, as we will describe below.

Using the event log

The command line only shows the last event that woke up the computer. This will not help you in any way if the device woke up, say, in the middle of the night, then fell asleep again and you yourself woke it up later in the morning. In this case, you need to use the system event log.

Click “Start”, type “Event Viewer” and open the application found.

How to fix Windows 10 hibernation problems

In the sidebar in it, click “Event Viewer (Local)” → “Windows Logs” → “System”. Right-click System and select Current Log Filter.

How to fix Windows 10 hibernation problems

In the filter window, in the Sources dropdown menu events” scroll down the list, find the item Power‑Troubleshooter and check it. Click OK.

How to fix hibernation problems Windows 10

The computer will display all the times the system was woken up and what caused it.

How to fix Windows 10 hibernation problems

With this information, you can choose how to fix the problem.

However, sometimes the system cannot understand what woke it up, and writes the reason Unknown or something like that in the log output. Then try all the options from the list, and something should help.

Fix your sleep problems

Check your sleep settings

This is the easiest thing to do . Sometimes the computer won't sleep when it should because this option has been disabled somehow.

Open “Settings” from the Start menu and go to “System” → “Power and Sleep”. Make sure your sleep settings on AC power (and on battery if you have a laptop) are not set to Never.

How to fix Windows 10 hibernation problems

If the time you want is specified in the settings, but the computer still does not fall asleep or wakes up when it is not necessary, proceed to the next steps.

Disable waking PC with mouse or keyboard

It is usually easiest to wake up a sleeping PC by pressing any key on the keyboard or by clicking the mouse. This is more convenient and faster than reaching for the power button.

But if, say, a key sinks in you or a cat walks on the table, the computer may wake up at the wrong time. Here's how to disable PC wakeup by USB devices.

Click “Start” and start typing “Device Manager”. Run the found program.

How to fix hibernation problems Windows 10

Find your mouse or keyboard in device manager. Sometimes, by the way, keyboards and mice marked with HID can be duplicated, but from the point of view of the system, this is normal. Choose the first in the list, if it does not work, try others. Right-click the device and select Properties.

How to fix problems with sleep mode Windows 10

In the menu that opens, uncheck “Allow this device to wake the computer from standby”. Now the mouse and keyboard will stop waking up your computer.

How to fix hibernation problems Windows 10

By the way, you can uncheck “Allow this device to wake up your computer” in the properties of other USB devices. This is useful if, say, you want to charge your smartphone from your computer's port, but you don't want your PC to wake up.

Disable PC Wake On Network

If the computer is woken up by other devices on the local network, this is indicated in the log by the model name of your network adapter or notes containing the word Network.

The mechanism is something like this: on the PC, there is, say, a shared folder that you access from a tablet or other computer. The computer goes to sleep while the other device randomly tries to check the contents of the shared folder and wakes it up.

This behavior is useful if you set up your own home server, which should always be available, but is annoying in the case of a desktop PC. Here's how to fix it.

Click “Start” and start typing “Device Manager”. Run the found program. In the “Device Manager” that opens, find the “Network adapters” section.

Find among them the one you use to connect to the Internet – in our example, this device is from Realtek. Right-click it and click Properties.

How to fix Windows 10 hibernation issues

In the Properties menu, go to the Power Management tab. You can do whatever you want.

If you don't want your computer to wake up at all due to network activity, uncheck “Allow this device to wake this computer from standby”. Then click OK.

How to fix Windows 10 sleep issues

And if you sometimes need to wake up a PC over the network, but only using Wake‑On‑Lan packages, enable the option “Allow the computer to wake up from standby using only a magic package” and click OK. This will stop unnecessary wake-ups at the wrong time, but keep Wake‑On‑Lan functionality.

Turn off wake timers

They wake up your computer to do something when you're not using it. For example, an antivirus can create a wake-up timer to start a scheduled scan at the right time, execute it, and put the system to sleep again. Or, for example, backup programs are able to make backups by waking up the PC when it is idle.

This is a good feature if your computer is not constantly under supervision. But when the device in your bedroom suddenly wakes up, makes noise and lights up the screen in the middle of the night, it's not very pleasant. In this case, it is better to turn off wake timers altogether.

Click “Start” and start typing “Power”. Open Change Power Plan.

How to fix Windows 10 sleep issues

Click Change advanced power settings.

< p>How to fix hibernation problems Windows 10

In the window that appears, open the “Sleep” section, then select “Allow wake timers”. For Value, select Disable.

How to fix Windows 10 sleep problems

Then click OK.

If you are using a laptop, the behavior of the system changes depending on whether it is plugged in or running on battery power. From the drop-down menu at the top, select other power plans – High Performance, Balanced, and Energy Saving.

How to fix Windows 10 hibernation problems

Disable wake-up timers and there as above.

Turn off automatic maintenance

By default, Windows wakes up the computer automatically at two o'clock every night to install updates, run system diagnostics, optimize and defragment drives, and so on.

These are important things, but not enough to do in the middle of the night. So it is quite possible to reschedule their execution.

Click “Start” and start typing “Control Panel” (not “Settings”, they are different things).

How to fix hibernation problems Windows 10

In the open “Control Panel” in the “View” section in the upper right corner of the window, select “Large Icons”.

How to fix Windows 10 hibernation problems

In the list that appears, open the Security and Maintenance Center.

How to fix hibernation problems Windows 10

Expand the Maintenance section by clicking on the arrow on the right and click Change maintenance settings.

How to fix Windows 10 hibernation problems

Specify when to perform automatic maintenance – when the computer is on but not in use by you. Uncheck “Allow the maintenance task to wake up my computer at the scheduled time”. -so-spjashhim-rezhimom-windows-10-96741e4.jpg” alt=”How to fix Windows 10 hibernation issues” />

Now your PC will run diagnostics in the background without disturbing you in the middle of the night.