So, I am rather happy with my battery life. I just want to know how I can measure how much time I actually get out of it. All the posts about battery life and Linux/Ubuntu/etc seem to be about improving it or similar. All I want to do is measure it.

Presumably the system logs whenever I plug/unplug my power chord, whenever I suspend/resume, and whenever I turn off/reboot. It seems there should be a way of measuring how long the computer has been on battery (up to charging the computer when closed, of course).



With gnome-power-statistics.

Run in the terminal : gnome-power-statistics

A GUI will appear.It allows you to visualize the power consumption of laptop hardware.

enter image description here enter image description here

See here: MakeUseOf and here: Ubuntu manpage

Alternatively you may use powerstat.

sudo apt-get install powerstat

Then run in the terminal powerstat. It will you necessary info. See here: Ubuntu manpage and here : hecticgeek

  • Awesome. I'm trying it out. Will report back when I see how it works. – Mauricio Apr 5 '15 at 15:24
  • Power Statistics is included with Ubuntu by default, no need for any Terminal commands... Just search Unity (the menu) for "power statistics". – Gregory Opera Apr 6 '15 at 5:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.