Skip to content

Commit f441d66

Browse files
jwrdegoedeandy-shev
authored andcommitted
platform/x86: dell-wmi: Ignore keyboard attached / detached events
Ignore events with a type of 0x0011 and a code of 0xfff2 / 0xfff3, this silences the following messages being logged when the keyboard is detached / attached on a Dell Venue 11 Pro 7130: [ 63.621953] dell_wmi: Unknown key with type 0x0011 and code 0xfff2 pressed [ 70.240558] dell_wmi: Unknown key with type 0x0011 and code 0xfff3 pressed Note SW_TABLET_MODE is already reported through the intel_vbtn driver on this and other Dell devices, so dell_wmi should not report this too, to avoid duplicate events. Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 257e03a commit f441d66

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/platform/x86/dell-wmi.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,16 @@ static const struct key_entry dell_wmi_keymap_type_0011[] = {
310310
/* Battery inserted */
311311
{ KE_IGNORE, 0xfff1, { KEY_RESERVED } },
312312

313+
/*
314+
* Detachable keyboard detached / undocked
315+
* Note SW_TABLET_MODE is already reported through the intel_vbtn
316+
* driver for this, so we ignore it.
317+
*/
318+
{ KE_IGNORE, 0xfff2, { KEY_RESERVED } },
319+
320+
/* Detachable keyboard attached / docked */
321+
{ KE_IGNORE, 0xfff3, { KEY_RESERVED } },
322+
313323
/* Keyboard backlight level changed */
314324
{ KE_IGNORE, KBD_LED_OFF_TOKEN, { KEY_RESERVED } },
315325
{ KE_IGNORE, KBD_LED_ON_TOKEN, { KEY_RESERVED } },

0 commit comments

Comments
 (0)