Most recent kernel where this bug did not occur: 2.6.23.1 Distribution: Bluewhite64 Hardware Environment: Acer Aspire 1511LMi, laptop with battery Software Environment: Shell, KDE Problem Description: Since 2.6.24-rc1, there is no more battery power information in /proc/acpi/battery (the directory is not even present). There is no information in /sys either, so this is not related to http://bugzilla.kernel.org/show_bug.cgi?id=9183 So this is a regression from 2.6.23.x. Steps to reproduce: Boot on a laptop with 2.6.24-rc1 dmesg and .config appended.
Created attachment 13265 [details] dmesg output
Created attachment 13266 [details] .config file for 2.6.24-rc1
might be _STA returns non-present for battery. can you please attach your acpidump output, so we can check it?
I've posted all dumps related to ACPI in bug http://bugzilla.kernel.org/show_bug.cgi?id=9232. I repost here acpidump output for kernel 2.6.24-rc1. Note that the battery is seen by 2.6.23.1.
Created attachment 13350 [details] acpidump for 2.6.24-rc1
/proc/acpi/battery is not even present mean the battery driver is not loaded at all. I checked your kernel config file and it's weird that there is no CONFIG_ACPI_BATTERY. Could you rebuild your kernel with CONFIG_ACPI_BATTERY compiled in, please?
Oh, I see. You probably need to set CONFIG_POWER_SUPPLY first.:) acpi battery driver depends on this since 2.6.24-rc1.
Yeah, you're right. The power supply masked the battery option in ACPI, si it was unchecked. With both activated, the battery info are there and everything works. Maybe the ACPI battery option should be always visible and force CONFIG_POWER_SUPPLY to prevent user from missing it? Anyway, thanks a lot.