Ubuntu – Bionic: Block Notification: laptop Battery Critically Low

18.04batteryguinotificationpower-management

Problem: My laptop battery is broken, it never charges. I have to use it at 0% battery and on AC power. Ubuntu 18.04, keeps giving me annoying notification every 5 seconds: enter image description here

I know several questions have been asked on this topic, but this is specifically for about Ubuntu 18.04. I have tried solutions mentioned for older versions of Ubuntu but none of them work:

  • Modifying /etc/UPower/UPower.conf
  • Modifying dconf editor ->org -> gnome -> settings-daemon -> plugins -> power

I am surprised that these settings don't point to the same values? I can set different values in these and still nothing happens. Do these settings even work or are they deprecated?

Has anybody else faced this issue? It's very annoying.

Best Answer

I found these commands did the trick:-

~$ dconf write /org/gnome/settings-daemon/plugins/power/use-time-for-policy false
~$ dconf write /org/gnome/settings-daemon/plugins/power/percentage-low 0

you can check the dconf edit worked like so:-

~$ dconf dump /org/gnome/settings-daemon/plugins/power/
[/]
percentage-low=0
sleep-inactive-ac-timeout=3600
sleep-inactive-ac-type='nothing'
use-time-for-policy=false

@vanadium provided the correct keys and values to update. The keys were missing from my dconf but adding them seems to have solved the problem.

Related Question