The Problem
I recently installed Mint 17 on a Thinkpad T440, and am using i3 as my window manager.
For most of those little things that don’t quite work out of the box in Linux there is a ready-made solution just a Google search away.
I found one that wasn’t. In laptops like the T440 that have two batteries (a non-removable internal and the removable slice battery), i3status defaults to only showing the status of a single battery. I knew that sometimes Linux can be a little less power-save friendly than Windows… but when I saw my estimated time remaining drop by over half on Linux vs on Windows 7… let’s just say I wasn’t happy.
Thankfully, the issue was not in battery or usage, but in the way i3status measures and reports charge. It is pretty easy to simply tell i3status to display both batteries independently (as below), but I would rather just go ahead and combine both.

My initial plan was to fork i3status and build out this functionality, but I found that approach what we might call “non-trivial.”
So, quick and dirty shell scripts to the rescue.
The Solution
By default, i3status looks in /sys/class/power_supply/BAT%d/uevent to extract the information for the battery. So, we are going to create a fake uevent and point i3status at it.
First, ~/.batt.sh:
#!/bin/bash
while true
do
paste /sys/class/power_supply/BAT0/uevent /sys/class/power_supply/BAT1/uevent | awk '{split($0,a,"="); split(a[2],b," "); (a[3] == "Charging" || b[1] == "Charging") ? $5 = "Charging" : $5 = (a[3] + b[1])/2; print a[1] "=" $5}' > .uevent
sleep 5
done
This pulls the information on your two batteries (BAT0 and BAT1) and pipes it into ~/.uevent. I have this set to run every five seconds (“sleep 5”) however you can change this depending how frequently you update your status bar.
You will want this script to run everytime you login, I simply added this to my ~/.i3/config file
exec ~/.batt.sh
Finally, point i3status at your new “battery” by adding this to ~/.i3status.conf (Substitute your username for <user> in the path!):
order += "battery 2"
battery 2 {
integer_battery_capacity = true
last_full_capacity = true
path = "/home/<user>/.uevent"
format = "%status %percentage %remaining"
}
Restart i3 with Mod + Shift + R and you should see your new “battery” pop up.
You may also want to remove the other batteries from your i3status.conf.
The script could probably use some more tweaking, and I may yet fork i3status, but for now this is working great!

