Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running ubuntu on my netbook, and I wanted a simple piece of software to keep track of how long the PC manages to stay on while on battery power. It could be something that automatically kicks in when I unplug the ṕower plug. But it could also be a simple command that I run manually to get similar results.

My objective is to find out how long my laptop's battery lasts.

share|improve this question
Keep in mind that power use isn't constant, and will vary depending on how much you use the CPU, hard drive, monitor (turning off when idle and even brightness), etc. – Roger Pate Jun 21 '10 at 2:08
I'm aware of that. I'm just trying to get a general idea. – Malabarba Jun 21 '10 at 7:25
up vote 1 down vote accepted

Try acpi on terminal. Here's a friendly tutorial.

check all the status together

acpi -V

Battery 1: discharging, 27%, 00:11:29 remaining
Thermal 1: ok, 50.0 degrees C
AC Adapter 1: off-line
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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