Howto fix: Windows 10 freezes and lags after sleep

For some time I was plagued by a little, but rather annoying problem on my Windows 10 PC. Once the computer woke up from sleep mode, it freezes several times per minute for a few seconds. Explorer windows open slowly, websites won’t load and the sound drops out. The mouse was still responsive.

I am not alone with this problem, because I have found several forum threads during my research, where users complaint about this problem. However, I found the solution for this problem, but only after a very long search.

Refine the problem

In almost all forums it was suggested to upgrade the drivers of all hardware, update to a newer BIOS version and/or completely reinstall Windows. However, my drivers have all been updated and also for the BIOS there was no update. A new and clean Windows installation was not an option for me.

Ereignisanzeige Problem nach Sleep

A view into the Event Viewer (Start button -> right click -> Event Viewer) then brought me the decisive clue. (See screenshot on the left-hand.)

After the computer woke up from the sleep mode, it always began to throws warnings into the log files about problems with the hard drive. The error messages read like:

“Reset to device, \Device\RaidPort0, was issued.”

The error itself can be misleading, because I myself don’t use any RAID array. Nevertheless, the warning contains a note to solution.

How to fix freezes after sleep mode in Windows 10

By reading the log entries, it seems that there are problems with the SATA driver. To resolve this problems, it helped me to add an configure two more energy options for hard drives. Therefore two new registry keys must be created via regedit.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\0b2d69d7-a2a1-449c-9680-f91c70521c60]
"Attributes"=dword:00000002
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\dab60367-53fe-4fbc-825e-521d069d2456]
"Attributes"=dword:00000002

Anyone who is afraid of changing things in the “holy” registry by using “regedit” can also make use of the ready reg-file which can be downloaded from my blog (right click-> Save Target As) and  imported by a double-click into the registry.

Erweiterte AHCI EnergiesparoptionenAfter the keys are imported, dive into the Energy Options where you’ll find two new points in the “Disk” bullet point. (The Power Options can be reached via Start button -> right click -> Power Options -> Edit Plan Settings -> Change advanced power settings.)

The two yellow lines marked in the screenshot on the right side show the new entries. Here we are especially interested in the first entry. The setting of “AHCI Link Power Management – HIPM / DIPM” must be set to “Active”. That’s it!

After saving the settings, both the error messages in the Event Viewer and the freezes are gone for me. Small action, big effect. Pity that such solutions are always so hard to find …

Leave a comment

Please be polite. We appreciate that. Your email address will not be published and required fields are marked