This article explains how to disable the screen lock and system suspend in Ubuntu
Ubuntu provides several options to manage power settings, including the ability to disable screen lock and system suspend. Here are some methods you can use to disable these features in Ubuntu:
- Method 1: Using the Command Line Interface (CLI)
- To disable screen lock, you can use the following command in the terminal:
- gsettings set org.gnome.desktop.session idle-delay 0
- This command sets the value of the "idle-delay" setting to 0, which disables the screen lock when the user is idle. This works well on Linux GNOME Ubuntu desktop.
- gsettings set org.gnome.desktop.session idle-delay 0
- To disable system suspend, you can use the following command in the terminal:
- systemctl mask suspend.target
- This command disables the system suspend target, which prevents the system from entering a low-power state when the user is inactive.
- systemctl mask suspend.target
- To disable screen lock, you can use the following command in the terminal:
- Method 2: Using the Graphical User Interface (GUI)
- Ubuntu also provides a graphical user interface (GUI) for managing power settings. Here are the steps to disable screen lock and system suspend using the GUI:
- Click on the "Activities" button in the top-left corner of the screen.
- Type "Settings" in the search bar and click on the "Settings" icon.
- Click on the "Power" tab in the left-hand menu.
- To disable screen lock, set the "Screen Blank" option to "Never" in the "Power Saving" section.
- To disable system suspend, set the "Automatic Suspend" option to "Off".
- Note: The exact steps may vary depending on your version of Ubuntu and desktop environment. Screenshot was taken on Ubuntu 22.04.2 LTS running on EloPOS Pack.
- Ubuntu also provides a graphical user interface (GUI) for managing power settings. Here are the steps to disable screen lock and system suspend using the GUI:
It's worth noting that there are many tools available in Ubuntu to turn on/off screensaver or screenlock features, such as Caffeine. These tools provide a simple way to manage power settings without having to use the command line or GUI methods described above. If you prefer to use a tool like Caffeine, you can easily install it using the Ubuntu Software Center or the command line.
Please report any broken links by emailing support@elotouch.com and include a link to the knowledge article