Archives For battery

gnome shell

After moving to Ubuntu 17.10 Gnome Desktop, you may find that some handy indicator applet switches has gone.

One of them is that neither ‘Settings’ nor ‘Gnome Tweaks’ show options to enable battery percentage in top panel.

Also there’s no options to configure the date and time display settings in the center of the top panel.

1. To show battery percentage in Gnome panel, install dconf editor from Ubuntu Software.

2. Then launch it and navigate to org -> gnome -> desktop -> interface, scroll down and turn on the switch for ‘show-battery-percentage’.

There you can also set clock time format, show or hide date and seconds.

Battery Monitor

Battery Monitor is a simple tool written in Python3 and PyGTK3. It notifies battery status of charging, discharging, fully charged through desktop notifications. When the battery is below 10%, it plays a sound and pops up a notification bubble.

No command typing on terminal, no extra indicator, the tool just pop notifications when the battery status changes.

Battery charging battery discharging
battery is fully charged battery low

How to Install Battery Monitor in Ubuntu:

1. Use PPA.

Open terminal (Ctrl+Alt+T) and run the commands below one by one to install it from the PPA:

sudo add-apt-repository ppa:maateen/battery-monitor

sudo apt update

sudo apt install battery-monitor

So far, Ubuntu 16.04 and Ubuntu 14.04 are supported.

2. For those who don’t want to add PPA, grab the .deb installer from the release page.

Once installed, launch the tool via command battery-monitor for the first time. Or just restart, it will start in background automatically at login.

NOTE: The software is in very earlier stage, it may have bugs. Report issues and ask requests at https://github.com/maateen/battery-monitor/issues

To uninstall it, just run command:

sudo apt remove battery-monitor

And remove the PPA if added via Software & Updates -> Other Software tab.

Show battery percentage and time remaining

This quick tip is going to show you how to display your laptop’s battery percentage and time remaining to Ubuntu 14.04 panel. So that your system tray area battery icon will look like this:

Ubuntu 14.04 show battery percentage and time remaining

This can be done easily by doing a little changes through dconf Editor, install it via Software Center if you don’t find it in application menu or Unity dash.

1. Open dconf Editor. On the left side, navigate to com -> canonical -> indicator -> power.

2. Check the boxes that say “show-time” and “show-percentage” on the right.

dconf editor battery settings

That’s it. The changes take effect immediately.