IBAM – The Intelligent Battery Monitor for Laptops

Sponsored Link
IBAM is an advanced battery monitor for laptops, which uses statistical and adaptive linear methods to provide accurate estimations of minutes of battery left or of the time needed until full recharge. This software relies on either APM, ACPI, SYSFS or PMU kernel support to access the battery status.

IBAM solves this problem by creating a battery and charge profile (as seen on the right for my old laptop) from which it can compute the actual times remaining. The red graph represents the battery cycle (where the laptop is running on battery), the x-axis represents the bios-minutes (now bios-percentage), the y-axis the actual average lengths of that minute (percentage) in seconds. As you can see the bios minute was about 50 seconds long from 200 minutes to 60 minutes, and only 10 seconds long from 40 minutes to 20 minutes. No wonder I was surprised that the battery was empty so soon... 😉
The green graph shows the charge cycle, which seems to be a bit more useful, still the same technique can be used to give the user an idea how long the charge process will need.
As soon you created initial profiles you can get the similar graphs for your computer by using the option "--plot".
Of course the computer will consume more energy on a high load and IBAM does take this into account by determining a linear adaptive method for the current cycle.

Install IBAM in Ubuntu

sudo apt-get install ibam

This will install all the required packages

Using IBAM

Charging batteries:

1

Laptop is running on batteries

2

For more available options

Usage

ibam [options]

Options:

-h, --help                 displays this message
-v, --version              displays software version
-b, --bios                 show bios apm guesses
-s, --seconds              displays times in seconds
-c, --correctseconds       displays changes in seconds
-r, --readonly             no files will be updated
-a, --all                  show ALL information
--battery              show battery time
--batteryadaptive      show adaptive battery time
--batterybios          show bios battery time guess
--percentbattery       show battery percentage
--percentbios          show bios percentage
--charge               show charge time
--chargeadaptive       show adaptive charge time
--percentcharge        show charge percentage
--totalbattery         show total battery time
--totalbatteryadaptive show adaptive total battery
--totalcharge          show total charge time
--totalchargeadaptive  show adaptive total charge
--hardlowlimit[=lim]   show user defined hard lower percentage limit
[and set it to value <lim> or disable <0> it]
--softlowlimit[=lim]   show automatic lower percentage limit
[and lower it to value <lim> or diable <0> it]
--plot[=profiles]      use gnuplot to plot battery and charge graphs
and plot the last <profiles> additional profiles
--plotderivations[=profiles] same as above plus standard derivations
--import               import V0.1 data from current directory
--profile              enable additional yet unused profiling
--noprofile            disable additional profiling
--credits              to everyone contributing to ibam

Sponsored Link

You may also like...

8 Responses

  1. him1123 says:

    I was just about to hunt for this as i’ve just modded a zipit to run terminal

  2. madhu says:

    It will be more good if we have the desktop applet or some GUI to tell the battery status rather running in console

  3. enli says:

    I agree, GUI frontend would be nicer.

  4. Regarding the GUI, it would definitely be great, but for now you could simpli dedicate a terminal windows (or tab) for it and run “watch -n 30 ibam”

  5. Nik says:

    conky can also be used to indicate battery status
    I use
    ${battery_percent C1BE}% ${battery_bar C1BE}

    note C1BE is my battery, yours may be different, to check use $ls /proc/acpi/battery/

  6. Mark Baas says:

    Hi,

    I rewrote the ibamtray to totally mimic gnome-power-manager applet. It even integrates with it’s translations. Upon startup it will try to hide the gnome-power-manager applet, but you’ll need my special patch one. Packages can be found in my ppa:
    ppa:mark-baas123/ibam-applet

    Greetings,

    Mark

  7. Grilla says:

    Hi I just installed ibam to check my laptops battery and to try to fix the battery care function. But when I ran the ibam command in the terminal it gave me the “no apm data available”
    Any ideas?

Leave a Reply

Your email address will not be published. Required fields are marked *