From: bugzilla-daemon@kernel.org
To: platform-driver-x86@vger.kernel.org
Subject: [Bug 220945] New: ASUS Q405UA requires tablet_mode_sw=2 for proper tablet mode detection
Date: Mon, 05 Jan 2026 00:48:57 +0000 [thread overview]
Message-ID: <bug-220945-215701@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=220945
Bug ID: 220945
Summary: ASUS Q405UA requires tablet_mode_sw=2 for proper
tablet mode detection
Product: Drivers
Version: 2.5
Kernel Version: 6.17.12-300.fc43.x86_64
Hardware: Intel
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Platform_x86
Assignee: drivers_platform_x86@kernel-bugs.osdl.org
Reporter: andy.r.blank@gmail.com
Regression: No
Created attachment 309126
--> https://bugzilla.kernel.org/attachment.cgi?id=309126&action=edit
Terminal output for uname, dmidecode, dmesg, input devices, & evtest
The ASUS Q405UA 2-in-1 convertible laptop does not properly expose the
SW_TABLET_MODE switch with the default tablet_mode_sw=-1 (auto-detect) setting
in the asus-nb-wmi driver.
DMI Information: Product Q405UA, Board Q405UA, BIOS Q405UA.308, Chassis Type 31
(Convertible)
CURRENT BEHAVIOR: With default settings (tablet_mode_sw=-1), no SW_TABLET_MODE
switch is exposed. The Embedded Controller (EC) correctly disables the keyboard
when folding past 180 degrees. KEY_PROG2 events are generated on hinge
transitions via /dev/input/event14 (Asus WMI hotkeys). Touchpad remains active
in tablet mode because no tablet mode switch is available for userspace.
EXPECTED BEHAVIOR: SW_TABLET_MODE switch should be automatically exposed.
Tablet mode state should change when laptop is folded past 180 degrees.
Userspace (libinput/KDE/GNOME) should be able to automatically disable touchpad
in tablet mode.
WORKAROUND: Setting tablet_mode_sw=2 (lid-flip detection) in the asus-nb-wmi
module parameters properly exposes the SW_TABLET_MODE switch and resolves the
issue. Create /etc/modprobe.d/asus-nb-wmi.conf with: options asus_nb_wmi
tablet_mode_sw=2
PROPOSED SOLUTION: Add a DMI quirk for the ASUS Q405UA to automatically set
tablet_mode_sw=2, similar to other models in the asus-nb-wmi driver
(drivers/platform/x86/asus-nb-wmi.c).
SYSTEM INFORMATION: Model ASUS Q405UA, Kernel 6.17.12-300.fc43.x86_64,
Distribution Fedora 43
DRIVER MESSAGES (from dmesg): asus_wmi: ASUS WMI generic driver loaded,
asus_wmi: Initialization: 0x1, asus_wmi: BIOS WMI version: 9.0, asus_wmi: SFUN
value: 0x21, asus-nb-wmi asus-nb-wmi: Detected ATK, not ASUSWMI, use DSTS,
input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input20
TESTING RESULTS: With tablet_mode_sw=2 configured, evtest shows Event code 1
(SW_TABLET_MODE) is present. Switch state correctly toggles between 0 (laptop)
and 1 (tablet) when folding. libinput debug-events shows proper SWITCH_TOGGLE
events. Touchpad automatically disables in tablet mode as expected.
ADDITIONAL NOTES: The EC already tracks hinge position (evidenced by automatic
keyboard disabling). KEY_PROG2 events fire on hinge transitions but are
insufficient for userspace to properly detect tablet mode. Other ASUS 2-in-1
models with similar behavior may also benefit from this quirk.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
next reply other threads:[~2026-01-05 0:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-05 0:48 bugzilla-daemon [this message]
2026-01-08 2:32 ` [Bug 220945] ASUS Q405UA requires tablet_mode_sw=2 for proper tablet mode detection bugzilla-daemon
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=bug-220945-215701@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@kernel.org \
--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.