Skip to content

Commit ec61f0b

Browse files
kuu-rtjwrdegoede
authored andcommitted
platform/x86: dell-wmi-base: Handle META key Lock/Unlock events
Some Alienware devices have a key that locks/unlocks the Meta key. This key triggers a WMI event that should be ignored by the kernel, as it's handled by internally the firmware. There is no known way of changing this default behavior. The firmware would lock/unlock the Meta key, regardless of how the event is handled. Tested on an Alienware x15 R1. Signed-off-by: Kurt Borja <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Acked-by: Pali Rohár <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent a36b8b8 commit ec61f0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/platform/x86/dell/dell-wmi-base.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ static const struct dmi_system_id dell_wmi_smbios_list[] __initconst = {
8080
static const struct key_entry dell_wmi_keymap_type_0000[] = {
8181
{ KE_IGNORE, 0x003a, { KEY_CAPSLOCK } },
8282

83+
/* Meta key lock */
84+
{ KE_IGNORE, 0xe000, { KEY_RIGHTMETA } },
85+
86+
/* Meta key unlock */
87+
{ KE_IGNORE, 0xe001, { KEY_RIGHTMETA } },
88+
8389
/* Key code is followed by brightness level */
8490
{ KE_KEY, 0xe005, { KEY_BRIGHTNESSDOWN } },
8591
{ KE_KEY, 0xe006, { KEY_BRIGHTNESSUP } },

0 commit comments

Comments
 (0)