Windows 10 sleeping after locking — a fix at last!
Since I started using a docked laptop in Windows 10, there’s been one issue so annoying that I switched back to having a separate desktop for much of my use. The issue? When I locked my computer and stepped away for a couple of minutes, it would always have gone fully to sleep. This caused connectivity-sensitive programs to require a restart (very annoying and time consuming) and Windows to occasionally go nuts on window/scale management, causing UI weirdness.
Fortunately, I’ve finally found a fix that works to correct this. The key is a setting called “Console lock display off timeout” in your advanced power plan settings. If you’ve been troubleshooting this issue long enough, you’ve probably noticed that there’s no such setting to be seen. The good news is that it’s merely hidden, waiting to be unlocked in the registry editor so we can put an end to these annoying issues for good.
Step 1 – Changing the registry key
You will need to change the key highlighted in the screenshots below from its default value of 1 to 2. If your key at this location is already set to 2, the option you need should already be visible.
Step 2a – Power & sleep settings
Now that our desired setting has been unlocked, time to get there. We’ll start by opening Windows’ power and sleep settings.
2b – Additional power settings
From the Power and sleep window, scroll down and choose Additional power settings.
2c – Change plan settings
Now that we’re back in classic Windows 7 style power settings, we need to choose the option to change plan settings to the right of the currently choses power plan.
2d – Change advanced power settings
One more legacy Control Panel page, where you’ll need to click the option to Change advanced power settings.
Step 3 – Change”Console lock display off timeout”
At last we’ve made it to the setting we need. Expand the Display row and you’ll see “Console lock display off timeout” as a nested option. Be expanding, this you can change the timeout settings, which default at 1 minute. By adding time, your computer will wait longer between being locked and going to sleep. If you set the time to 0 minutes, your computer will never go to sleep after being locked, unless there’s another power rule putting it to sleep on a normal schedule (e.g. sleep after 10 minutes no usage).