public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Thias <post-OXl1b/uZKHizQB+pC5nmwQ@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: gpe-handler / acpi on ASUSL2400D
Date: Wed, 26 Mar 2003 22:30:39 +0100	[thread overview]
Message-ID: <200303262230.39993.post@sthias.de> (raw)
In-Reply-To: <F760B14C9561B941B89469F59BA3A84725A22B-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>

Am Mittwoch 26 März 2003 19:57 schrieben Sie:
> > From: Sebastian Thias [mailto:post-OXl1b/uZKHizQB+pC5nmwQ@public.gmane.org]
> > i'm a newbie on both acpi- and kernel-programming.
> > I've got an ASUSL2400D-laptop and kenel 2.5.65.
>
> Sounds like you're a quick learner. :)

Well, to be honest I started yesterday at noon. After a couple of dozens of
kernel-crashes things started to get working :-)

>
> > Upon pressing one of my laptops hotkeys, I receive an error
> > message about
> > a missing gpe-handler.
> > After fiddling a bit, I wrote a module that installs a
> > gpe-handler for 0x1D
> > (the one triggered by my hotkeys). The handler calls
> > "\_GPE._L1D" (using
> > acpi_evaluate_object ...). Only then can I receive notify-events for
> > "\_SB_.HOTK" and only then buttons like switching
> > LCD-Backlights off or
> > changing the brightness work.
> >
> > My question: Why do I have to install a gpe-handler by myself
> > if there is
> > a mehod "\_GPE._L1D" in dsdt. Is that the usual way to do such things?
>
> Is the button driver installed?

Yes. Powerbutton works. I compiled all drivers into the kernel. Lid state is 
also reported correctly, but I don't receive Lid events. If I try to install 
a notify-handler for the lid, I get returned, that there is already a handler 
present.

>
> The usual way is that you have a driver (e.g. for the lid button) that
> registers for notifications on the lid device. When the lid button is
> pressed, it generates a GPE, which the lid driver finds out about
> because the core calls the GPE method associated with the GPE (e.g.
> _L1D) and that method does a Notify() on the lid device. The lid device
> gets the notification and tells power policy via /proc/acpi/event.
>
> I'm not quite clear what is happening in your case. Can you elaborate
> further?
>
> Regards -- Andy

As I said before, the only "button-like" thing that is working, is the 
power-button. Any other button produces:
   "acpi_ev_gpe_dispatch[...] No handler present for GPE[00], disabling 
event."
(the gpe number is incorrect. The dispatch code always tells "00", regardless 
which gpe has really been triggered)

If I install my gpe-handler that calls _L1D "manually", I can also receive 
sleep-button events in /proc/acpi/events. The other hotkeys also work then 
(when a "\_SB_.HOTK" notify-handler is installed). Lid-events are still not
reported.
  If I interpret your answer correctly, it seems that the core does NOT call
the _L1D method. What could be the reason for this? Do you want to see
my dsdt?

Greetings
      Sebastian



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

  parent reply	other threads:[~2003-03-26 21:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-26 18:57 gpe-handler / acpi on ASUSL2400D Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A84725A22B-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-26 21:30   ` Sebastian Thias [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-27  0:40 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A847E96D73-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-27 14:17   ` Sebastian Thias
2003-03-26 21:42 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A847E96D6E-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-26 22:27   ` Sebastian Thias
2003-03-26 13:36 Sebastian Thias

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=200303262230.39993.post@sthias.de \
    --to=post-oxl1b/uzkhizqb+pc5nmwq@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@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