Back in Unity, there were options in the settings program to manage power settings important to laptops, such as:
- Specify different behaviors for things like dimming the screen or suspending the system if the computer was plugged in or on battery
- 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?
11 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=10On 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