Hi Virgo, On Donnerstag, 12. Februar 2009, Virgo Pärna wrote: > > Please run "on_ac_power ; echo $?" - I expect the result is 255. > 0 when in AC power. 1 when in battery.
Thats correct.
> > Then please also run "cat /sys/class/power_supply/AC/online" when on AC
> > power and on battery. I assume the result is 1 and 0.
>
> cat: /sys/class/power_supply/AC/online: No such file or directory
>
> But there is cat /sys/class/power_supply/ACAD/online which is 1 when AC
> is connected and 0 when not.
Interesting. Yesterday powermgmt-base with support
for /sys/class/power_supply/$something has migrated to lenny.
If /sys/class/power_supply/ACAD/type contains the word "Mains" it should work
for your ACAD case as well.
> When Googling around, I found the hints, that the problem may be caused
> by ac module being not loaded, when filesystem checks are done.
Hah. That might indeed be the cause for your problem. Did you build a minimal
initramfs or didnt you change anything in that regard?
And, can you please upgrade your powermgmt-base package (to the new version in
lenny) and reboot and see, if that fixes the problem? I kind of doubt it, but
maybe /sys/class/power_supply is different then /proc/acpi...
regards,
Holger
signature.asc
Description: This is a digitally signed message part.

