View Battery Usage on Your Ubuntu Laptop with CPU-G
Monitoring battery life of your Ubuntu laptop just got a touch easier.
The Atareao team has added a new battery usage and information section to its fork of the CPU-G hardware information tool (think CPU-Z on Windows).
You’re probably familiar with seeing a timeline power usage graph on your mobile device, be it Android, Ubuntu or iOS.
The latest update to CPU-G brings this feature to the Ubuntu desktop.
When enabled, CPU-G runs a cron process every 5 minutes. This process logs the battery state.
Using the information it gather 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 cron job is running, eh?) — and estimate how much longer it’s likely to last!
Along with details on battery capacity the new battery section shows other power-related stats, including battery manufacturer, model, reference number, etc.
CPU-G can show a heap more information besides, but this post is simply highlighting its battery update.
Install CPU-G on Ubuntu 16.04 LTS
To install CPU-G on Ubuntu 16.04 you can run the following commands in a new Terminal
Ctrl + Alt + Twindow:sudo add-apt-repository ppa:atareao/atareaosudo apt-get update && sudo apt-get install cpu-g wmctrlAlternatively, you can download an installer package directly from the PPA’s packages page:
Download CPU-G 0.11.1 for Ubuntu 16.04 LTS
Launch the app from the Unity Dash (or equivalent app launcher).
Source: View Battery Usage on Your Ubuntu Laptop with CPU-G – OMG! Ubuntu!

