21

On Ubuntu 11.10, when on battery, the screen dims after 10 seconds of inactivity. This is annoying because it is too short. Is there anyway to increase this timeout?

I know I can disable it, but that is not what I want.

fossfreedom
  • 174,526
amfcosta
  • 769

4 Answers4

17

This command should set the time to 60 seconds:

gsettings set org.gnome.settings-daemon.plugins.power idle-dim-time 60

In earlier Ubuntu versions, this setting can be found with the gconf-editor under gnome-power-manager. See also this thread.

lumbric
  • 4,129
13

The answer marked above from 'lumbric' no longer works for Ubuntu 14.04.

If you need to do this from a command (e.g. for a script wrapping something that plays video), you now need to run:

gsettings set org.gnome.desktop.session idle-delay <seconds>

also useful in such a case might be disabling the screen lock:

gsettings set org.gnome.desktop.screensaver lock-enabled false

BobDoolittle
  • 1,169
1

In 12.04, the setting using GUI now exists via System SettingsBrightness and Lock.

Peachy
  • 7,235
  • 10
  • 40
  • 47
0

This works in ubuntu 24.04:

gsettings set org.gnome.settings-daemon.plugins.power idle-brightness 100

Apparently there is no way to disable this 30 second idle timer, so we simply configure the reduced brightness to the same value as it was before, by using the above command.

Setting only the idle-dim to false doesn't fix it, as the screen still dims after 30 seconds. I think this is the one exposed in UI controls. It can be verified in terminal using the following get command:

gsettings get org.gnome.settings-daemon.plugins.power idle-dim

I am not sure where the 30 seconds timer is coming from, but setting idle-brightness to 100 fixes it for now, and we can all get back to work.