It is a recommended practice to always lock your computer screen when you are away to prevent other people from using your desktop and accessing your files. This is true in Windows, Linux, or macOS. Because we are humans, we do tend to forget sometimes. If you sometimes forget to lock your screen, you may wish to have your computer’s screen lock automatically after a set period. This is where automatic screen lock comes into play. When you program Ubuntu Linux to lock after certain periods of inactivity, it automatically locks the screen when it detects no user activities. When your screen is locked, your applications and system processes will continue to run, but you will need to enter your password to begin using them again.

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

As described above, it is a recommended practice to always lock your computer screen when you are away to prevent other people from using your desktop and accessing your files. Ubuntu Linux will automatically lock the screen when there’s no active user activity. This helps protect your desktop and files from being accessed by others. Below is how to turn it on or off in Ubuntu Linux. Ubuntu Linux has a centralized location for the majority of its settings. From system configurations to creating new users and updating, all can be done from the System Settings panel. To get to System Settings, open the Activities overview and start typing Settings. Alternatively, click on the System menu at the top-right corner of the top bar on your desktop. On the System menu, select Settings as highlighted below. In the Settings app, click on the Privacy tile to expand. In the System Settings -> Privacy settings pane, click on Screen to open the panel. In the System Settings -> Privacy -> Screen settings pane, toggle the Automatic Screen Lock switch to On or Off. 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. When your screen is locked, and you want to unlock it, simply press the Esc key or swipe up from the bottom of the screen with your mouse. Enter your password and resume your session. That should do it! Conclusion: This post showed you how to enable or disable automatic screen lock in Ubuntu Linux. If you find any error above or have something to share, please use the comment form below.