From 366ea3f23f93aa02f6fa3561643c008e9abd196f Mon Sep 17 00:00:00 2001 From: Mikko Nyman Date: Sun, 14 Jun 2026 13:19:20 +0300 Subject: [PATCH 1/2] Fix ASUS B9406 touchpad quirk never being applied The quirk masking the bogus pressure axes never took effect, so the touchpad stays dead on a fresh install: clicks register but the cursor never moves. Two defects, either one fatal: 1. The quirk was written to /etc/libinput/asus-expertbook-b9406.quirks. libinput reads only one override file, /etc/libinput/local-overrides.quirks, and does not scan the directory, so the file was silently ignored. 2. The section required MatchUdevType=touchpad, but udev tags this pad as ID_INPUT_MOUSE, not ID_INPUT_TOUCHPAD, so the section was skipped even when read. The bus/vendor/product/DMI keys already pin the device, so the type constraint is dropped. Append the quirk to local-overrides.quirks (idempotently, without clobbering other user overrides) and remove the stale never-read file. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../asus/fix-asus-ptl-b9406-touchpad.sh | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) 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 < Date: Sun, 14 Jun 2026 13:19:50 +0300 Subject: [PATCH 2/2] Add migration to re-apply B9406 touchpad fix on existing installs Existing ASUS ExpertBook B9406 installs ran the previous, broken hook and carry a dead /etc/libinput/asus-expertbook-b9406.quirks. Re-source the corrected hook so they pick up the working quirk on next update. Co-Authored-By: Claude Opus 4.8 (1M context) --- migrations/1781432360.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 migrations/1781432360.sh diff --git a/migrations/1781432360.sh b/migrations/1781432360.sh new file mode 100644 index 0000000000..74f61daff3 --- /dev/null +++ b/migrations/1781432360.sh @@ -0,0 +1,5 @@ +echo "Fix touchpad quirk on ASUS ExpertBook B9406 (was written to a path libinput never reads)" + +if omarchy-hw-asus-expertbook-b9406; then + source "$OMARCHY_PATH/install/config/hardware/asus/fix-asus-ptl-b9406-touchpad.sh" +fi