in batt.c, searching proc and sysfs both fail.
#define AC_ADAPTER_STATE_FILE "/proc/acpi/ac_adapter/AC0/state"
#define AC_ADAPTER_STATE_SYSFS_FILE "/sys/class/power_supply/AC0/online"
while the only file exists in my box is:
/sys/class/power_supply/AC/online
I don't have either /proc/acpi/ac_adapter or /sys/class/power_supply/AC0/online.
------------------------------------------------
# uname -a
Linux localhost 2.6.30 #1 SMP PREEMPT Wed Jun 10 04:23:12 CDT 2009 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux
# ls /proc/acpi/
button event power_resource thermal_zone wakeup
embedded_controller ibm processor video
# ls /sys/class/power_supply/
AC BAT0
/proc/config.gz, kernel config file
Functional duplicate of 2378426. The battery plugin is being rewritten to use proper interfaces, and as I understand it is nearing completion. This was also discussed on the forum in the last several days.