ACPI Battery Problems
Hello,
I have a new Dell Inspiron 5100 notebook and I am using 2.4.21 with the ACPI patch from http://acpi.sourceforge.net.
I can't get it to show the battery status - all I get is this:
[root@delta:~]# acpi -V
Thermal 1: ok, 40.0 degrees C
AC Adapter 1: off-lineAlso, I have had a few times running on power or battey where I have been working away and the machine has either powered off or hard reset.
I have the folowing options in my kernel:
[root@delta:~]# grep ACPI /usr/src/linux/.config # CONFIG_HOTPLUG_PCI_ACPI is not set # ACPI Support CONFIG_ACPI=y # CONFIG_ACPI_HT_ONLY is not set CONFIG_ACPI_BOOT=y CONFIG_ACPI_BUS=y CONFIG_ACPI_INTERPRETER=y CONFIG_ACPI_EC=y CONFIG_ACPI_POWER=y CONFIG_ACPI_PCI=y CONFIG_ACPI_SLEEP=y CONFIG_ACPI_SYSTEM=y CONFIG_ACPI_AC=y CONFIG_ACPI_BATTERY=y CONFIG_ACPI_BUTTON=y CONFIG_ACPI_FAN=y CONFIG_ACPI_PROCESSOR=y CONFIG_ACPI_THERMAL=y # CONFIG_ACPI_ASUS is not set # CONFIG_ACPI_TOSHIBA is not set # CONFIG_ACPI_DEBUG is not set
I get the following at boot:
[root@delta:~]# dmesg |grep -i acpi
BIOS-e820: 000000001ff70000 - 000000001ff7b000 (ACPI data)
BIOS-e820: 000000001ff7b000 - 000000001ff80000 (ACPI NVS)
ACPI: have wakeup address 0xc0001000
ACPI: RSDP (v000 PTLTD ) @ 0x000f78e0
ACPI: RSDT (v001 PTLTD RSDT 01540.00000) @ 0x1ff76dd0
ACPI: FADT (v001 INTEL NBGV 01540.00000) @ 0x1ff7af64
ACPI: BOOT (v001 PTLTD $SBFTBL$ 01540.00000) @ 0x1ff7afd8
ACPI: DSDT (v001 INTEL Brkdle_G 01540.00000) @ 0x00000000
ACPI: BIOS passes blacklist
ACPI: Subsystem revision 20030619
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: System [ACPI] (supports S0 S1 S3 S4 S5)
ACPI: PCI Root Bridge [PCI0] (00:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.SLOT._PRT]
ACPI: Embedded Controller [EC0] (gpe 28)
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 *10 11 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 *10 11 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 10 11 14 15, disabled)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 10 *11 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 10 11 14 15, disabled)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 10 11 14 15, disabled)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 10 11 14 15, disabled)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 *10 11 14 15)
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKG] enabled at IRQ 10
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even
'acpi=off'
ACPI: AC Adapter [ACAD] (off-line)
ACPI-0352: *** Error: Looking up [Z000] in namespace, AE_NOT_FOUND
ACPI-1121: *** Error: Method execution failed
[\_SB_.PCI0.LPC0.BAT1._BIF] (Node c1594a80), AE_NOT_FOUND
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Lid Switch [LID]
ACPI: Processor [CPU0] (supports C1 C2, 8 throttling states)
ACPI: Thermal Zone [THRM] (50 C)Any ideas?
Thanks!
--ian
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
From: "Ian Chilton" <[email protected]>
Quoted 9 lines
I have a new Dell Inspiron 5100 notebook and I am using 2.4.21 with the ACPI patch from http://acpi.sourceforge.net.
I can't get it to show the battery status - all I get is this:
[root@delta:~]# acpi -V Thermal 1: ok, 40.0 degrees C AC Adapter 1: off-line
...
Quoted 6 lines
ACPI: AC Adapter [ACAD] (off-line)
ACPI-0352: *** Error: Looking up [Z000] in namespace,AE_NOT_FOUND
ACPI-1121: *** Error: Method execution failed
[\_SB_.PCI0.LPC0.BAT1._BIF] (Nodec1594a80),AE_NOT_FOUNDAny ideas?
yeah, your DSDT is just as broken as every other Dell DSDT I've heard of. I never have managed to properly fix mine (Inspiron 2500). And as long as your battery method is broken it's always going to shut down precipitously when the battery runs out...
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Derek" == Derek Broughton <dbroughton-F3m4/[email protected]> writes:
Derek> yeah, your DSDT is just as broken as every other Dell DSDT I've Derek> heard of. I never have managed to properly fix mine (Inspiron Derek> 2500). And as long as your battery method is broken it's Derek> always going to shut down precipitously when the battery runs Derek> out...
FWIW, 2.5.73+ booted w/ acpi_os_name='Microsoft Windows NT' does show accurate battery and ac info on an i8100 w/ a14 bios. (they are up to a15 for the 8100.)
My next test is .74+ with acpi_os_name='Windows 2001'.
(The two acpi_os_names come from the dsdt; the latter is what the dsts expects for xp.)
I'm not sure whether the patches that went in to 2.5 since 2.5.70 fixed it, or whether the dsdt just works better if it gets to store 0x10 or 0x40 into MIS3.... But I suspect the patch is more important.
(Incidently, not specifying an acpi_os_name for that dsdt is the same as specifying win98 aka acpi_os_name='Microsoft Windows'. The 4th choice is win me.)
-JimC
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Quoted 9 lines · James H. Cloos Jr.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Derek" == Derek Broughton <dbroughton-F3m4/[email protected]> writes:
Derek> yeah, your DSDT is just as broken as every other Dell DSDT I've Derek> heard of. I never have managed to properly fix mine (Inspiron Derek> 2500). And as long as your battery method is broken it's Derek> always going to shut down precipitously when the battery runs Derek> out...
Quoted 3 lines
FWIW, 2.5.73+ booted w/ acpi_os_name='Microsoft Windows NT' does show accurate battery and ac info on an i8100 w/ a14 bios. (they are up to a15 for the 8100.)
Thanks. I recall Bruno mentioning this for other machines, and have always meant to try it...
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Quoted 8 lines · James H. Cloos Jr.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Derek" == Derek Broughton <dbroughton-F3m4/[email protected]> writes:
Derek> yeah, your DSDT is just as broken as every other Dell DSDT I've Derek> heard of. I never have managed to properly fix mine (Inspiron Derek> 2500). And as long as your battery method is broken it's Derek> always going to shut down precipitously when the battery runs Derek> out...
Quoted 9 lines
FWIW, 2.5.73+ booted w/ acpi_os_name='Microsoft Windows NT' does show accurate battery and ac info on an i8100 w/ a14 bios. (they are up to a15 for the 8100.)
My next test is .74+ with acpi_os_name='Windows 2001'.
(The two
acpi_os_namescome from the dsdt; the latter is what the dsts expects for xp.)
Most of ASL I saw will more likely use the _OSI() method for Windows XP. I'm also wondering if that will be OK to implement it (but with a configure option or perhaps better a boot option).
Signature · 11 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ducrot" == Ducrot Bruno <[email protected]> writes:
Ducrot> Most of ASL I saw will more likely use the _OSI() method for Ducrot> Windows XP. I'm also wondering if that will be OK to Ducrot> implement it (but with a configure option or perhaps better a Ducrot> boot option).
Yes, I did miss that. Dell does this:
Method (OSID, 0, NotSerialized)
{
If (LEqual (MIS3, 0x00))
{
Store (0x04, MIS3)
If (CondRefOf (\_OSI, Local0))
{
If (\_OSI (WXP))
{
Store (0x40, MIS3)
}
}
Else
{
If (STRE (\_OS, W98S))
{
Store (0x08, MIS3)
}
If (STRE (\_OS, NT5S))
{
Store (0x10, MIS3)
}
If (STRE (\_OS, WINM))
{
Store (0x20, MIS3)
}
}
}
Return (MIS3)
}So I was even wrong about the default. 0x4 is used for anything not 98, nt5, me or xp.
In any case, booting w/ acpi_os_name='Windows 2001' still allows the battery etc stuff to work, so it is obviously indeed the recent patches that fixed handling less-than-ideal dsdts.
-JimC