Re: ACPI Battery Problems

James H. Cloos Jr.
2003-07-07T19:40:34Z

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