linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] platform/x86: acer-wmi: add another KEY_POWER keycode
@ 2018-04-20 21:26 Antonio Rosario Intilisano
  2018-04-21 18:40 ` Gianfranco Costamagna
  0 siblings, 1 reply; 11+ messages in thread
From: Antonio Rosario Intilisano @ 2018-04-20 21:26 UTC (permalink / raw)
  To: dvhart
  Cc: andy, vger, linux-kernel, locutusofborg,
	Antonio Rosario Intilisano, Chris Chiu, Daniel Drake,
	Andy Shevchenko

    Now that we have informed the firmware that the Power Button driver is
    active, laptops such as the Acer Swift 3 will generate
    a WMI key event with code 0x87 when the power button key is
    pressed. 
    
    Add this keycode to the table so that it is converted to an appropriate
    input event.

Signed-off-by: Antonio Rosario Intilisano <antonio.intilisano@gmail.com>
Acked-by: Gianfranco Costamagna <locutusofborg@debian.org>
Cc: Chris Chiu <chiu@endlessm.com>
Cc: Daniel Drake <drake@endlessm.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.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 1be71f956d5c..8952173dd380 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -129,6 +129,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = { 	{KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} },
 	{KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} },
 	{KE_KEY, 0x86, {KEY_WLAN} },
+	{KE_KEY, 0x87, {KEY_POWER} },
 	{KE_END, 0}
 };
 
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [PATCH] platform/x86: acer-wmi: add another KEY_POWER keycode
@ 2018-04-20 21:32 Antonio Rosario Intilisano
  0 siblings, 0 replies; 11+ messages in thread
From: Antonio Rosario Intilisano @ 2018-04-20 21:32 UTC (permalink / raw)
  To: dvhart
  Cc: andy, platform-driver-x86, linux-kernel, locutusofborg,
	Antonio Rosario Intilisano, Chris Chiu, Daniel Drake,
	Andy Shevchenko

    Now that we have informed the firmware that the Power Button driver is
    active, laptops such as the Acer Swift 3 will generate
    a WMI key event with code 0x87 when the power button key is
    pressed. 
    
    Add this keycode to the table so that it is converted to an appropriate
    input event.

Signed-off-by: Antonio Rosario Intilisano <antonio.intilisano@gmail.com>
Acked-by: Gianfranco Costamagna <locutusofborg@debian.org>
Cc: Chris Chiu <chiu@endlessm.com>
Cc: Daniel Drake <drake@endlessm.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.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 1be71f956d5c..8952173dd380 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -129,6 +129,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = { 	{KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} },
 	{KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} },
 	{KE_KEY, 0x86, {KEY_WLAN} },
+	{KE_KEY, 0x87, {KEY_POWER} },
 	{KE_END, 0}
 };
 
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [PATCH] platform/x86: acer-wmi: add another KEY_POWER keycode
@ 2018-04-27 21:50 Antonio Rosario Intilisano
  2018-05-07 14:08 ` Andy Shevchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Antonio Rosario Intilisano @ 2018-04-27 21:50 UTC (permalink / raw)
  To: dvhart
  Cc: andy, platform-driver-x86, linux-kernel, locutusofborg,
	Antonio Rosario Intilisano, Chris Chiu, Daniel Drake,
	Andy Shevchenko

    Now that we have informed the firmware that the Power Button driver is
    active, laptops such as the Acer Swift 3 will generate
    a WMI key event with code 0x87 when the power button key is
    pressed. 
    
    Add this keycode to the table so that it is converted to an appropriate
    input event.

Signed-off-by: Antonio Rosario Intilisano <antonio.intilisano@gmail.com>
Acked-by: Gianfranco Costamagna <locutusofborg@debian.org>
Tested-by: Antonio Rosario Intilisano <antonio.intilisano@gmail.com>
Cc: Chris Chiu <chiu@endlessm.com>
Cc: Daniel Drake <drake@endlessm.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.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 1be71f956d5c..8952173dd380 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -129,6 +129,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = { 	{KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} },
 	{KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} },
 	{KE_KEY, 0x86, {KEY_WLAN} },
+	{KE_KEY, 0x87, {KEY_POWER} },
 	{KE_END, 0}
 };
 
-- 
2.15.1

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

end of thread, other threads:[~2018-05-07 14:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-20 21:26 [PATCH] platform/x86: acer-wmi: add another KEY_POWER keycode Antonio Rosario Intilisano
2018-04-21 18:40 ` Gianfranco Costamagna
2018-04-23 14:06   ` Andy Shevchenko
2018-04-23 14:48     ` Gianfranco Costamagna
2018-04-24 16:15       ` Andy Shevchenko
2018-04-24 17:02         ` Andy Shevchenko
2018-04-24 18:23           ` Gianfranco Costamagna
2018-04-24 18:33             ` Andy Shevchenko
2018-04-20 21:32 Antonio Rosario Intilisano
2018-04-27 21:50 Antonio Rosario Intilisano
2018-05-07 14:08 ` Andy Shevchenko

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