I've got a Dell XPS 13 (9360) with Windows 10 Home.

Steps to reproduce:

  • Open power options (Win-X, O)
  • Click change plan settings next to the current plan ("Dell" in my case)
  • Set both "on battery" and "plugged in" change "Put the computer to sleep" to something high or "Never" (I have 15 mins for battery, 1 hour for plugged in, tried "Never" for both too)
  • Click save changes
  • Open screen saver settings (Win-S, Change screen saver)
  • Ensure screen saver is off (None)
  • Ensure "On resume, display logon screen" is off
  • Click OK
  • Lock computer with Win-L
  • Wait...

Expected behaviour:

  • Screen switches off after a short delay (~30 secs).
  • Computer stays on, crunching whatever data you've left it to do.

Actual behaviour:

  • Screen switches off after a short delay (~30 secs).
  • Computer goes to sleep after a further ~15 seconds.

I would've thought this was a simple problem, but I've spent over two hours Googling etc for a solution. The closest I could find to my problem was this, which is similar but not the same, and the solution doesn't work for me:

  • What happens if you choose "Never" for "Put the computer to sleep". Locking the computer is not supposed to put it to sleep if you ask me. This is my preferred choice. For sleep you can close the lid (if it is a laptop) or use Alt-F4 and choose the option to actively put it to sleep.
    – Michael S.
    Dec 5, 2016 at 15:42
  • @MSC "Never" makes no difference. It even goes to sleep when locking while it's plugged in.
    – Dave E
    Dec 5, 2016 at 15:46
  • 1
    @DaveE Do you have any "energy optimization" software (I call it bloatware) installed? I have seen those preinstalled on some devices, check for any programs by Dell, Intel or other hardware manufacturers.
    – Hexaholic
    Dec 5, 2016 at 15:52
  • It could be a Dell specific feature that needs to be changed which may overrides Windows Power Options
    – Sanny
    Dec 5, 2016 at 15:52
  • @Hexaholic - It's really not bad, bloatware-wise. I can't find any Dell-specific power apps etc, only a Dell power plan. The standard "Balanced" plan has the same behaviour.
    – Dave E
    Dec 6, 2016 at 7:38

7 Answers 7


After running PowerCfg /q and reviewing this page, I believe I have determined the solution to this problem.

There appear to be many power settings that just don't show up in my advanced power options window. One is Sleep → System unattended sleep timeout. To make it visible, I opened regedit.exe and found this key:


Set its Attributes DWORD value to 2. This will make it show up in your advanced settings. Go there and configure it to be zero minutes if you don't want it to sleep when you lock your screen.

  • 13
    If you vote me down, please provide a comment so I can improve my answer.
    – Rob M
    Mar 9, 2017 at 14:25
  • 9
    This definitely worked. I can't believe they hid this option behind a registry flag, and that it's different than the normal sleep setting. So dumb! Thanks for the help!
    – qJake
    Oct 2, 2017 at 17:35
  • 6
    Lenovo thinkpad here, this is the only thing that fixed my issue. It was set to 2m by default and I couldn't change it without this hack. Stupid windows.
    – Anyone
    Jul 3, 2018 at 10:49
  • 27
    After changing that registry value, I had to right click on the desktop and go to Display Settings, then click 'Power & sleep' on the left, then click 'Additional power settings' on the right, then click 'Change plan settings', then click 'Change advanced power settings', then expand the 'Sleep' setting, then expand the new 'System unattended sleep timeout' setting and this is where you can up the minute value so it doesn't sleep after 2 minutes or whatever.
    – tclark333
    Sep 26, 2018 at 11:38
  • 3
    Thing is, my computer will immediately go to sleep after the lock screen goes blank after locking with Windows-L. It wasn’t even waiting for 2 minutes. And setting this setting to 0 doesn’t change the behavior at all. Dell XPS 15 9570 Windows build 18358.1.
    – binki
    Mar 18, 2019 at 18:10

Thanks, very helpful.

I found this official link about this on Microsoft Docs which I thought might be helpful:

Sleep unattended idle timeout, Windows Vista with Service Pack 1 (SP1), Windows Server 2008 R2, and later versions of Windows.

Specifies the duration of inactivity before the system automatically enters sleep after waking from sleep in an unattended state.

For example, if the system wakes from sleep because of a timed event or a wake on LAN (WoL) event, the sleep unattended idle timeout value will be used instead of the sleep idle timeout value.

Aliases and setting visibility Windows Provisioning: UnattendTimeout

PowerCfg: UnattendTimeout

GUID: 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0

Hidden setting: Yes <-- Unhidden with: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\Attributes = 2

Values The value denotes the number of seconds.

Minimum value: 0 (Never idle to sleep) Maximum value: Maximum integer

  • 3
    Strange that it says "when waking from sleep in an unattended state." But if you lock the screen that clearly isn't the case.
    – Dean Or
    Mar 7, 2019 at 1:26
  • Definitely bug in Windows 10. Nov 18, 2019 at 14:09

I also found this about letting Console Lock been seen - and changed. This allowed my power options to change it to 0 minutes, and then allowed screensaver to actually start.


Change Attributes DWORD to:

  • 1 = Hide "Console lock display off timeout"
  • 2 = Show "Console lock display off timeout"

Source: https://www.eightforums.com/tutorials/8267-power-options-add-console-lock-display-off-timeout.html

  • 5
    External links can break or be unavailable, in which case your answer would not be useful. Please include the essential information within your answer and use the link for attribution and further reading. Thanks.
    – fixer1234
    Jan 25, 2018 at 18:48

We had the same issue with a bunch of XPS 9370s, the laptop went into standby after the screen was locked. We have one laptop where the issue did not occure and exportet it's power scheme. By importing it to the other XPSes were able to make them have as expected - but by now we have no clue why.

You can findn the exported power scheme here: https://www.dropbox.com/s/mvajdkh14358471/dell.pwr?dl=0

Import it with an elevated prompt: powercfg /import 'fullpathtofile'


Control Panel => Hardware and Sound => Power Options has these settings:

    Turn off hard disk after:
Wireless Adapter Settings
    Power Saving Mode:
    Sleep after:
    System unattended sleep timeout:
    Hibernate after:

It seems like "System unattended sleep timeout" can be changed from GUI too in Windows 10.


Make sure your mouse and keyboard are not connected to the USB ports of your monitor. If your monitor goes to sleep, your mouse and keyboard will not function and make it seem like your computer went to sleep.

  • 2
    So you’re suggesting that the premise of the question might be wrong, and that the computer is not really going to sleep, but the OP merely believes that it is? Apr 12, 2019 at 19:39
  • @Scott Some might do... There's yet another hidden setting for very quickly (2 mins by default I think) turning the screen off (not sleeping) if you are on the lock screen. Though on most computers there's some LED to indicate that it's not sleeping.
    – ddekany
    Jul 14, 2019 at 17:41

can also try powercfg /a in cmd, if it's in s0 profile, then the computer is 'connected standby' enabled, disable it to switch back to tranditional standby mode

i have a lot dell new laptops (7410) with hardware firmware enables 'connected standby', after i disabled it, they run as per the power option config

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .