When working on an Ubuntu desktop or laptop, the operating system automatically blanks the screen after a period of inactivity to conserve power and protect your privacy. However, by default, GNOME often locks the session immediately as soon as the display turns off. If you step away from your desk for only a minute or pause reading a document, you must repeatedly re-type your password to resume work.
Ubuntu allows you to configure a grace period, known as the Automatic Screen Lock Delay. This setting specifies how much time must elapse between the screen turning blank and the actual locking of the session. Here is how to adjust your screen lock delay using Ubuntu’s graphical settings.
Step-by-Step: Adjusting Screen Lock Delay in Ubuntu Settings
- Open the Settings application from your Ubuntu dock or the Applications launcher (or press the Super key and type “Settings”).
- In the left-hand sidebar, click on Privacy & Security (or Privacy in older Ubuntu releases).
- Click on Screen Lock from the list of privacy options.
- Locate the option labelled Automatic Screen Lock Delay.
- Click the drop-down menu next to it. You will see several timing options:
- Screen Turns Off: Locks the session instantly when the display goes dark.
- 30 seconds / 1 minute / 2 minutes / 5 minutes / 30 minutes: Grants a grace period during which moving the mouse or pressing any key immediately restores your desktop without requesting your password.
- Select your preferred grace period (such as 2 minutes or 5 minutes).
The change takes effect immediately without requiring a system reboot or session logout.
Adjusting Screen Blank Timeout for Optimal Balance
The screen lock delay is tied directly to the screen blanking timer. If your display turns off too rapidly, you should also adjust the idle screen blank timeout:
- In Settings, navigate to the Power section in the sidebar.
- Under the Power Saving heading, locate Screen Blank.
- Choose a longer duration from the drop-down menu (such as 10 minutes or 15 minutes).
By pairing a 10-minute screen blank timeout with a 2-minute lock delay, your monitor will turn off after 10 minutes of inactivity, but you will have a full 2-minute window to wake the screen without entering your credentials.
How to Completely Disable the Automatic Screen Lock
If you are operating a dedicated home media server or a private desktop workstation in a secure room and prefer never to be prompted for a password when waking the screen:
- Return to Settings > Privacy & Security > Screen Lock.
- Toggle the Automatic Screen Lock switch to the Off position.
With this setting disabled, your screen will still turn off to conserve energy, but waking the computer will take you directly back to your open applications.
Frequently Asked Questions
Can I still manually lock my Ubuntu desktop?
Yes. Regardless of your automated delay settings, you can lock your session instantly at any time by pressing the keyboard shortcut Super + L.
Does changing the screen lock delay affect suspend mode?
When Ubuntu enters full system suspend (sleep), the session is locked immediately by default for security. The delay setting applies primarily to standard screen blanking while the computer remains powered on.