The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 3,054β€…    Votes:  2β€…
Tags: 16.04   suspend   battery   hibernate   mate  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

Title: Hibernate/suspend on critical battery level - where should I set it from MATE GUI?
ID: /2018/11/04/Hibernate_suspend-on-critical-battery-level-where-should-I-set-it-from-MATE-GUI_
Created: November 4, 2018    Edited:  June 12, 2020
Upload: March 3, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

GUI method

From: Change Critical Battery Level and Action in Linux Mint 18 Cinnamon you can install dconf-editor using:

$ sudo apt-get install dconf-editor

Then go to org -> cinnamon -> settings-daemon -> plugins -> power

mate gsettings power.png

Exercise caution and tweak to your heart’s content πŸ™‚

Original Answer and edits below

Review your current settings with:

$ gsettings list-recursively | grep critical
org.gnome.settings-daemon.plugins.power critical-battery-action 'shutdown'
org.gnome.settings-daemon.plugins.power percentage-critical 3
org.gnome.settings-daemon.plugins.power time-critical 300

Change your critical-battery-action

$ gsettings set org.gnome.settings-daemon.plugins.power critical-battery-action 'suspend'

Linux Mate differences

When using Linux Mate you need to substitute org.gnome with org.mate and possibly change your keys. From ArchWiki:

Battery discharge

To disable the notification on battery discharge, run:

$ gsettings set org.mate.power-manager.notify-discharging false

However in Ubuntu there is no equivalent.

Find all Mate power settings

To find all Mate power settings use:

$ gsettings list-recursively | grep power-manager

In Ubuntu you would use:

$ gsettings list-recursively | grep plugins.power
⇧ How to use a key press to wake a suspended laptop when using a KVM switch? Firefox freezing with 100% CPU usage for 30 seconds when launching Chromium  β‡©