Use CPU-G Utility App To View Battery Usage on Your Ubuntu Laptop
Monitoring the battery life of your Ubuntu laptop has just gotten a lot easier and it is thanks to the Atareao team who has added a new battery usage and info section to its fork of the CPU-G hardware information tool.
We are all familiar with seeing a timeline power usage graph on our mobile devices whether they be Android, Ubuntu or iOS. But sometimes it is inaccurate in unity (or any of the other desktop environments you use) so you can just easily get battery info from CPU-G.
CPU-G Battery Information
CPU-G runs a cron process every 5 minutes when it is enabled and it’s this process that logs the battery state. CPU-G is then able to display you a graph showing you how fast your battery has been depleted (hopefully not any faster once this
CPU-G uses the information it gathers to plot and display a graph showing how fast your battery charger is being depleted and gives an estimate of how much longer it will last.
Together with the details it provides on your battery capacity, the new battery section will show statistics regarding other power information including the battery manufacturer, model, and reference number among others.
Installing CPU-G on Ubuntu 16.04 LTS
Run the following commands in a new Terminal window to install CPU-G on your Ubuntu 16.04:
sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update && sudo apt-get install cpu-g wmctrl
If you don’t want to go through the command line way you can download an installer package directly from the PPA’s packages page.
After the installation is complete launch CPU-G from your app launcher.