All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 220945] New: ASUS Q405UA requires tablet_mode_sw=2 for proper tablet mode detection
@ 2026-01-05  0:48 bugzilla-daemon
  2026-01-08  2:32 ` [Bug 220945] " bugzilla-daemon
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla-daemon @ 2026-01-05  0:48 UTC (permalink / raw)
  To: platform-driver-x86

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-08  2:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-05  0:48 [Bug 220945] New: ASUS Q405UA requires tablet_mode_sw=2 for proper tablet mode detection bugzilla-daemon
2026-01-08  2:32 ` [Bug 220945] " bugzilla-daemon

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.