Thinkpad Battery Status Reporting: Created by Braindamaged Monkeys

The IBM/Lenovo Thinkpad battery firmware is bad. Very, very bad. It attempts to use a power flow integration or "Coulomb counting" approach, and manages to get it very wrong, producing far worse results than could have been had simply by using the battery voltage, and becoming more wrong with each charge/discharge cycle, eventually thinking the battery is empty when it's about 50% charged. "Braindamaged", really, is too kind a word to properly describe my opinion of the "engineers" who created this system. I'll elaborate.