All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: asus_wmi: Unknown key code 0x6d
@ 2026-03-13 21:00 Jonathan Grant
  2026-03-13 21:45 ` Mario Limonciello
  0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Grant @ 2026-03-13 21:00 UTC (permalink / raw)
  To: platform-driver-x86, luke; +Cc: hdegoede

Dear Luke D. Jones 

I made the below patch after seeing the following:

asus_wmi: Unknown key code 0x6d

It is just before my laptop overheats and powers off. (eg if I do make -j8)

May I ask if it could be reviewed?

Kind regards
Jonathan


diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 7c0915e097ba..06438b4e7a17 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -70,6 +70,7 @@ module_param(fnlock_default, bool, 0444);
 #define NOTIFY_KBD_TTP			0xae
 #define NOTIFY_LID_FLIP			0xfa
 #define NOTIFY_LID_FLIP_ROG		0xbd
+#define NOTIFY_POWER_OFF		0x6d
 
 #define ASUS_WMI_FNLOCK_BIOS_DISABLED	BIT(0)
 
@@ -4596,6 +4597,11 @@ static void asus_wmi_handle_event_code(int code, struct asus_wmi *asus)
 	if (is_display_toggle(code) && asus->driver->quirks->no_display_toggle)
 		return;
 
+	if (code == NOTIFY_POWER_OFF) {
+		pr_info("Power off\n");
+		return;
+	}
+
 	if (!sparse_keymap_report_event(asus->inputdev, code,
 					key_value, autorelease))
 		pr_info("Unknown key code 0x%x\n", code);

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-18  1:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13 21:00 [PATCH]: asus_wmi: Unknown key code 0x6d Jonathan Grant
2026-03-13 21:45 ` Mario Limonciello
2026-03-16 12:49   ` [PATCH v2] platform/x86: asus-wmi: log thermal notification event Jonathan Grant
2026-03-16 15:24     ` Mario Limonciello
2026-03-17 21:30       ` [PATCH v3] " Jonathan Grant
2026-03-18  1:40         ` Mario Limonciello
2026-03-17  0:53     ` [PATCH v2] " kernel test robot
2026-03-17 17:33     ` kernel test robot
2026-03-17 20:30     ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.