Skip to contentSkip to conversation

asus-nb-wmi: ignore ALS notification key code

PATCH New Viktar Vauchkevich 1 participant 1 message May 23, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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
---
 drivers/platform/x86/asus-nb-wmi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/asus-nb- renamed from drivers/platform/x86/asus-nb-wmi.c +0 -0

wmi.c
index 8fcb41e..7340566 100644

drivers/platform/x86/asus-nb-wmi.c +1 -0
@@ -256,6 +256,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
 	{ KE_KEY, 0xB5, { KEY_CALC } },
 	{ KE_KEY, 0xC4, { KEY_KBDILLUMUP } },
 	{ KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } },
+	{ KE_IGNORE, 0xC6, },  /* Ambient Light Sensor notification */
 	{ KE_END, 0},
 };
 
Signature · 1 line
1.8.2.1