diff --git a/install/config/hardware/asus/fix-asus-ptl-b9406-touchpad.sh b/install/config/hardware/asus/fix-asus-ptl-b9406-touchpad.sh index d39da070bf..78896136fa 100644 --- a/install/config/hardware/asus/fix-asus-ptl-b9406-touchpad.sh +++ b/install/config/hardware/asus/fix-asus-ptl-b9406-touchpad.sh @@ -8,16 +8,32 @@ # # Mask the pressure axes with a quirks override, same pattern as the # Asus UX302LA entry in libinput's shipped 50-system-asus.quirks. +# +# Two things matter for the override to take effect: +# 1. libinput reads only ONE override file, /etc/libinput/local-overrides.quirks. +# Custom-named files in /etc/libinput/ are never loaded. +# 2. udev tags this pad as ID_INPUT_MOUSE, not ID_INPUT_TOUCHPAD, so a +# MatchUdevType=touchpad section is skipped. The bus/vendor/product/DMI +# keys already pin the device exactly, so we omit the type constraint. if omarchy-hw-asus-expertbook-b9406; then - sudo mkdir -p /etc/libinput - sudo tee /etc/libinput/asus-expertbook-b9406.quirks >/dev/null </dev/null; then + sudo mkdir -p /etc/libinput + sudo tee -a "$QUIRKS_FILE" >/dev/null <