public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Wrong AC state
@ 2004-05-25 13:15 Martin Ginkel
       [not found] ` <40B346FC.9090908-VDBW1ITIq+y+DWMCimbbknqWYbMAw+HU@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Ginkel @ 2004-05-25 13:15 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Dear ACPI-Folks,

I am trying to debug the code for reading the ac_adapter state.
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.
I already switched on debugging in the ac-module and the
acpi_ac_get_state function gets called every time I cat the state-file.
But it obviously reads the same value again and again.

Anyways: plugging the AC in and out get's recognized by the hardware:
The display dims up and down, using Windows the correct state is shown
and in Linux ACPI is getting 2 IRQs (according to /proc/interrupts).

Does anyone have suggestions where to start debugging?

	Best regards
	Martin





-- 
+-[Martin Ginkel]-------------[mailto:mginkel(at)mpi-magdeburg.mpg.de]-+
| MPI Magdeburg, Zi S2.09    Sandtorstr. 1, D-39106 Magdeburg, Germany |
|                                                                      |
|                                                                      |
+-[tel/fax: +49 391 6110 482/529]----[http://www.mpi-magdeburg.mpg.de]-+


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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Wrong AC state
@ 2004-05-26 22:16 Moore, Robert
  0 siblings, 0 replies; 6+ messages in thread
From: Moore, Robert @ 2004-05-26 22:16 UTC (permalink / raw)
  To: Martin Ginkel, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: oysteigi-zs2scLodJVNRyvKAgBWctw, Brown, Len, Grover, Andrew

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 2647 bytes --]

>#define ACPI_OS_NAME               "Microsoft Windows NT"

This has recently been changed to the default ACPI_OS_NAME for all
versions of the ACPI CA code -- for exactly the reasons you describe
below.

Bob


> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Martin Ginkel
> Sent: Wednesday, May 26, 2004 3:09 PM
> To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Cc: oysteigi-zs2scLodJVNRyvKAgBWctw@public.gmane.org
> Subject: Re: [ACPI] Wrong AC state
> 
> 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
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel


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

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

end of thread, other threads:[~2004-05-28 15:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-05-28 15:03       ` Stefan Seyfried
  -- strict thread matches above, loose matches on Subject: below --
2004-05-26 22:16 Moore, Robert

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