[PATCH] platform/x86: asus-nb-wmi: add tablet mode quirk for ROG Flow X13 GV302X

Nikolay Plastinin via B4 Relay posted 1 patch 19 hours ago
drivers/platform/x86/asus-nb-wmi.c | 10 ++++++++++
1 file changed, 10 insertions(+)
[PATCH] platform/x86: asus-nb-wmi: add tablet mode quirk for ROG Flow X13 GV302X
Posted by Nikolay Plastinin via B4 Relay 19 hours ago
From: Nikolay Plastinin <plaztininikolai@gmail.com>

The 2023 ROG Flow X13 (GV302X*) is a 360-degree convertible like the
GV301, but the existing "GV301" DMI entry does not match it, so the
driver does not register SW_TABLET_MODE and the desktop does not switch
to tablet mode when the screen is folded back.

With asus_nb_wmi.tablet_mode_sw=3 (lid-flip-rog) the "Asus WMI hotkeys"
input device reports SW_TABLET_MODE on every fold and unfold, so apply
quirk_asus_tablet_mode to GV302X* too. Apart from the tablet switch this
quirk is the same as quirk_asus_unknown, which these models get today.

DMI product name of the tested machine: "ROG Flow X13 GV302XV_GV302XV".

Tested on GV302XV.

Signed-off-by: Nikolay Plastinin <plaztininikolai@gmail.com>
---
 drivers/platform/x86/asus-nb-wmi.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
index da1ddd601..3b0f3346d 100644
--- a/drivers/platform/x86/asus-nb-wmi.c
+++ b/drivers/platform/x86/asus-nb-wmi.c
@@ -503,6 +503,16 @@ static const struct dmi_system_id asus_quirks[] = {
 		},
 		.driver_data = &quirk_asus_tablet_mode,
 	},
+	{
+		.callback = dmi_matched,
+		.ident = "ASUS ROG FLOW X13",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			/* Match GV302X* */
+			DMI_MATCH(DMI_PRODUCT_NAME, "GV302X"),
+		},
+		.driver_data = &quirk_asus_tablet_mode,
+	},
 	{
 		.callback = dmi_matched,
 		.ident = "ASUS ROG FLOW X16",

---
base-commit: f475845eaf3d749114a63270bf2efea459e14dd2
change-id: 20260924-gv302-tablet-e27e313030c4

Best regards,
-- 
Nikolay Plastinin <plaztininikolai@gmail.com>
Re: [PATCH] platform/x86: asus-nb-wmi: add tablet mode quirk for ROG Flow X13 GV302X
Posted by Николай Пластинин 7 hours ago
чт, 24 сент. 2026 г. в 01:48, Nikolay Plastinin via B4 Relay
<devnull+plaztininikolai.gmail.com@kernel.org>:
This patch was prepared with the help of an AI assistant (Assisted-by: LLM);
I reviewed it and tested it on my GV302XV. Happy to resend with the tag
if preferred.