One of the things that worries most of us who work on a laptop, is that we have so much battery left before the laptop shuts down and our productivity suddenly ends. That’s why we keep a watchful eye on the app that carries ours desktop environment where we can see a somewhat realistic report on how much battery time we have left. I say unrealistic because always 30 minutes of battery is about 10 minutes, and more if in these cases 30 minutes gave you to do something that consumes a lot of resources of your machine.
Aside from giving us erroneous data, these mini apps scratch at simplicity, giving us virtually no additional information, something that personally bothers me, because I like to know how my battery really is, not just know how many fake minutes I have left.
To obtain this data, we can use the always reliable Terminal. “It looks very ugly, it has no colors, it hurts my eyes”. I know that all this happens with the terminal, But fortunately there are always options to upgrade it or install a nicer terminal.
Returning to the subject, there are two super simple and powerful applications that will allow us to check the status of our battery with a few simple commands.
The first of these applications is ACPI, This can be installed in Ubuntu running the following line on this ugly, faded terminal:
sudo apt-get install acpi
Once installed ACPIAll we have to do is run the command
at the terminal to receive a fairly superficial report of battery status. Fortunately, ACPI is more powerful than that, and can provide a lot of information, from the state of the battery to its capacity, processor temperature and a few more data.
To see all the information provided by ACPI run the following line in the terminal:
And you get something like this:
Battery 0: Full, 100% Battery 0: design capacity 4500 mAh, last full capacity 4194 mAh = 93% Adapter 0: on-line Thermal 0: ok, 61.0 degrees C Thermal 0: trip point 0 switches to mode critical at temperature 200.0 degrees C Thermal 0: trip point 1 switches to mode passive at temperature 95.0 degrees C Cooling 0: LCD 0 of 9 Cooling 1: Processor 0 of 10 Cooling 2: Processor 0 of 10
ACPI is not the only application that allows us to know detailed information about our battery. it also exists IBAM (The Intelligent Battery Monitor), Which we can install by running the following line in the terminal:
sudo apt-get install ibam
already with IBAM installed on our machine, all we have to do to know the detailed information of the state of our battery is to run the following line in the terminal:
Seen something like this:
Battery time left: 1:49:53 Charge time left: 0:07:23 Adapted charge time left: 0:07:23
But IBAM doesn’t stay here, using the utility gnuplot, Which is installed automatically when installing IBAM, we can see a graph showing the status of the battery (Honestly, I didn’t understand the chart).
Note: IBAM has a small problem, and it doesn’t work with recent Kernels, so if you get a message that says
No apm data available.
, It is because you are very current to use IBAM.
If you still think the terminal looks very ugly to you, remember that you can make use of these applications through Conky, which is a supremely sophisticated way to know not only the status of your battery, but pretty much everything existing setting on your machine.
source: Bright Hub!