From: Fedor Karpelevitch <fedor-ugkMPi23kyXAHCkTjeiZhQ@public.gmane.org>
To: "Grover,
Andrew" <andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: lid state reported incorrectly; no ac events
Date: Fri, 25 Jul 2003 23:38:59 -0700 [thread overview]
Message-ID: <200307252338.59563.fedor@karpelevitch.net> (raw)
In-Reply-To: <F760B14C9561B941B89469F59BA3A8470255EEAB-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1861 bytes --]
On Пятница 25 Июль 2003 04:36 pm, Grover, Andrew wrote:
> > From: Fedor Karpelevitch [mailto:fedor-ugkMPi23kyXAHCkTjeiZhQ@public.gmane.org]
> >
> > > right answer (if so, how? What does the ASL for the _LID method
> > > look like?)
> >
> > Sorry, but how do I tell? I can provide whatever info if you tell
> > me where to get it from...
>
> Thanks for sending me your DSDT. Here is the _LID control method:
>
> (ECOK is a variable that is set after the EC driver initializer
> properly. It should be set to 1 fairly early on.)
> (LIDS is a 1 bit field in the EmbeddedController operation region.)
>
> Method (_LID, 0, NotSerialized)
> {
> If (\_SB.PCI0.ISA.EC.ECOK)
> {
> If (\_SB.PCI0.ISA.EC.LIDS)
> {
> Return (0x00)
> }
> Else
> {
> Return (0x01)
> }
> }
> Else
> {
> Return (0x00)
> }
> }
>
> Seems pretty straightforward. "If the EC is initialized, read the
> LIDS bit and return the opposite".
>
> Could you perhaps add the following line after the call to
> acpi_ec_read() in the function acpi_ec_space_handler in file
> drivers/acpi/ec.c?
>
> printk("ACPI: Read %x from EC address %x\n", temp, address);
>
> Then, clear the dmesg buffer "dmesg -c"
> And then cat state once with the lid open, and if you can figure
> out a way, with the lid closed, too.
> And then send me dmesg contents.
see attachment. The first two lines are with the open lid, and the
second two - with closed ( not sure why each line is printed twice -
I only did cat ...LID/state once for each case );
hope this sheds some light.
Also I checked the problem with absence of AC events - acpid is not to
blame: I stopped it and did cat /proc/acpi/event, and then
unplugged/plugged AC, but never saw any events ( if i push lid button
events do show up).
Fedor
[-- Attachment #2: dmesg.txt --]
[-- Type: text/plain, Size: 132 bytes --]
ACPI: Read 91 from EC address 83
ACPI: Read 91 from EC address 83
ACPI: Read 10 from EC address 83
ACPI: Read 10 from EC address 83
next prev parent reply other threads:[~2003-07-26 6:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-25 23:36 lid state reported incorrectly; no ac events Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A8470255EEAB-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-07-26 6:38 ` Fedor Karpelevitch [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-07-25 22:55 Grover, Andrew
2003-07-25 22:30 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A8470255EEAA-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-07-25 22:49 ` Fedor Karpelevitch
2003-07-25 20:58 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847E97081-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-07-25 22:19 ` Fedor Karpelevitch
2003-07-25 23:04 ` Fedor Karpelevitch
2003-07-23 14:28 Fedor Karpelevitch
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=200307252338.59563.fedor@karpelevitch.net \
--to=fedor-ugkmpi23kyxahcktjeizhq@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=andrew.grover-ral2JQCrhuEAvxtiuMwx3w@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