New: ASUS Q405UA requires tablet_mode_sw=2 for proper tablet mode detection
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: [email protected]
Reporter: [email protected]
Regression: NoCreated 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.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 220945] ASUS Q405UA requires tablet_mode_sw=2 for proper tablet mode detection
https://bugzilla.kernel.org/show_bug.cgi?id=220945
Andrew ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID--- Comment #1 from Andrew ([email protected]) ---
I didn't read the landing page that this is not for kernels in existing distros.
"If you did not compile your own kernel from scratch, you are probably in the wrong place.
Please use the following links to report a bug to your distribution instead"
Closing this to file with Fedora.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.