laptop-mode uses /sys/class/power_supply/ACAD/online as first-order source, but it seems to be broken. One have to plug-in/plug-out power cable twice to set it to 0. In other words, it misses very first "plug-out" event, so I have a paradox: # cat /sys/class/power_supply/ACAD/online 1 # cat /sys/class/power_supply/BAT1/status Discharging This is probably a kernel bug, but I don't know where to mail it. Reproducible: Always
Created attachment 250055 [details] My linux-2.6.35-gentoo-r5 .config file.
I have the same problem. Seems to be a bug in "Future power /sys interface" (Kernel ACPI-config). If you disable this and enable "Deprecated /proc/acpi files " and "Deprecated power /proc/acpi directories", everything works fine. For kernel-bugs, there is https://bugzilla.kernel.org/.
With 2.6.37 (using gentoo-sources) this is fixed, at least for our Lenovo Thinkpad SL510.
Try with linux-3.2 and laptop-mode-tools-1.60-r1, reopen if this is still a issue