Most recent kernel where this bug did *NOT* occur: 2.6.20.6 Distribution: self compiled Hardware Environment: Intel Centrino Laptop Software Environment: Problem Description: /proc/acpi/battery/BAT0 (my laptop battery) is no longer available since i use 2.6.21 - the only change i made in kernel configuration is that i enabled the tickless option. With all versions before (including 2.6.20.6) it worked flawlessy. the relevant config options i use are: # # ACPI (Advanced Configuration and Power Interface) Support # CONFIG_ACPI=y CONFIG_ACPI_SLEEP=y CONFIG_ACPI_SLEEP_PROC_FS=y # CONFIG_ACPI_SLEEP_PROC_SLEEP is not set CONFIG_ACPI_PROCFS=y CONFIG_ACPI_AC=y CONFIG_ACPI_BATTERY=y CONFIG_ACPI_BUTTON=y CONFIG_ACPI_VIDEO=m CONFIG_ACPI_FAN=y # CONFIG_ACPI_DOCK is not set CONFIG_ACPI_PROCESSOR=y CONFIG_ACPI_THERMAL=y CONFIG_ACPI_ASUS=y # CONFIG_ACPI_IBM is not set # CONFIG_ACPI_TOSHIBA is not set CONFIG_ACPI_BLACKLIST_YEAR=0 # CONFIG_ACPI_DEBUG is not set CONFIG_ACPI_EC=y CONFIG_ACPI_POWER=y CONFIG_ACPI_SYSTEM=y CONFIG_X86_PM_TIMER=y # CONFIG_ACPI_CONTAINER is not set # CONFIG_ACPI_SBS is not set # # APM (Advanced Power Management) BIOS Support # # CONFIG_APM is not set Steps to reproduce:
Hello! I now removed the suspend2 patch and use now a vanilla 2.6.21. The problem remains. Some additional info: /proc/acpi/battery/BAT1 is still available - but I do have my battery at BAT0 - so BAT1 just states that there is no battery. I get no error messages or whatsoever in /var/log/kern.log about acpi or anything else. I will attach relevant kern.log part.
Created attachment 11507 [details] kern.log part of 2.6.21 vanilla
set CONFIG_ACPI_DEBUG will help you get more ACPI debug messages. :) >/proc/acpi/battery/BAT1 is still available - but I do have my battery at BAT0 Do you mean that only BAT1 can be seen under /proc/acpi/battery? And /proc/acpi/battery/BAT1/state says that the BAT1 is not present? Please attach the dmesg output after you set CONFIG_ACPI_DEBUG.
>Do you mean that only BAT1 can be seen under /proc/acpi/battery? >And /proc/acpi/battery/BAT1/state says that the BAT1 is not present? Yes that's correct. >Please attach the dmesg output after you set CONFIG_ACPI_DEBUG. Hmm recompiled with CONFIG_ACPI_DEBUG but I'm afraid my dmesg output doesn't contain anything new... but will attach it.
Created attachment 11526 [details] dmesg output with CONFIG_ACPI_DEBUG
I have some more debugging lines, but I have a precompiled kernel by ubuntu, without the debug configuration: [ 15.896079] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.SBRG.EC0_.BATS] (Node c147bf18), AE_NOT_EXIST [ 15.896125] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.BAT0._STA] (Node c14783c4), AE_NOT_EXIST these lines are not present in a dmesg by 2.6.20 (which does not have this problem) I've attached my DSDT in the bug #8493 which I think is a dup of this
Hi, Thomas, Could you please attach the acpidump output please?:)
Created attachment 11596 [details] acpidump-yelo3
Created attachment 11597 [details] acpidump-thomas
I have the same problem with my asus notebook: M6842NELH, bios 0208A
Created attachment 11641 [details] acpidump-shox
Please try the patch in comment#9 bug8598.
Thanks for the hint to this patch - I updated to 2.6.22-rc4 and applied the patch and my battery is here again! So for me this bug can be considered as fixed.
If it works I hope it is included soon by default!
*** This bug has been marked as a duplicate of bug 8598 ***