ACK: [SRU][Xenial][PATCH 1/1] UBUNTU: SAUCE: platform/x86: acer-wmi: add another KEY_POWER keycode

Kleber Souza kleber.souza at canonical.com
Mon Apr 30 16:02:29 UTC 2018


On 04/27/18 20:05, Joseph Salisbury wrote:
> From: Antonio Rosario Intilisano <antonio.intilisano at gmail.com>
> 
> BugLink: http://bugs.launchpad.net/bugs/1766054
> 
> 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 at gmail.com>
> Acked-by: Gianfranco Costamagna <locutusofborg at debian.org>
> Cc: Chris Chiu <chiu at endlessm.com>
> Cc: Daniel Drake <drake at endlessm.com>
> Cc: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> Signed-off-by: Joseph Salisbury <joseph.salisbury at canonical.com>

Acked-by: Kleber Sacilotto de Souza <kleber.souza at canonical.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 b2cdc1a..6894cdec 100644
> --- a/drivers/platform/x86/acer-wmi.c
> +++ b/drivers/platform/x86/acer-wmi.c
> @@ -128,6 +128,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = {
>  	{KE_KEY, KEY_TOUCHPAD_OFF, {KEY_TOUCHPAD_OFF} },
>  	{KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} },
>  	{KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} },
> +	{KE_KEY, 0x87, {KEY_POWER} },
>  	{KE_END, 0}
>  };
>  
> 





More information about the kernel-team mailing list