The Li-Ion battery in my IBM Thinkpad X31 laptop has been getting a bit long in the tooth. Rated at a 4.4 AH capacity new, /proc/acpi/battery/BAT0/info told me that it was only holding 1.8 AH now that it was a few years old. (This is normal for Li-Ion batteries, which degrade over time, even without multiple charge-discharge cycles.)
A brand new IBM (or Lenovo now) battery costs over a hundred dollars, but by shopping around I was able to find a "compatible" battery for as low as $50. It was only rated at 4.4AH, but that is relatively close to the 2nd generation 4.8AH batteries that IBM/Lenovo sell for twice as much. I started to wonder if it might be cheaper to buy OEM li-ion cells and simply replace the cells (keeping the case, and charge/discharge electronics). The first step would be to determine what type of Li-Ion cells I'd need to buy, so I decided to open up my old battery.