linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] input: add Hold on/off and volume event keys
@ 2009-07-12 15:33 Hector Martin
  2009-07-13  3:44 ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: Hector Martin @ 2009-07-12 15:33 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input

Recent Acer laptops produce key events when the Hold button on the media
control panel is activated and deactivated. These events are relevant
for software that wishes to interact with the media panel beyond just
using the media control keys.

There's also a volume notification key event that replaces the usual
volume-up/down events when the panel is in software-controlled mode.
Software can react to this to detect volume level changes instead of
polling.

Signed-off-by: Hector Martin <hector@marcansoft.com>
--- linux-2.6.30/include/linux/input.h.old	2009-07-12 17:22:53.000000000 +0200
+++ linux-2.6.30/include/linux/input.h	2009-07-12 17:25:01.000000000 +0200
@@ -543,6 +543,10 @@
 #define KEY_CONTEXT_MENU	0x1b6	/* GenDesc - system context menu */
 #define KEY_MEDIA_REPEAT	0x1b7	/* Consumer - transport control */
 
+#define KEY_VOLUME_EVENT	0x1b8	/* Generic volume change event */
+#define KEY_HOLDON		0x1b9	
+#define KEY_HOLDOFF		0x1ba
+
 #define KEY_DEL_EOL		0x1c0
 #define KEY_DEL_EOS		0x1c1
 #define KEY_INS_LINE		0x1c2

-- 
Hector Martin (hector@marcansoft.com)
Public Key: http://www.marcansoft.com/marcan.asc


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-13 22:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-12 15:33 [PATCH] input: add Hold on/off and volume event keys Hector Martin
2009-07-13  3:44 ` Dmitry Torokhov
2009-07-13  9:59   ` Hector Martin
2009-07-13 16:52     ` Dmitry Torokhov
2009-07-13 22:56       ` Hector Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).