linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] eeepc-wmi: Add support for T101MT "Express Gate" key
@ 2011-03-23 19:39 Seth Forshee
  2011-03-24  7:33 ` Corentin Chary
  0 siblings, 1 reply; 41+ messages in thread
From: Seth Forshee @ 2011-03-23 19:39 UTC (permalink / raw)
  To: Corentin Chary
  Cc: Matthew Garrett, acpi4asus-user, platform-driver-x86, linux-kernel

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
---

This button is unusual. On press it emits scanocde 0xe4, on release
0xe5, and when held for a few seconds it begins emitting 0xea about
twice per second. I chose to handle only the press event in order to
make it behave like the other hotkeys.

Probably the closest thing to the intended function of this button
would be to alternate the display orientation between portrait and
landscape, but since there doesn't appear to be a keycode defined for
that function I went with KEY_PROG2. I'm open to other suggestions
however.

 drivers/platform/x86/eeepc-wmi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/eeepc-wmi.c b/drivers/platform/x86/eeepc-wmi.c
index 0ddc434..d761f60 100644
--- a/drivers/platform/x86/eeepc-wmi.c
+++ b/drivers/platform/x86/eeepc-wmi.c
@@ -70,6 +70,7 @@ static const struct key_entry eeepc_wmi_keymap[] = {
 	{ KE_KEY, 0xcc, { KEY_SWITCHVIDEOMODE } },
 	{ KE_KEY, 0xe0, { KEY_PROG1 } }, /* Task Manager */
 	{ KE_KEY, 0xe1, { KEY_F14 } }, /* Change Resolution */
+	{ KE_KEY, 0xe4, { KEY_PROG2 } }, /* Rotate Display */
 	{ KE_KEY, 0xe9, { KEY_BRIGHTNESS_ZERO } },
 	{ KE_KEY, 0xeb, { KEY_CAMERA_ZOOMOUT } },
 	{ KE_KEY, 0xec, { KEY_CAMERA_UP } },
-- 
1.7.4.1


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

end of thread, other threads:[~2011-03-30  7:46 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-23 19:39 [PATCH] eeepc-wmi: Add support for T101MT "Express Gate" key Seth Forshee
2011-03-24  7:33 ` Corentin Chary
2011-03-24 13:14   ` Seth Forshee
2011-03-24 13:26     ` Corentin Chary
2011-03-24 13:27     ` Chris Bagwell
2011-03-24 13:32       ` Chris Bagwell
2011-03-24 13:37       ` Seth Forshee
2011-03-24 13:40       ` Corentin Chary
2011-03-24 14:00         ` Chris Bagwell
2011-03-24 19:57           ` Seth Forshee
2011-03-24 20:03             ` [PATCH 1/2] asus-wmi: Add callback for hotkey filtering Seth Forshee
2011-03-24 20:03             ` [PATCH 2/2] eeepc-wmi: Add support for T101MT Home/Express Gate key Seth Forshee
2011-03-24 20:09               ` Seth Forshee
2011-03-25 13:28               ` Corentin Chary
2011-03-25 13:53                 ` Seth Forshee
2011-03-25 14:05                   ` Corentin Chary
2011-03-25 14:53                     ` Chris Bagwell
2011-03-25 15:13                       ` Seth Forshee
2011-03-25 15:43                       ` Corentin Chary
2011-03-25 16:17                         ` Seth Forshee
2011-03-25 16:14                     ` Dmitry Torokhov
2011-03-25 16:28                       ` Seth Forshee
2011-03-25 17:03                         ` Dmitry Torokhov
2011-03-25 18:58                           ` Seth Forshee
2011-03-27 17:13                             ` Dmitry Torokhov
2011-03-27 18:32                               ` Chris Bagwell
2011-03-27 19:11                                 ` Dmitry Torokhov
2011-03-28 13:46                                   ` Seth Forshee
2011-03-28 14:14                                     ` Corentin Chary
2011-03-28 18:33                                       ` Seth Forshee
2011-03-28 18:33                                         ` [PATCH v3 1/3] asus-wmi: Add callback for hotkey filtering Seth Forshee
2011-03-28 18:33                                         ` [PATCH v3 2/3] eeepc-wmi: Add support for T101MT Home/Express Gate key Seth Forshee
2011-03-29 12:29                                           ` Corentin Chary
2011-03-29 13:42                                             ` Seth Forshee
2011-03-29 13:47                                             ` Matthew Garrett
2011-03-30  7:46                                               ` Corentin Chary
2011-03-28 18:33                                         ` [PATCH v3 3/3] asus-wmi: Enable autorepeat for hotkey input device Seth Forshee
2011-03-29  6:33                                         ` [PATCH 2/2] eeepc-wmi: Add support for T101MT Home/Express Gate key Dmitry Torokhov
2011-03-25 16:07           ` [PATCH] eeepc-wmi: Add support for T101MT "Express Gate" key Dmitry Torokhov
2011-03-25 16:08             ` Corentin Chary
2011-03-25 16:05       ` Dmitry Torokhov

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).