[PATCH] input: add Hold on/off and volume event keys

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

 



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@xxxxxxxxxxxxxx>
--- 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@xxxxxxxxxxxxxx)
Public Key: http://www.marcansoft.com/marcan.asc

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

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux