Most recent kernel where this bug did *NOT* occur: 2.6.20 Distribution: Debian Hardware Environment: Asus M6N notebook Problem Description: Main battery status/information is not reported: in 2.6.20 there were two directories in /proc/acpi/battery: BAT0 and BAT1 (second properly reported as missing, seems to be slot for extension battery), in 2.6.22-rc3 and rc4 there is only BAT1. .configs, dmesgs and acpidump output are attached.
Created attachment 11707 [details] dmesg of (working) 2.6.20
Created attachment 11708 [details] dmesg of (non-working) 2.6.22-rc4
Created attachment 11709 [details] dmesg of (non-working) 2.6.22-rc4
Created attachment 11711 [details] acpidump output
Created attachment 11712 [details] lspci -vv
Created attachment 11713 [details] .config from 2.6.20
Created attachment 11714 [details] .config from 2.6.22-rc4
Comment on attachment 11709 [details] dmesg of (non-working) 2.6.22-rc4 dup
Created attachment 11724 [details] Try to find EC in DSDT if ECDT lookup fails Please try this patch.
*** Bug 8504 has been marked as a duplicate of this bug. ***
I'm the reportet auf the duplicate (Bug 8504) - an writing this from 2.6.22-rc4-git3. To make it short: My Battery is there and it boots *great, thanks*
Provided patch fixes the regression on my M6N.
This bugfix did not go to the 2.6.22. WTF???
*** Bug 8709 has been marked as a duplicate of this bug. ***
*** Bug 8477 has been marked as a duplicate of this bug. ***
*** Bug 8744 has been marked as a duplicate of this bug. ***
Created attachment 12242 [details] patch vs 2.6.23-rc1-git this refreshed patch from Alexey is in acpi-test
cd8c93a4e04dce8f00d1ef3a476aac8bd65ae40b shipped in 2.6.23-rc3 closed.
*** Bug 8493 has been marked as a duplicate of this bug. ***
Created attachment 13355 [details] Do early init only for fake _INI being present Previous patch causes too many problems for other machines. Try limit early inits to only EC with _INI method. Please test that it does not cause regressions for you.
Applied patch to 2.6.24-rc1-g5307cc1a and Battery 0 is not shown again: bash-3.00$ dmesg | grep ACPI ACPI: AC Adapter [AC] (off-line) ACPI: Battery Slot [BAT1] (battery absent) [..]
Created attachment 13385 [details] fixed patch Sorry, there was typo in previous patch. Could you please test this one?
That one works for me.
Works for me too.
27792f3af1f67057fc17e4bd3b28d0ce8fe1d15c (ACPI: EC: Don't init EC early if it has no _INI) applied to acpi test branch
shipped in 2.6.24-rc4 -- closed commit 5870a8cd23181703cc76f88f630372f8602c7648 Author: Alexey Starikovskiy <astarikovskiy@suse.de> Date: Thu Nov 15 21:52:47 2007 +0300 ACPI: EC: Don't init EC early if it has no _INI Option to init EC early inserted to handle #8598 ASUS problem, introduced several others. EC driver in this particular case has fake _INI method, not present on other machines, which don't need or break from this workaround, so lets use its presence as a flag for early init. http://bugzilla.kernel.org/show_bug.cgi?id=9262 http://bugzilla.kernel.org/show_bug.cgi?id=8598 https://bugzilla.novell.com/show_bug.cgi?id=334806 Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>