All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: asus-wmi: add tablet-mode switch quirk for ASUS ProArt PX13
@ 2026-08-05 10:56 Tinoy Thomas
  0 siblings, 0 replies; only message in thread
From: Tinoy Thomas @ 2026-08-05 10:56 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: Tinoy Thomas

The ProArt PX13 (HN7306WV) is a 360-degree convertible. It exposes no
dedicated SW_TABLET_MODE input switch, but the firmware implements the
ASUS WMI lid-flip query (DSTS dev_id 0x00060062): it returns 0x10000
with the lid open and 0x10001 when the screen is folded back, and the
0xfa (NOTIFY_LID_FLIP) WMI event fires on every fold/unfold transition.

Add a DMI quirk selecting the lid-flip dev-id so the driver registers
SW_TABLET_MODE on the "Asus WMI hotkeys" input device and reports the
hinge state, matching the existing UX360 behavior.

Signed-off-by: Tinoy Thomas <yo@t69.dev>
---
 drivers/platform/x86/asus-nb-wmi.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

--- a/drivers/platform/x86/asus-nb-wmi.c	2026-08-05 05:28:53.916829859 -0500
+++ b/drivers/platform/x86/asus-nb-wmi.c	2026-08-05 05:28:53.928922114 -0500
@@ -137,6 +137,10 @@
 	.tablet_switch_mode = asus_wmi_lid_flip_devid,
 };
 
+static struct quirk_entry quirk_asus_proart_px13 = {
+	.tablet_switch_mode = asus_wmi_lid_flip_devid,
+};
+
 static struct quirk_entry quirk_asus_tablet_mode = {
 	.wmi_backlight_set_devstate = true,
 	.tablet_switch_mode = asus_wmi_lid_flip_rog_devid,
@@ -562,6 +566,15 @@
 		},
 		.driver_data = &quirk_asus_z13,
 	},
+	{
+		.callback = dmi_matched,
+		.ident = "ASUS ProArt PX13",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "HN7306WV"),
+		},
+		.driver_data = &quirk_asus_proart_px13,
+	},
 	{},
 };
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-05 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-05 10:56 [PATCH] platform/x86: asus-wmi: add tablet-mode switch quirk for ASUS ProArt PX13 Tinoy Thomas

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.