Ubuntu – How to completely turn off screensaver and power-management


I looking for a method to turn-off the screensaver and powermanager but from the command line.

I'm aware this can be done via the GUI screen – but can this be done via the command line or via some configuration editor?

Here is the gui way (via the "screen" or "brightness and lock" application):

enter image description here

Best Answer

For 11.10

Disable the GNOME Settings Deamon's power plugin from the command line:

gsettings set org.gnome.settings-daemon.plugins.power active false

Alternatively, using dconf-editor from the dconf-tools package:

enter image description here

For the screensaver:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

Or again via dconf-editor:

enter image description here