Most recent kernel where this bug did not occur: 2.6.21.5 Distribution: Debian Hardware Environment: IBM Thinkpad T23, x86 Problem Description: since 2.6.21.1 i don't have *any* files in /proc/acpi/battery/ anymore and no tool is able to show me the battery status of my IBM thinkpad T23. i tried 2.6.21.1: no acpi-battery then i tried 2.6.20.14: it works. the config is the same and i applied the config for 2.6.21.1 with "make oldconfig" acpidump: http://home.kallisti.de/acpidump_batprob.txt http://home.kallisti.de/dmesg_batprob.txt
Please attach dmesg output.
dmesg output is available from the mentioned URL.
Something is wrong here Most recent kernel where this bug did not occur: 2.6.21.5 Version: 2.6.21.1 Please correct information
It occurs on *every* version of 2.6.21.* Currently I am running 2.6.21.5 and i don't have any battery information with ACPI.
I have the same bug on the same hardware (Thinkpad T23, kernel 2.6.21-gentoo-r3 (it is 2.6.21.5 with additional patches)). There are several ACPI errors reported by the kernel during boot, but similar errors was reported by older kernels, too. Here are ACPI errors reported by 2.6.21 kernel: ACPI Exception (ec-0915): AE_NOT_FOUND, Could not use ECDT [20070126] ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126] ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.FDC_._INI] (Node dff4db1c), AE_NOT_EXIST ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126] ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__._INI] (Node dff49bd0), AE_NOT_EXIST ACPI: Interpreter enabled ACPI: (supports S0 S3 S4 S5) ACPI: Using PIC for interrupt routing ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126] ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BAT0._STA] (Node dff49f68), AE_NOT_EXIST ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126] ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BAT1._STA] (Node dff49e78), AE_NOT_EXIST ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126] ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node dff4dbe4), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node dff4dbf8), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node dff4d2c0), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.SCND.MSTR._STA] (Node dff4db58), AE_NOT_EXIST ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126] ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node dff4dbe4), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node dff4dbf8), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node dff4d2c0), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.USB0.URTH.UNST._STA] (Node dff4d5cc), AE_NOT_EXIST ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126] ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126] ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node dff4dbe4), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node dff4dbf8), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node dff4d2c0), AE_NOT_EXIST ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.NEST._STA] (Node dff4da40), AE_NOT_EXIST
I found some additional errors in the kernel log: [ 1.519139] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BAT0._STA] (Node c18ebf40), AE_NOT_EXIST [ 1.519660] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BAT1._STA] (Node c18ebe50), AE_NOT_EXIST Are these messages helpful?
Here are ACPI errors when running 2.6.20 kernel (battery info is available): ACPI Exception (acpi_ec-0908): AE_NOT_FOUND, Could not use ECDT [20060707] ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20060707] ACPI Error (exfldio-0290): Region EmbeddedControl(3) has no handler [20060707] ACPI Exception (dswexec-0458): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20060707] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.FDC_._INI] (Node dff4db1c), AE_NOT_EXIST ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20060707] ACPI Error (exfldio-0290): Region EmbeddedControl(3) has no handler [20060707] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__._INI] (Node dff49bd0), AE_NOT_EXIST
I migrated to 2.6.22-rc6 and battery works for now... thank you rocky% acpi Battery 1: charging, 99%, charging at zero rate - will never fully charge. Battery 2: charged, 85%
Does anyone have any idea which 2.6.22 patch may have fixed this? I'm interesting in backporting it to 2.6.21. Downstream bug: https://bugs.gentoo.org/show_bug.cgi?id=182738
Daniel, ECDT of this machine has /SB.PCI0.LPC.EC as full path to EC device. While the correct patch would be /_SB.PCI0.LPC.EC. This missing underscore would cause acpi_get_handle to return error condition. In 2.6.22-rc this code was re-written to not look for EC handle, but use ACPI_ROOT instead. This caused other regression #8709, 8909 so will need to be returned back. Better patch would be to either insert underscore for _SB or fallback to ACPI_ROOT only if acpi_get_handle() fails.