In Windows 11, first check the normal screen timeout setting:
- Select Start > Settings > System > Power & battery > Screen, sleep, & hibernate timeouts.
- Set Turn my screen off after to the time wanted for:
- When plugged in
- On battery
If the display still never turns off, the lock-screen timeout may be involved. Windows uses a separate timeout when the PC is locked, and by default that can behave differently from the normal display timeout.
To set the timeout from an elevated Command Prompt:
- Open Command Prompt as administrator.
- Run these commands, replacing
<time in seconds> with the value wanted:
powercfg.exe /setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE <time in seconds>
powercfg.exe /setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK <time in seconds>
powercfg.exe /setactive SCHEME_CURRENT
-
VIDEOIDLE controls the timeout while the PC is unlocked.
-
VIDEOCONLOCK controls the timeout while the PC is at the lock screen.
- For battery power, use
/setdcvalueindex instead of /setacvalueindex.
In Windows 10 and Windows 11, the Console Lock Display Off Timeout option can also be exposed in power plan settings by running this in an elevated Command Prompt:
powercfg.exe -attributes SUB_VIDEO 8EC4B3A5-6868-48c2-BE75-4F3044BE88A7 -ATTRIB_HIDE
That makes the lock-screen display timeout setting available under Change Plan Settings.