Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3aabf444 authored by Viktar Vauchkevich's avatar Viktar Vauchkevich Committed by Matthew Garrett
Browse files

asus-nb-wmi: ignore ALS notification key code



Ignore Ambient Light Sensor notification key code 0xC6 found in ASUS UX31a.
When the illuminance changes dmesg shows:
[10814.939979] asus_wmi: Unknown key c6 pressed

Signed-off-by: default avatarViktar Vauchkevich <victorenator@gmail.com>
Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
parent 0ed60654
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -256,6 +256,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
	{ KE_KEY, 0xB5, { KEY_CALC } },
	{ KE_KEY, 0xB5, { KEY_CALC } },
	{ KE_KEY, 0xC4, { KEY_KBDILLUMUP } },
	{ KE_KEY, 0xC4, { KEY_KBDILLUMUP } },
	{ KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } },
	{ KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } },
	{ KE_IGNORE, 0xC6, },  /* Ambient Light Sensor notification */
	{ KE_END, 0},
	{ KE_END, 0},
};
};