My laptop seldom leaves my house. When I am not using it I close the lid to put it into sleep mode. I also close the lid when carrying it to another room (or perhaps into the backyard hammock). This causes a minor inconvenience as every time I open the lid I have to enter my password to unlock it. On my old (Windows 10) laptop I was able to turn this off but because Microsoft keeps changing the layout of the Settings app I had to Goggle to find out how to disable this in Windows 11. The new process was
- Open Settings
- Select Accounts
- Select Sign-in options
- Scroll down to Additional settings
Under Additional settings there is a section with the text If you've been away when should Windows require you to sign in again?" To the right of this is a drop-down box with the default text Every Time. According to Google (and Microsoft) I simply have to select a different option, like Never**.
That would be the case if the entire section were not greyed out and followed by the text Windows Hello is preventing some options from being displayed.
The recommended solution from Microsoft was to
- Install the latest version of Windows
- Apply all outstanding Windows updates
- Run the Surface Diagnostic Toolkit
- Run the built-in troubleshooter
- Remove Windows Hello and re-install it
Since I keep my laptop current I focused on Windows Hello. Specifically, Windows Hello is used to facilitate access via PIN, facial recognition, or fingerprint. Because my laptop has a fingerprint reader I didn't want to risk breaking it by uninstalling so kept looking.
The solution was in the command line tool, powercfg.exe. This built-in tool allows access to a wide range of setting unavailable through the Settings app. The simple fix, in my case, was to run two commands in an Admin shell.
powercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0
powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0
The first line disables automatic console locking when the machine is put into sleep mode when running off battery (DC). The second does the same when running non-battery (AC).
Now I can put my laptop to sleep and forego the password. If I want to lock and require a password I just press WINKEY+L. And I still have Windows Hello available. I have to wonder why this setting is disabled (greyed out) when it is clear that disabling the password requirement is obviously compatible with Windows Hello?
You may want to type "powercfg /?" to see the full list of options available.