Thinkpad X230 new battery detected but not working.
I have a Thinkpad X230 which I aquired relatively recently (runit, by the way). The battery that came with it was a bit iffy, so I bought a new one which is supposedly compatible with the X230. The old one is 10.8V 5.13Ah, and the new one is 11.1V 5.16Ah. Both are labelled 44+. I wasn't aware of the difference in voltage when I bought the battery, but surely this wouldn't be a problem, seeing as the AC chord is 20V anyway?
When I insert the new battery, it seems to be detected, as the /sys/class/power_supply/BAT0 directory appears. Information about the battery is even detected, contained in corresponding files, and summarised in the file uevent:
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Unknown
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
POWER_SUPPLY_VOLTAGE_NOW=0
POWER_SUPPLY_POWER_NOW=0
POWER_SUPPLY_ENERGY_NOW=0
POWER_SUPPLY_MODEL_NAME=45N1172
POWER_SUPPLY_MANUFACTURER=SANYO
POWER_SUPPLY_SERIAL_NUMBER=[REDACTED]
Notably capacity is missing. So essentially the battery is detected, but can't give or take power. When I unplug the charging cable, the computer turns off (crashes) immediately. I have a warranty on the battery, so if the battery is the problem then I'll just take it back, but I thought I might as well get it working on my end.
One thing that might be of interest: I used tpacpi-bat to set charging thresholds on the old battery. This seems to have automatically transferred over to the new battery, creating the files charge_control_end_threshold, charge_control_start_threshold, charge_start_threshold, and charge_stop_threshold. These files persist even after I disable tpacpi-bat and switch between the batteries. (I read somewhere that the threshold info is stored in the BIOS). I doubt that this is the issue but who knows.