DevKit-Power doesn't detect the system is running on battery power if you boot your laptop without AC power

Richard Hughes hughsient at gmail.com
Tue Nov 17 14:16:33 PST 2009


2009/11/17 Emilio López <buhitoescolar at gmail.com>:
> emilio at laptop:~$ ls /sys/class/power_supply
> ACAD

There's the problem.

> emilio at laptop:~$ cat /proc/acpi/battery/BAT1/state
> present:                 yes
> capacity state:          ok
> charging state:          discharging
> present rate:            2056 mA
> remaining capacity:      1956 mAh
> present voltage:         10699 mV
>
> The battery magically appears, and all the actions get triggered (like
> lowering screen brightness).
>
> emilio at laptop:~$ ls /sys/class/power_supply
> ACAD  BAT1

That's insane. Your battery driver is broken.

> It seems that cheching that /proc/acpi/battery/BAT1/state makes
> devkit-power aware of the battery. Any thoughts?

Are you using a custom kernel battery driver? Is the source available?

Richard


More information about the devkit-devel mailing list