Skip to content
Follow
Ubuntu Linux

How to Enable Automatic Screen Lock in Ubuntu Linux

Richard
Written by
Richard
Sep 2, 2022 Updated Jul 14, 2026 2 min read
How to Install Nextcloud AIO on Ubuntu Linux
How to Install Nextcloud AIO on Ubuntu Linux

Automatic screen lock in Ubuntu Linux secures your computer when you step away by locking your session after a set time of inactivity.

This feature stops others from accessing your open programs and sensitive data without your password.

For example, Ubuntu 22.04 LTS’s default GNOME desktop often locks your screen after 5 minutes of no activity.

You can easily change this waiting time to match your needs.

⚡ Quick Answer

Open System Settings, navigate to Privacy, then Screen. Toggle the Automatic Screen Lock switch to On and set your preferred delay time. This ensures your Ubuntu system locks itself after a period of inactivity.

How to turn on or off automatic screen lock in Ubuntu Linux

Ubuntu Linux automatically locks your screen when the computer is left unused for a while. This is a great way to keep your personal files and information safe. This automatic screen lock feature stops others from using your computer if you step away. You can turn this on or off in the settings.

Ubuntu Linux automatically locks the screen when there’s no active user activity. This protects your desktop and files from unauthorized access.

Here’s how to turn it on or off in Ubuntu Linux.

Ubuntu Linux has a centralized location for most of its settings. You can manage system configurations, create new users, update the system, and more from the System Settings panel.

To open System Settings, go to the Activities overview (where you can search for applications) and type Settings.

Ubuntu Linux activities overview for screen lock settings
ubuntu linux activities overview

Alternatively, click the System menu (usually found in the top-right corner of your desktop’s top bar).

On the System menu, select Settings, as highlighted below.

Ubuntu Linux system menu with settings for screen lock
ubuntu linux system menu top bar settings

In the Settings app, click the Privacy tile to expand it.

Ubuntu Linux privacy settings tile for screen lock options
ubuntu linux privacy tile expand

In the Privacy settings, click on Screen to open that panel.

In the Screen settings, toggle the Automatic Screen Lock switch to On or Off.

📝Good to Know
If you are turning it on, select a length of time from the Automatic Screen Lock Delay drop-down list before the screen locks. If turned off, that option will be grayed out.
Ubuntu Linux screen lock enable/disable settings interface
ubuntu linux enable disable automatic screen lock

When your screen is locked and you want to unlock it, press the Esc key or swipe up from the bottom of the screen with your mouse.

Enter your password and resume your session.

This completes the process!

Conclusion:

  • An automatic screen lock is a crucial security feature that protects your computer from unauthorized access.
  • Ubuntu Linux offers a convenient way to manage the automatic screen lock feature through the System Settings panel.
  • Users can customize this feature by toggling the Automatic Screen Lock switch and setting the lock delay to suit their preferences and security needs.
  • Remembering to lock your computer screen can be a hassle, but with automatic screen lock, you can have peace of mind knowing your system is protected when idle.

How do I lock my screen automatically in Ubuntu?

Select Settings ▸ Privacy & Security (this is where you manage these settings) from the results. This will open the Privacy & Security panel. Select Screen Lock to open the panel. Make sure Automatic Screen Lock is switched on, then select a length of time from the Automatic Screen Lock Delay drop-down list.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Turn On or Off Automatic Lock on Your Windows 11 PC
Windows How to Turn On or Off Automatic Lock on Your Windows 11 PC
How to Lock Your Windows 11 Computer
Windows How to Lock Your Windows 11 Computer
How to Access Settings in Windows 11
Windows How to Access Settings in Windows 11
How to Change Your Windows 11 Lock Screen Status
Windows How to Change Your Windows 11 Lock Screen Status

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *