Ubuntu – System is getting shutdown when battery is low (Ubuntu 18.04)

18.04hibernatepower-management

My system is getting shut down when the battery is low,

I found this on below link also:

https://help.ubuntu.com/stable/ubuntu-help/power-lowpower.html.en

I need to set it to suspend or hibernate option.

Is there any way to do this?

Best Answer

You can use the dconf-editor for the above. Open up a terminal and run following commands for installing dconf-editor.

sudo apt-get update

sudo apt-get install dconf-editor -y

Once installed you will be able to run it via the shortcut created like follows, enter image description here

Next navigate to power section as follows,

org -> gnome -> settings-daemon -> plugins -> power

and change the value of critical-battery-action to your preference (sleep, hibernate and etc).