Bug 9221 - No more battery info in /proc/acpi (neither in /sys)
Summary: No more battery info in /proc/acpi (neither in /sys)
Status: REJECTED WILL_NOT_FIX
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Zhang Rui
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-24 13:20 UTC by Christian Casteyde
Modified: 2007-10-31 17:52 UTC (History)
0 users

See Also:
Kernel Version: 2.6.24-rc1
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
dmesg output (20.44 KB, text/plain)
2007-10-24 13:21 UTC, Christian Casteyde
Details
.config file for 2.6.24-rc1 (38.80 KB, text/plain)
2007-10-24 13:21 UTC, Christian Casteyde
Details
acpidump for 2.6.24-rc1 (108.27 KB, text/plain)
2007-10-30 11:18 UTC, Christian Casteyde
Details

Description Christian Casteyde 2007-10-24 13:20:35 UTC
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.
Comment 1 Christian Casteyde 2007-10-24 13:21:02 UTC
Created attachment 13265 [details]
dmesg output
Comment 2 Christian Casteyde 2007-10-24 13:21:48 UTC
Created attachment 13266 [details]
.config file for 2.6.24-rc1
Comment 3 Shaohua 2007-10-29 23:27:50 UTC
might be _STA returns non-present for battery. can you please attach your acpidump output, so we can check it?
Comment 4 Christian Casteyde 2007-10-30 11:17:35 UTC
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.
Comment 5 Christian Casteyde 2007-10-30 11:18:21 UTC
Created attachment 13350 [details]
acpidump for 2.6.24-rc1
Comment 6 Zhang Rui 2007-10-30 18:30:49 UTC
/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?
Comment 7 Zhang Rui 2007-10-31 01:27:26 UTC
Oh, I see.
You probably need to set CONFIG_POWER_SUPPLY first.:)
acpi battery driver depends on this since 2.6.24-rc1.
Comment 8 Christian Casteyde 2007-10-31 11:49:51 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.