public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [ACPI-sppt] ACPI Battery Problems
@ 2003-07-04 19:52 Ian Chilton
  2003-07-04 20:10 ` Derek Broughton
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Chilton @ 2003-07-04 19:52 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	acpi-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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-line

Also, 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ACPI Battery Problems
  2003-07-04 19:52 [ACPI-sppt] ACPI Battery Problems Ian Chilton
@ 2003-07-04 20:10 ` Derek Broughton
       [not found]   ` <03f101c34268$501e4960$3746028e-dP0OE4Ef7fWw5LPnMra/2Q@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Derek Broughton @ 2003-07-04 20:10 UTC (permalink / raw)
  To: ACPI Development - Sourceforge

From: "Ian Chilton" <mailinglist-j6IF9zbmE2e9FHfhHBbuYA@public.gmane.org>
>
> 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
...
> 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
>
> Any 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ACPI Battery Problems
       [not found]   ` <03f101c34268$501e4960$3746028e-dP0OE4Ef7fWw5LPnMra/2Q@public.gmane.org>
@ 2003-07-06 21:39     ` James H. Cloos Jr.
       [not found]       ` <m3znjrmj1e.fsf-eUECQUGGJJCHAtaq1fIXeWD2FQJk+8+b@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: James H. Cloos Jr. @ 2003-07-06 21:39 UTC (permalink / raw)
  To: Derek Broughton; +Cc: ACPI Development - Sourceforge

>>>>> "Derek" == Derek Broughton <dbroughton-F3m4/jXepmf3fQ9qLvQP4Q@public.gmane.org> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ACPI Battery Problems
       [not found]       ` <m3znjrmj1e.fsf-eUECQUGGJJCHAtaq1fIXeWD2FQJk+8+b@public.gmane.org>
@ 2003-07-07  1:01         ` Derek Broughton
  2003-07-07 12:38         ` Ducrot Bruno
  1 sibling, 0 replies; 6+ messages in thread
From: Derek Broughton @ 2003-07-07  1:01 UTC (permalink / raw)
  To: ACPI Development - Sourceforge

James H. Cloos Jr. wrote:
>>>>>>"Derek" == Derek Broughton <dbroughton-F3m4/jXepmf3fQ9qLvQP4Q@public.gmane.org> 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.)

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ACPI Battery Problems
       [not found]       ` <m3znjrmj1e.fsf-eUECQUGGJJCHAtaq1fIXeWD2FQJk+8+b@public.gmane.org>
  2003-07-07  1:01         ` Derek Broughton
@ 2003-07-07 12:38         ` Ducrot Bruno
       [not found]           ` <20030707123833.GB7796-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Ducrot Bruno @ 2003-07-07 12:38 UTC (permalink / raw)
  To: James H. Cloos Jr.; +Cc: Derek Broughton, ACPI Development - Sourceforge

On Sun, Jul 06, 2003 at 05:39:41PM -0400, James H. Cloos Jr. wrote:
> >>>>> "Derek" == Derek Broughton <dbroughton-F3m4/jXepmf3fQ9qLvQP4Q@public.gmane.org> 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.)
> 

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).

-- 
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ACPI Battery Problems
       [not found]           ` <20030707123833.GB7796-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
@ 2003-07-07 19:40             ` James H. Cloos Jr.
  0 siblings, 0 replies; 6+ messages in thread
From: James H. Cloos Jr. @ 2003-07-07 19:40 UTC (permalink / raw)
  To: Ducrot Bruno; +Cc: Derek Broughton, ACPI Development - Sourceforge

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

>>>>> "Ducrot" == Ducrot Bruno <ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org> 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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-asl, Size: 719 bytes --]

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)
    }

[-- Attachment #3: Type: text/plain, Size: 281 bytes --]


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-07-07 19:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-04 19:52 [ACPI-sppt] ACPI Battery Problems Ian Chilton
2003-07-04 20:10 ` Derek Broughton
     [not found]   ` <03f101c34268$501e4960$3746028e-dP0OE4Ef7fWw5LPnMra/2Q@public.gmane.org>
2003-07-06 21:39     ` James H. Cloos Jr.
     [not found]       ` <m3znjrmj1e.fsf-eUECQUGGJJCHAtaq1fIXeWD2FQJk+8+b@public.gmane.org>
2003-07-07  1:01         ` Derek Broughton
2003-07-07 12:38         ` Ducrot Bruno
     [not found]           ` <20030707123833.GB7796-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-07-07 19:40             ` James H. Cloos Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox