2

I see that this was asked some time ago for 11.04.

The answer there didn't help since the answer used gconf-editor to find a key called /apps/gnome-power-manager/actions/, which doesn't exist when I look in my install of 14.04.

This setting must be stored somewhere else?

1 Answers1

4

Ubuntu Unity now uses dconf instead of gconf. Read this answer on how to modify settings.

The keys you are looking for are stored in org.gnome.settings-daemon.plugins.power.

For example

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'hibernate'

will change the idle action on AC power to hibernate.

You can still set the timeout via system settings ("System Settings"->"Power"->"Suspend when inactive for..."), this will not reset the type to 'suspend'.

danzel
  • 6,044