From: Hector Martin <hector@marcansoft.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: [PATCH] input: add Hold on/off and volume event keys
Date: Sun, 12 Jul 2009 17:33:37 +0200 [thread overview]
Message-ID: <4A5A0251.8010803@marcansoft.com> (raw)
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
next reply other threads:[~2009-07-12 15:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-12 15:33 Hector Martin [this message]
2009-07-13 3:44 ` [PATCH] input: add Hold on/off and volume event keys Dmitry Torokhov
2009-07-13 9:59 ` Hector Martin
2009-07-13 16:52 ` Dmitry Torokhov
2009-07-13 22:56 ` Hector Martin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A5A0251.8010803@marcansoft.com \
--to=hector@marcansoft.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).