All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Øystein Gisnås" <oysteigi-zs2scLodJVNRyvKAgBWctw@public.gmane.org>
To: Martin Ginkel <martin.ginkel-jy7zG81Tlw8@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Wrong AC state
Date: Fri, 28 May 2004 13:16:53 +0200	[thread overview]
Message-ID: <20040528111652.GD10998@jaguar.stud.ntnu.no> (raw)
In-Reply-To: <40B5156F.5020409-jy7zG81Tlw8@public.gmane.org>

On Thu, May 27, 2004 at 12:08:47AM +0200, Martin Ginkel wrote:
> 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 did the trick with my Fujitsu-Siemens Amilo D 7830 too.

Thanks!

-- 
Øystein Gisnås <oysteigi-zs2scLodJVNRyvKAgBWctw@public.gmane.org>
NTNU, Department of Telematics
Mob: (+47) 98861515 - MSN: oysteing-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org



-------------------------------------------------------
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_id149&alloc_id66&op=click

  parent reply	other threads:[~2004-05-28 11:16 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
     [not found]     ` <40B5156F.5020409-jy7zG81Tlw8@public.gmane.org>
2004-05-28 11:16       ` Øystein Gisnås [this message]
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=20040528111652.GD10998@jaguar.stud.ntnu.no \
    --to=oysteigi-zs2sclodjvnryvkagbwctw@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=martin.ginkel-jy7zG81Tlw8@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.