[ltp] tp_smapi does not report status correctly when using battery charge control features

Tino Keitel linux-thinkpad@linux-thinkpad.org
Tue, 7 Jul 2009 11:11:14 +0200

On Mon, Jul 06, 2009 at 18:41:32 +0800, Darren Hoo wrote:


> $ cat /sys/class/power_supply/BAT0/status
> Unknown

This sysfs file is not provided by tp_smapi, but by the normal ACPI
battery driver from the mainstream kernel. You might want to look into
/sys/devices/platform/smapi/BAT0/, which is created by tp-smapi. Normal
battery status tools still use the wrong information from
/sys/class/power_supply/BAT0/status, though.