public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Ginkel <martin.ginkel-jy7zG81Tlw8@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: oysteigi-zs2scLodJVNRyvKAgBWctw@public.gmane.org
Subject: Re: Wrong AC state
Date: Thu, 27 May 2004 00:08:47 +0200	[thread overview]
Message-ID: <40B5156F.5020409@epost.de> (raw)
In-Reply-To: <40B346FC.9090908-VDBW1ITIq+y+DWMCimbbknqWYbMAw+HU@public.gmane.org>

Martin Ginkel wrote:
> On my laptop (Fujitsu-Siemens Amilo D 8830) this seems to be partially 
> broken.
> The /proc/ac_adapter/AC0/state has a value on-line or off-line from 
> boot-time and doesn't change later on.

OK found a solution while reading the disassembled DSDT:
The Code ist checking the OS-Version:

     Method (_PSR, 0, NotSerialized)
     {
       If (LNot (LEqual (FAKE, 0x00)))
       {
         Return (0x00)
       }
       Else
       {
         If (LOr (LEqual (OSFL (), 0x00), LEqual (OSFL (), 0x04)))
           {
              Store (\_SB.PCI0.SBRG.EC0.XCIN, Local0)
                                     }
          Else
           {
              Store (ACIN, Local0)
           }

              Return (Local0)
           }
      }


OSFL is returning 0x00 for win2000 and 0x04 for windows nt.
I defined as a dirty fix:
./include/acpi/platform/aclinux.h:50:
#define ACPI_OS_NAME               "Microsoft Windows NT"

Now the Power Monitor reacts instantly.

Well: the Bios seems to be designed for Microsoft Windows ;-P


	CU
	Martin


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

  parent reply	other threads:[~2004-05-26 22:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-25 13:15 Wrong AC state Martin Ginkel
     [not found] ` <40B346FC.9090908-VDBW1ITIq+y+DWMCimbbknqWYbMAw+HU@public.gmane.org>
2004-05-25 18:56   ` Micha Feigin
2004-05-26 22:08   ` Martin Ginkel [this message]
     [not found]     ` <40B5156F.5020409-jy7zG81Tlw8@public.gmane.org>
2004-05-28 11:16       ` Øystein Gisnås
2004-05-28 15:03       ` Stefan Seyfried
  -- strict thread matches above, loose matches on Subject: below --
2004-05-26 22:16 Moore, Robert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40B5156F.5020409@epost.de \
    --to=martin.ginkel-jy7zg81tlw8@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=oysteigi-zs2scLodJVNRyvKAgBWctw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox