public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: Yedidia Klein <yedidia@atarplpl.co.il>
Cc: linux-acpi@vger.kernel.org
Subject: Re: getting new hardware (arbor M1526) buttons to work w/ acpi
Date: Mon, 13 Sep 2010 21:37:43 +0200	[thread overview]
Message-ID: <201009132137.44002.trenn@suse.de> (raw)
In-Reply-To: <AANLkTinLh6_q3n8WQJ1DWrhepqXdCeNosRZh9ByY8qVh@mail.gmail.com>

On Monday 13 September 2010 20:11:55 Yedidia Klein wrote:
> ok, found that wmi is compiled into my kernel and not built as module.
> while the grep for PNP0C32 returned nothing - so I assume that it;s
> not that.
> 
> is there any way to read these addresses directly via C and not via
> ACPI ?
If the button is ACPI driven you have to look at ACPI code sooner or 
later.
Have you tried showkey yet?

Try:
sleep 1;showkey
and
sleep 1;showkey -s
(the sleep is only that you can escape with CTRL-c).
If you get output if you hit the keys, then forget about ACPI and all
I said. There is a lot documentation about this out there.
Best you learn about:
/etc/X11/Xmodmap
the input layer, xev is a nice tool for these, etc.

If you don't see something with showkey, it's likely that it's ACPI 
driven.
Do:
rmmod battery
rmmod thermal
to avoid other ACPI interrupts
Then:
watch -n1 cat /proc/interrupts
Press the buttons, is the ACPI irq (normally 9) increasing when you
hit any of these?
If yes, it's likely ACPI driven.

Next step would to find out which GPE is fired on each press:
VALID="";for x in /sys/firmware/acpi/interrupts/gpe*;do if cat $x|grep 
enabled;then VALID="$VALID $x";fi;done;watch -n1 cat $VALID

modprobe battery
modprobe thermal
afterwards...

          Thomas

  parent reply	other threads:[~2010-09-13 19:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26  5:56 getting new hardware (arbor M1526) buttons to work w/ acpi Yedidia Klein
2010-08-26  7:20 ` Zhang Rui
     [not found]   ` <AANLkTikuQjDQGt1Ppm5u6PPkk_-CBM7_sUL=asgAneJb@mail.gmail.com>
2010-08-27  1:30     ` Zhang Rui
2010-09-06 11:43       ` Thomas Renninger
     [not found]         ` <AANLkTikN8bbu=q2bq9N1CptKVJvZD0RVsQGtTwU-AEnE@mail.gmail.com>
     [not found]           ` <201009131657.48686.trenn@suse.de>
     [not found]             ` <AANLkTinLh6_q3n8WQJ1DWrhepqXdCeNosRZh9ByY8qVh@mail.gmail.com>
2010-09-13 18:14               ` Fwd: " Yedidia Klein
2010-09-13 19:37               ` Thomas Renninger [this message]
     [not found]                 ` <AANLkTik3oruQeYbTJgDXM6-X24X8X+fijJm0_P0_YYeg@mail.gmail.com>
2010-09-14  7:22                   ` Re : " Yedidia Klein

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=201009132137.44002.trenn@suse.de \
    --to=trenn@suse.de \
    --cc=linux-acpi@vger.kernel.org \
    --cc=yedidia@atarplpl.co.il \
    /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