public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Keyboard/case power button events
@ 2011-09-06 21:18 Yuri DElia
  0 siblings, 0 replies; only message in thread
From: Yuri DElia @ 2011-09-06 21:18 UTC (permalink / raw)
  To: linux-acpi

Hi everyone,

I have a small but stupid issue on how the "power" (poweroff) event is
generated. Both the real power button (as in acpi/button.c) and the power
button in the keyboard (those with "media" keys) generate the same
indistinguishable event.

This is the event I get with both:

button/power PBTN 00000080 00000000

As a result, I cannot remap the keyboard event without also disabling the
handler for the real power button. I obviously want both.

Can I assign a different code, or string, or whatever (as long as I can match
it in userland) to either the real or keyboard button to distinguish the two?

Any help would be greatly appreciated.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-06 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-06 21:18 Keyboard/case power button events Yuri DElia

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