q §2024-10-30
[Ubuntu provides several options to manage power settings](https://myelo.elotouch.com/support/s/article/How-to-Disable-Screen-Lock-and-System-Suspend-in-Ubuntu, including the ability to disable screen lock and system suspend. Here are some methods you can use to disable these features in Ubuntu:
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.
To disable system suspend, you can use the following command in the terminal:
systemctl mask suspend.target