public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] acer-wmi: ignore missing Aspire 5741G keys
@ 2012-03-06 12:33 Sergey Senozhatsky
  2012-03-09  4:17 ` joeyli
  0 siblings, 1 reply; 13+ messages in thread
From: Sergey Senozhatsky @ 2012-03-06 12:33 UTC (permalink / raw)
  To: Joey Lee; +Cc: Matthew Garrett, platform-driver-x86, linux-kernel

 acer-wmi: ignore missing Aspire 5741G keys

Ignore Aspire's 5741G:
 KEY_PREVIOUSSONG
 KEY_NEXTSONG
 KEY_PLAYPAUSE
 KEY_STOP
 KEY_VOLUMEDOWN

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>

---

 drivers/platform/x86/acer-wmi.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index b848277..d8a67cc 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -107,11 +107,16 @@ static const struct key_entry acer_wmi_keymap[] = {
 	{KE_KEY, 0x24, {KEY_PROG4} },    /* Social networking_Key */
 	{KE_IGNORE, 0x41, {KEY_MUTE} },
 	{KE_IGNORE, 0x42, {KEY_PREVIOUSSONG} },
+	{KE_IGNORE, 0x4d, {KEY_PREVIOUSSONG} },	
 	{KE_IGNORE, 0x43, {KEY_NEXTSONG} },
+	{KE_IGNORE, 0x4e, {KEY_NEXTSONG} },
 	{KE_IGNORE, 0x44, {KEY_PLAYPAUSE} },
+	{KE_IGNORE, 0x4f, {KEY_PLAYPAUSE} },
 	{KE_IGNORE, 0x45, {KEY_STOP} },
+	{KE_IGNORE, 0x50, {KEY_STOP} },
 	{KE_IGNORE, 0x48, {KEY_VOLUMEUP} },
 	{KE_IGNORE, 0x49, {KEY_VOLUMEDOWN} },
+	{KE_IGNORE, 0x4a, {KEY_VOLUMEDOWN} },
 	{KE_IGNORE, 0x61, {KEY_SWITCHVIDEOMODE} },
 	{KE_IGNORE, 0x62, {KEY_BRIGHTNESSUP} },
 	{KE_IGNORE, 0x63, {KEY_BRIGHTNESSDOWN} },


^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [PATCH] acer-wmi: add Aspire 5741G touchpad toggle key
@ 2012-11-26 18:35 Sergey Senozhatsky
  2012-11-27  6:31 ` joeyli
  0 siblings, 1 reply; 13+ messages in thread
From: Sergey Senozhatsky @ 2012-11-26 18:35 UTC (permalink / raw)
  To: Joey Lee; +Cc: Matthew Garrett, platform-driver-x86, linux-kernel

Add Aspire 5741G KEY_TOUCHPAD_TOGGLE to wmi keymap, preventing
"acer_wmi: Unknown key number - 0x85" error.


Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>

---

 drivers/platform/x86/acer-wmi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 934d861..9a6ee9a 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -127,6 +127,7 @@ static const struct key_entry acer_wmi_keymap[] = {
 	{KE_IGNORE, 0x81, {KEY_SLEEP} },
 	{KE_KEY, 0x82, {KEY_TOUCHPAD_TOGGLE} },	/* Touch Pad On/Off */
 	{KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} },
+	{KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} },
 	{KE_END, 0}
 };


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

end of thread, other threads:[~2012-11-27  7:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 12:33 [PATCH] acer-wmi: ignore missing Aspire 5741G keys Sergey Senozhatsky
2012-03-09  4:17 ` joeyli
2012-03-12 10:07   ` [PATCH] acer-wmi: ignore missing Aspire 5741G keys (checkpatched) Sergey Senozhatsky
2012-03-13  2:58     ` joeyli
2012-03-12 10:14   ` [PATCH] acer-wmi: ignore missing Aspire 5741G keys Sergey Senozhatsky
2012-03-12 10:19   ` Sergey Senozhatsky
2012-03-13  3:04     ` joeyli
2012-03-29  9:53       ` [PATCH] acer-wmi: add Aspire 5741G touchpad toggle key Sergey Senozhatsky
2012-03-30 10:25         ` joeyli
2012-03-29  9:57       ` [PATCH] acer-wmi: ignore missing Aspire 5741G keys Sergey Senozhatsky
  -- strict thread matches above, loose matches on Subject: below --
2012-11-26 18:35 [PATCH] acer-wmi: add Aspire 5741G touchpad toggle key Sergey Senozhatsky
2012-11-27  6:31 ` joeyli
2012-11-27  7:36   ` Sergey Senozhatsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox