By default, Ubuntu automatically locks your user session whenever your computer suspends, sleeps, or closes its laptop lid. While this provides essential security in public cafes or busy corporate offices, repeatedly typing your password after waking your desktop at home can quickly become frustrating. Fortunately, Ubuntu allows you to disable screen locking on suspend in just a few clicks.
Understanding Screen Lock Security vs Convenience
Before adjusting this behaviour, consider the environment where you operate your machine:
- Home and Personal Workstations: If you are the sole occupant of your home workspace, bypassing the lock screen saves noticeable time throughout the day.
- External Monitor Setups: Laptop users docked with external displays often prefer quick wake-ups without entering credentials each time the system sleeps.
- Shared or Portable Laptops: If you travel with your computer, keeping automatic locking enabled prevents unauthorised access should the machine ever be lost or left unattended.
How to Turn Off Lock Screen on Suspend via Ubuntu Settings
The standard GNOME desktop settings panel provides a straightforward toggle for this behaviour:
- Click the system indicators menu in the top-right corner of the Ubuntu top bar.
- Click the Settings gear icon to open the system control panel.
- In the left-hand navigation pane, select Privacy & Security (or Privacy in older Ubuntu versions).
- Click on the Screen Lock entry within the privacy panel.
- Locate the setting labelled Lock Screen on Suspend.
- Toggle the switch to the Off position (turning the blue slider grey).
From this moment onward, waking your system from suspend will immediately restore your active desktop workspace without demanding a password.
How to Disable Screen Lock on Suspend Using the Terminal
For system administrators or command-line enthusiasts, configuring GNOME schemas via gsettings offers immediate control without opening graphical menus:
- Press Ctrl + Alt + T to launch a fresh terminal window.
- Check the current status of the lock-on-suspend setting by running:
gsettings get org.gnome.desktop.screensaver lock-on-suspend - If the output returns
true, disable it by running:gsettings set org.gnome.desktop.screensaver lock-on-suspend false - To confirm the setting has updated, re-run the
getcommand; it should now outputfalse.
Should you ever wish to re-enable the feature in the future, simply run the same command replacing false with true.
Differentiating Between Screen Blanking and Screen Locking
Disabling lock-on-suspend does not prevent your screen from dimming or turning off to conserve energy. Under Settings > Power, you can still configure your preferred Screen Blank duration, ensuring your display powers down automatically whilst sparing you from re-entering your account password upon waking.