Skip to contentSkip to conversation

hp-wmi: Add support for SMBus hotkeys

PATCH Kyle Evans 1 participant 1 message Jan 31, 2013 x86 platform drivers

lore
Share & tools
lore

Kyle Evans

author
#0 lore raw

Several models of HP laptops using the same DSDT have hotkey buttons that do not work until the EC is configured to enable them.

---
 drivers/platform/x86/hp-wmi.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/platform/x86/hp-wmi.c +4 -0
index 1dde7ac..90938d6 100644
@@ -137,6 +137,7 @@ static const struct key_entry hp_wmi_keymap[] = {
 	{ KE_KEY, 0x2142, { KEY_MEDIA } },
 	{ KE_KEY, 0x213b, { KEY_INFO } },
 	{ KE_KEY, 0x2169, { KEY_DIRECTION } },
+	{ KE_KEY, 0x216a, { KEY_SETUP } },
 	{ KE_KEY, 0x231b, { KEY_HELP } },
 	{ KE_END, 0 }
 };
@@ -884,6 +885,9 @@ static int __init hp_wmi_init(void)
 		err = hp_wmi_input_setup();
 		if (err)
 			return err;
+		
+		//Enable magic for hotkeys that run on the SMBus
+		ec_write(0xe6,0x6e);
 	}
 
 	if (bios_capable) {
Signature · 1 line
1.7.3.4