Keyboard/case power button events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux