platform/x86: dell-wmi: Ignore new rfkill and fn-lock events
PATCH v2 1/1 platform/x86: dell-wmi: Ignore new rfkill and fn-lock events
There are two new events generated by dell-wmi, rfkill and fn-lock, from Dell Systems.
When Fn-lock hotkey gets pressed to switch to function mode:
[85951.591542] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85951.591546] dell_wmi: Unknown key with type 0x0010 and code 0x0000
pressed
When Fn-lock hotkey gets pressed to switch to multimedia mode:
[85956.667686] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85956.667690] dell_wmi: Unknown key with type 0x0010 and code 0x0001
pressed
When radio hotkey gets pressed:
[85974.430220] dell_wmi: Unknown key with type 0x0010 and code 0xe008
pressed
These events are for notification purpose, so we can ignore them.
This patch is tested on XPS 9370.
---
v2: Reorder alphabetically.
More detailed changelog.
drivers/platform/x86/dell-wmi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/platform/x86/dell-wmi.c +14 -0
@@ -261,6 +261,12 @@ static const u16 bios_to_linux_keycode[256] = {* override them. */ static const struct key_entry dell_wmi_keymap_type_0010[] = { +/* Fn-lock switched to function keys */ + {KE_IGNORE ,0x0 , {KEY_RESERVED } }, + +/* Fn-lock switched to multimedia keys */ + {KE_IGNORE ,0x1 , {KEY_RESERVED } }, +/* Mic mute */ {KE_KEY ,0x150 , {KEY_MICMUTE } },
@@ -296,6 +302,14 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = { { KE_KEY, 0x851, { KEY_PROG2 } }, { KE_KEY, 0x852, { KEY_PROG3 } }, +/* +* Radio disable (notify only -- there is no model for which the +* WMI event is supposed to trigger an action). +*/ + { KE_IGNORE, 0xe008, { KEY_RFKILL } }, + +/* Fn-lock */ + { KE_IGNORE, 0xe035, { KEY_RESERVED } }, };/*
Signature · 1 line
2.17.0
Quoted 16 lines · On Friday 20 April 2018 15:26:48 Kai-Heng Feng wrote:
There are two new events generated by dell-wmi, rfkill and fn-lock, from Dell Systems.
When Fn-lock hotkey gets pressed to switch to function mode:
[85951.591542] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85951.591546] dell_wmi: Unknown key with type 0x0010 and code 0x0000pressed
When Fn-lock hotkey gets pressed to switch to multimedia mode:
[85956.667686] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85956.667690] dell_wmi: Unknown key with type 0x0010 and code 0x0001pressed
When radio hotkey gets pressed:
Quoted 8 lines
[85974.430220] dell_wmi: Unknown key with type 0x0010 and code 0xe008pressed
These events are for notification purpose, so we can ignore them.
This patch is tested on XPS 9370.
Signed-off-by Kai-Heng Feng <[email protected]>
Quoted 39 lines
---
v2: Reorder alphabetically.
More detailed changelog.drivers/platform/x86/dell-wmi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)drivers/platform/x86/dell-wmi.c +14
-0@@ -261,6 +261,12 @@ static const u16 bios_to_linux_keycode[256] = {* override them. */ static const struct key_entry dell_wmi_keymap_type_0010[] = { +/* Fn-lock switched to function keys */ + {KE_IGNORE ,0x0 , {KEY_RESERVED } }, + +/* Fn-lock switched to multimedia keys */ + {KE_IGNORE ,0x1 , {KEY_RESERVED } }, +/* Mic mute */ {KE_KEY ,0x150 , {KEY_MICMUTE } },@@ -296,6 +302,14 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = { { KE_KEY, 0x851, { KEY_PROG2 } }, { KE_KEY, 0x852, { KEY_PROG3 } }, +/* +* Radio disable (notify only -- there is no model for which the +* WMI event is supposed to trigger an action). +*/ + { KE_IGNORE, 0xe008, { KEY_RFKILL } }, + +/* Fn-lock */ + { KE_IGNORE, 0xe035, { KEY_RESERVED } }, };/*
Signature · 2 lines
Pali Rohár [email protected]
[email protected]
Reviewed-byQuoted 32 lines
-----Original Message-----
From: Pali Rohár [mailto:[email protected]]
Sent: Friday, April 20, 2018 2:29 AM
To: Kai-Heng Feng
Cc: [email protected]; [email protected]; [email protected]; Limonciello, Mario; [email protected]; linux- [email protected]
Subject: Re: [PATCH v2] platform/x86: dell-wmi: Ignore new rfkill and fn-lock eventsQuoted 19 lines · On Friday 20 April 2018 15:26:48 Kai-Heng Feng wrote:
There are two new events generated by dell-wmi, rfkill and fn-lock, from Dell Systems.
When Fn-lock hotkey gets pressed to switch to function mode:
[85951.591542] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85951.591546] dell_wmi: Unknown key with type 0x0010 and code 0x0000pressed
When Fn-lock hotkey gets pressed to switch to multimedia mode:
[85956.667686] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85956.667690] dell_wmi: Unknown key with type 0x0010 and code 0x0001pressed
When radio hotkey gets pressed:
[85974.430220] dell_wmi: Unknown key with type 0x0010 and code 0xe008pressed
Quoted 7 lines
Quoted 5 lines
These events are for notification purpose, so we can ignore them.
This patch is tested on XPS 9370.
Signed-off-by Kai-Heng Feng <[email protected]>Reviewed-by Pali Rohár <[email protected]>
Quoted 45 lines
drivers/platform/x86/dell-wmi.c static const struct key_entry
Quoted 26 lines
---
v2: Reorder alphabetically.
More detailed changelog.drivers/platform/x86/dell-wmi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)drivers/platform/x86/dell-wmi.c +6
-0@@ -261,6 +261,12 @@ static const u16 bios_to_linux_keycode[256] = {* override them. */ static const struct key_entry dell_wmi_keymap_type_0010[] = { +/* Fn-lock switched to function keys */ + {KE_IGNORE ,0x0 , {KEY_RESERVED } }, + +/* Fn-lock switched to multimedia keys */ + {KE_IGNORE ,0x1 , {KEY_RESERVED } }, +/* Mic mute */ {KE_KEY ,0x150 , {KEY_MICMUTE } },@@ -296,6 +302,14 @@ static const struct key_entrydell_wmi_keymap_type_0010[] = {
Quoted 4 lines
drivers/platform/x86/dell-wmi.c +1
-0{ KE_KEY, 0x851, { KEY_PROG2 } }, { KE_KEY, 0x852, { KEY_PROG3 } }, +/* drivers/platform/x86/dell-wmi.c static const struct key_entry dell_wmi_keymap_type_0010[] = { · line 315
Quoted 10 lines
drivers/platform/x86/dell-wmi.c +7
-0+* Radio disable (notify only -- there is no model for which the +* WMI event is supposed to trigger an action). +*/ + { KE_IGNORE, 0xe008, { KEY_RFKILL } }, + +/* Fn-lock */ + { KE_IGNORE, 0xe035, { KEY_RESERVED } }, };/* --
Pali Rohár
[email protected]
Quoted 34 lines · at 10:30 PM, [email protected] wrote:
Quoted 34 lines
-----Original Message-----
From: Pali Rohár [mailto:[email protected]]
Sent: Friday, April 20, 2018 2:29 AM
To: Kai-Heng Feng
Cc: [email protected]; [email protected]; [email protected]; Limonciello, Mario; [email protected]; linux- [email protected]
Subject: Re: [PATCH v2] platform/x86: dell-wmi: Ignore new rfkill and fn-lock eventsQuoted 21 lines · On Friday 20 April 2018 15:26:48 Kai-Heng Feng wrote:
There are two new events generated by dell-wmi, rfkill and fn-lock, from Dell Systems.
When Fn-lock hotkey gets pressed to switch to function mode:
[85951.591542] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85951.591546] dell_wmi: Unknown key with type 0x0010 and code 0x0000pressed
When Fn-lock hotkey gets pressed to switch to multimedia mode:
[85956.667686] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85956.667690] dell_wmi: Unknown key with type 0x0010 and code 0x0001pressed
When radio hotkey gets pressed:
[85974.430220] dell_wmi: Unknown key with type 0x0010 and code 0xe008pressed
These events are for notification purpose, so we can ignore them.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
This patch is tested on XPS 9370.
Signed-off-by Kai-Heng Feng <[email protected]>Reviewed-by Pali Rohár <[email protected]>Reviewed-by Mario Limonciello <[email protected]>
Looks like this patch does not get included yet.
Kai-Heng
Quoted 45 lines
Quoted 45 lines
drivers/platform/x86/dell-wmi.c static const struct key_entry
Quoted 26 lines
---
v2: Reorder alphabetically.
More detailed changelog.drivers/platform/x86/dell-wmi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)drivers/platform/x86/dell-wmi.c +6
-0@@ -261,6 +261,12 @@ static const u16 bios_to_linux_keycode[256] = {* override them. */ static const struct key_entry dell_wmi_keymap_type_0010[] = { +/* Fn-lock switched to function keys */ + {KE_IGNORE ,0x0 , {KEY_RESERVED } }, + +/* Fn-lock switched to multimedia keys */ + {KE_IGNORE ,0x1 , {KEY_RESERVED } }, +/* Mic mute */ {KE_KEY ,0x150 , {KEY_MICMUTE } },@@ -296,6 +302,14 @@ static const struct key_entrydell_wmi_keymap_type_0010[] = {
Quoted 4 lines
drivers/platform/x86/dell-wmi.c +1
-0{ KE_KEY, 0x851, { KEY_PROG2 } }, { KE_KEY, 0x852, { KEY_PROG3 } }, +/* drivers/platform/x86/dell-wmi.c static const struct key_entry dell_wmi_keymap_type_0010[] = { · line 315
Quoted 10 lines
drivers/platform/x86/dell-wmi.c +7
-0+* Radio disable (notify only -- there is no model for which the +* WMI event is supposed to trigger an action). +*/ + { KE_IGNORE, 0xe008, { KEY_RFKILL } }, + +/* Fn-lock */ + { KE_IGNORE, 0xe035, { KEY_RESERVED } }, };/* --
Pali Rohár
[email protected]
Quoted 6 lines · Kai Heng Feng
Quoted 2 lines · at 10:30 PM, [email protected] wrote:
Quoted 1 line
Reviewed-by Pali Rohár <[email protected]>Reviewed-by Mario Limonciello <[email protected]>Looks like this patch does not get included yet.
Yep. It also is missed in our patchwork or I mistakenly mark it with some irrelevant state. Sorry for that.
Please, resend with all tags applied.
Signature · 2 lines
With Best Regards, Andy Shevchenko