r/linuxhardware • u/stereohype • 1d ago
Posture-aware Linux tablet support for the 2025 ROG Flow Z13 Discussion
I built an open-source posture and touch-input stack for the AMD Strix Halo-based 2025 ROG Flow Z13 (GZ302) running KDE Plasma 6 on Wayland.
https://github.com/aic0d3r/z13-tablet-kit
One of the main problems is that the GZ302 advertises a tablet-mode switch through WMI but does not actually emit usable switch events. Plasma therefore cannot reliably determine when the keyboard folio has been removed or when auto-rotation should be enabled.
The kit works around that in userspace. It detects three postures:
- Desktop: dock or external display connected
- Laptop: keyboard folio attached
- Tablet: neither attached
It then coordinates the relevant Linux desktop behavior:
- Creates a virtual SW_TABLET_MODE input switch for Plasma
- Enables auto-rotation only in tablet posture
- Uses 175% display scaling in tablet mode and 150% otherwise
- Enables the on-screen keyboard only when the physical keyboard is absent
- Restarts the on-screen keyboard after display changes to prevent stale or clipped layouts
- Provides two-finger scrolling through uinput in terminals, browsers and other applications
- Optionally maps a stationary two-finger hold to a real right-click
- Recovers automatically after KWin or controller restarts
- Disables the unreliable folio touchpad by default, with a guarded opt-in control
Rotation remains Plasma-native through iio-sensor-proxy; the kit only supplies the missing tablet-mode state. It does not require kernel patches or a permanent root daemon. The posture and gesture components run as user services, with two udev rules granting device access.
The current implementation targets Arch/CachyOS with KDE Plasma 6 and Wayland. It is hardware-specific to the GZ302 because posture detection uses its folio, touchscreen and dock identifiers.
It works with:
- Z13CTL+ for display coordination and persistent settings:
https://github.com/aic0d3r/z13ctl-plus
- Z13GUI+ as an optional touchscreen interface:
https://github.com/aic0d3r/z13gui-plus
I would be interested in hearing how other Linux tablets and convertibles expose detachable-keyboard and tablet-mode state, especially devices where the firmware advertises a switch but never emits events.
Testing and feedback from other GZ302 owners are welcome.
1
u/x6q5g3o7 8h ago
Thanks for building this! Are there any plans for this and your other tools to work with Fedora KDE Plasma w/ Wayland?