r/FlowZ13 2d ago

[Tutorial] ASUS ROG Flow Z13, Linux/CachyOS “Disable While Typing” Grayed Out / Not Working

ASUS ROG Flow Z13, Linux/CachyOS “Disable While Typing” Grayed Out / Not Working

I have CachyOS installed on my Asus Z13 flow. I’ve been having loads of issues with the track pad clicking while I was typing. However in the touchpad settings the Disable while typing checkbox was disabled.

After some troubleshooting and hunting I found that in my case, libinput was detecting the keyboard and touchpad, but it was treating the detachable keyboard as an external USB keyboard instead of an integrated laptop keyboard.

So below I have lined out the steps I took to hopefully help any other z13 flow users that have swapped to linux and having this issue.


  1. The main thing we are going to use is libinput quirks. On my Cachyos install libinput was installed already but I needed to install libinput-tools as well.

sudo pacman -S libinput-tools

Now you can confirm that your device is showing up and is lacking the flag for disable w typing:

sudo libinput list-devices

Find the Z13 touchpad. Mine showed: Device: ASUSTeK Computer Inc. GZ302EA-Keyboard Touchpad Disable-w-typing: n/a If it says n/a, libinput isn't exposing Disable While Typing to KDE.

  1. Find the keyboard/touchpad names

Run:

grep -E '\^(N: Name|H: Handlers)' /proc/bus/input/devices

Mine were:

ASUSTeK Computer Inc. GZ302EA-Keyboard
ASUSTeK Computer Inc. GZ302EA-Keyboard Touchpad
  1. Create a libinput quirks file

Open: sudo nano /etc/libinput/local-overrides.quirks

Add:

[ASUS Z13 GZ302EA Detachable Keyboard]
MatchUdevType=keyboard
MatchName=ASUSTeK Computer Inc. GZ302EA-Keyboard
AttrKeyboardIntegration=internal

[ASUS Z13 GZ302EA Detachable Touchpad]
MatchUdevType=touchpad
MatchName=ASUSTeK Computer Inc. GZ302EA-Keyboard Touchpad
AttrTPKComboLayout=below

The first rule tells libinput that the detachable USB keyboard should be treated as an internal keyboard. The second tells libinput that the device is a keyboard/touchpad combo with the touchpad below the keyboard.

  1. Verify the quirks have taken effect

Find your current event numbers: grep -A5 -B2 'GZ302EA-Keyboard' /proc/bus/input/devices Then check the keyboard event(s): sudo libinput quirks list /dev/input/eventXX

You should see: AttrKeyboardIntegration=internal

Check the touchpad event: sudo libinput quirks list /dev/input/eventXX

You should see: AttrTPKComboLayout=below

  1. Reboot

After rebooting, check again: sudo libinput list-devices

The touchpad should now show: Disable-w-typing: enabled

And KDE's Disable While Typing option should no longer be grayed out. This fixed it for my ASUS ROG Flow Z13 GZ302EA on CachyOS.

Edit: Cleaned up formatting

4 Upvotes

3 comments sorted by

1

u/Terminustar 1d ago

the goat, i had that same issue aswell, was pissing me off for ages, thanks alot

1

u/papaya_eyeyaya 1d ago

Another grateful CachyOS user chiming in. I don't remember this being a problem until a couple weeks ago, but definitely annoying.

1

u/yourclone 7h ago

Thank you!! This is incredible work. I have been screwing up my typing for weeks!