Ubuntu 18.04: Where are the power management profiles?

Back in Unity, there were options in the settings program to manage power settings important to laptops, such as:

  1. Specify different behaviors for things like dimming the screen or suspending the system if the computer was plugged in or on battery
  2. Define what happens when the lid is closed (suspend, nothing, etc.)

In the new gnome shell under Power Settings, all configurations besides automatic suspend apply regardless of the charger's status, and there is no option for what to do when the lid is closed.

Are those settings hidden somewhere in the GUI, or can be accessed via command line? If they are not available in the GUI or at all, what would be the appropriate channel to suggest their addition to the development community?

1

1 Answer

If you have package gnome-settings-daemon installed, you can change behavior of lid, buttons and low-battery actions in dconf within location:[org.gnome.settings-daemon.plugins.power]

Example config:

[org/gnome/settings-daemon/plugins/power]
lid-close-ac-action='nothing'
lid-close-battery-action='nothing'
power-button-action='nothing'
sleep-inactive-ac-timeout=3600
sleep-inactive-ac-type='nothing'
sleep-inactive-battery-timeout=900
sleep-inactive-battery-type='suspend'
critical-battery-action='suspend'
percentage-action=2
percentage-critical=3
percentage-low=10

On low and critical percentage there will be notification. On percentage-action there will be an action defined in critical-battery-action.

Method #2 (Upower settings)

There is also second option to change battery level triggers. All values are stored in /etc/Upower/Upower.conf

Selected values has to be replaced:

PercentageLow=10
PercentageCritical=3
PercentageAction=2
CriticalPowerAction=HybridSleep
5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like