From: Tinoy Thomas <yo@t69.dev>
To: platform-driver-x86@vger.kernel.org
Cc: Tinoy Thomas <yo@t69.dev>
Subject: [PATCH] platform/x86: asus-wmi: add tablet-mode switch quirk for ASUS ProArt PX13
Date: Wed, 5 Aug 2026 05:56:18 -0500 [thread overview]
Message-ID: <20260805105618.30736-1-yo@t69.dev> (raw)
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,
+ },
{},
};
reply other threads:[~2026-08-05 10:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260805105618.30736-1-yo@t69.dev \
--to=yo@t69.dev \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.