The battery and charger are Linux power-supply devices
The gauge at 0x55 and charger at 0x6B answered read-only i2cget on 2026-10-13 (docs/evidence/keyboard-base/probe/). Board-read 2026-10-14: the forward-ported bq27xxx BQ27220 entry and bq25890_charger (polled, no INT line; operator closed the INT search) report capacity, status, voltage, current and online with the cable in, out and in Hi-Z (docs/evidence/keyboard-base/charger/).
With the keyboard base attached, the system SHALL expose a battery power_supply device that reports state of charge, voltage, current and charging status from the fuel gauge, and a charger power_supply device that reports whether external power is present. Readings SHALL come from the chips, not from an estimate.
Reading the battery
- WHEN an operator reads
/sys/class/power_supply/*/capacityandstatuson the board with the base attached - THEN a battery device reports a percentage and a status, and its voltage agrees within 50 mV with the charger's battery-voltage reading taken at the same time
Plugging in
- WHEN a charging cable is connected to the base and then removed
- THEN the charger device reports external power present and then absent, and the battery status changes between Charging and Discharging accordingly