Messages in this thread Patch in this message | | | Date | Sun, 26 Feb 2006 16:07:30 +0000 | From | Matthew Garrett <> | Subject | Re: Extra keycodes |
| |
On Fri, Feb 24, 2006 at 11:00:58PM -0500, Dmitry Torokhov wrote:
> Just post a patch adding it to input.h and we'll discuss... Who is intended > user? What interface is expected to be used (evdev)?
Patch included. We have code to pop up battery information in gnome-power-manager in response to this key being pressed, and evdev is the current interface for getting the keypress event.
diff --git a/include/linux/input.h b/include/linux/input.h index 3c58233..1714630 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -344,6 +344,8 @@ struct input_absinfo { #define KEY_SAVE 234 #define KEY_DOCUMENTS 235 +#define KEY_BATTERY 236 + #define KEY_UNKNOWN 240 #define BTN_MISC 0x100
-- Matthew Garrett | mjg59@srcf.ucam.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |