Repository navigation
Conversation
The quirk masking the pad's bogus pressure axes never took effect, so the touchpad stays dead on a fresh install: clicks register but the cursor never moves. libinput scans /usr/share/libinput for *.quirks and additionally reads the single file /etc/libinput/local-overrides.quirks. It never scans /etc, so the quirk written to /etc/libinput/asus-expertbook-b9406.quirks was silently ignored. Ship a drop-in under /usr/share/libinput instead. Appending to local-overrides.quirks would work too, but that is the one file users edit by hand, and a shared file can only be updated by grepping for a section we already wrote -- which silently pins the first version we ever shipped. A file we own outright is rewritten wholesale on every run. Also drop MatchUdevType=touchpad: the pad's event node is tagged ID_INPUT_MOUSE, so the constraint skips the section. Bus, vendor, product and DMI already pin the device exactly. Migration re-applies the quirk on existing B9406 installs and clears the never-read file. Co-Authored-By: Mikko Nyman <mikko@nyman.xyz> Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
@mijuny — could you test this on a B9406 when you have one in hand? No rush if the ExpertBook is still out of action; I'd rather this sit than merge unverified. The fix moves to a drop-in libinput actually reads, so the check is whether the cursor moves after a relogin: # 1. Apply
sudo bash /usr/share/omarchy/install/hardware/asus/fix-asus-ptl-b9406-touchpad.sh
# 2. Confirm the drop-in landed and the stale file is gone
cat /usr/share/libinput/99-omarchy-asus-b9406-touchpad.quirks
ls /etc/libinput/
# 3. Relog, then confirm libinput applied it
libinput list-devices | grep -A5 -i touchpadTwo things beyond "cursor moves" that would be genuinely useful:
If you'd rather test the migration path as an existing install would hit it: rm -f ~/.local/state/omarchy/migrations/1785114924.sh
omarchy-migrate |
|
Tested this branch's installer on the actual ASUS ExpertBook B9406CAA ( Validation performed:
One factual correction for the script comment: this device is not tagged So There are still occasional light-contact dropouts after this libinput fix. A raw HID trace shows the controller itself clearing Tip Switch and pausing coordinates while Contact Count and Confidence remain set, so that residual sensitivity appears to be device firmware rather than something this quirk can address. This PR nevertheless fixes the original unusable/no-motion behavior and is ready from the B9406 hardware side. |
|
Post-reboot hardware follow-up: the residual light-contact interruptions and perceived sensitivity loss I noted above are now gone in normal use. There were two simultaneous changes, so I cannot honestly assign causality:
The PR's quirk is definitely active: libinput quirks list on the live 093A:4F05 touchpad reports AttrEventCode=-ABS_MT_PRESSURE;-ABS_PRESSURE;. This strengthens the end-to-end hardware validation for the PR, but it should not be read as proof that the quirk alone cures the previously observed residual dropouts. BIOS 312 is a plausible contributor to that part. |
|
Confirming this is still needed on a fresh Omarchy 4.0.4 install (ExpertBook B9406CAA, libinput 1.31.3, kernel 7.2.5-3-omarchy). The installer ran
Would be great to see this land, since every B9406 owner hits it on first boot. |
|
Second hardware confirmation of the PR drop-in (@mijuny, B9406CAA BIOS 304, libinput 1.31.3, kernel 7.2.5-3-omarchy, PR head 85abe52). A/B with
No jump warnings in any run, so on 1.31.3 a dead pad is silent rather than the original "Touch jump detected and discarded". I also ran
On MatchUdevType, your multi-node suspicion is right: the pad exposes Rebooted with the local override removed so only the drop-in applies: after a fresh login the pad works, and libinput applies the mask from /usr/share/libinput/99-omarchy-asus-b9406-touchpad.quirks alone. In the same session, pointer motion, two-finger scroll (262 SCROLL_FINGER events), physical click (BTN_LEFT), and tap-to-click all work. For transparency: the hardware test was run together with my agents DeepSeek V4.1 Flash and Codex (gpt-6-astra). Astra also verified the installer and migration in isolation, and Claude Opus 5 and Grok 4.6 reviewed this draft. |
mijuny
left a comment
There was a problem hiding this comment.
Two actionable edits from my test comment above, both comment/scope only; neither changes the file-location fix.
My A/B shows the pad exposes two nodes, ... Mouse (ID_INPUT_MOUSE) and ... Touchpad (ID_INPUT_TOUCHPAD). The quirk targets the touchpad node, which is correctly tagged, so the current comment premise is inaccurate; without the constraint the section also lands on the mouse node (a no-op there). Every Pixart entry in 30-vendor-pixart.quirks carries MatchUdevType=touchpad. Inline suggestions below.
Also, the PR body still says hardware verification is missing. My comment above is that verification (second B9406CAA, BIOS 304, libinput 1.31.3, kernel 7.2.5-3-omarchy), so it can be updated before merge.
| # The pad's event node is tagged ID_INPUT_MOUSE rather than ID_INPUT_TOUCHPAD, | ||
| # so a MatchUdevType=touchpad constraint would skip the section. Bus, vendor, | ||
| # product and DMI already pin the device exactly. |
There was a problem hiding this comment.
| # The pad's event node is tagged ID_INPUT_MOUSE rather than ID_INPUT_TOUCHPAD, | |
| # so a MatchUdevType=touchpad constraint would skip the section. Bus, vendor, | |
| # product and DMI already pin the device exactly. | |
| # The device exposes separate mouse and touchpad event nodes. Match the | |
| # touchpad node, which is tagged ID_INPUT_TOUCHPAD; bus, vendor, product | |
| # and DMI restrict the quirk to this model. |
| mkdir -p /usr/share/libinput | ||
| cat > /usr/share/libinput/99-omarchy-asus-b9406-touchpad.quirks <<'EOF' | ||
| [ASUS ExpertBook B9406 Touchpad] | ||
| MatchBus=i2c |
There was a problem hiding this comment.
| MatchBus=i2c | |
| MatchBus=i2c | |
| MatchUdevType=touchpad |
The migration escalated on every matching machine, even after another user had already written the drop-in and removed the ignored file. A second user without sudo could not finish it, leaving it pending and blocking every later migration, which the migration guide rules out for machine-wide repairs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The installer writes the drop-in with `cat >`, so an interrupted write leaves an empty or truncated file. Existence alone then read as repaired, and the migration would be marked done with the mask missing. Checking for the mask line, which the heredoc writes last, catches both. Co-Authored-By: Codex <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed at 860102b, with two fixes pushed to the migration. The quirk itself is unchanged since 85abe52, the head @argrig666, @bramvera and @mijuny confirmed on B9406 hardware. What was run, on a disposable Omarchy worker with libinput 1.31.3: a malformed file at the old Pushed:
Both have a regression test, and each test fails when its fix is reverted. Left for the maintainer: the script comment says the pad's event node is tagged Codex Medium gave the second opinion over three rounds. It found both migration defects above, and its last round, on 860102b, found nothing. It also judged the path change proportionate and flagged the This now waits on the maintainer. |
|
Confirming the The pad exposes two event nodes:
|
Ports #6093 to
quattro, with the fix mechanism changed. Original diagnosis and hardware verification by @mijuny.On a fresh install of an ASUS ExpertBook B9406 the touchpad is dead: clicks register but the cursor never moves. The quirk from #5435 that masks the pad's bogus pressure axes never took effect.
Why it never applied
libinput
scandirs/usr/share/libinputfor*.quirksand additionally reads the single file/etc/libinput/local-overrides.quirks. It never scans/etc. The quirk was written to/etc/libinput/asus-expertbook-b9406.quirks, so it was silently ignored.Verified against the installed libinput rather than taken from docs: built a probe against
libinput.so, pointedLIBINPUT_QUIRKS_DIRat a copy of the data dir, and dropped in a deliberately malformed file under a name libinput does not ship. libinput failed quirks loading — proving it reads any*.quirksin that directory, not a fixed list.Drop-in rather than appending to local-overrides
#6093 appends to
local-overrides.quirks. That works, but it is the one file users edit by hand, and a shared file can only be updated idempotently by grepping for a section we already wrote — which silently pins the first version we ever shipped. If the quirk ever needs correcting, the grep matches the stale section and the fix never lands.A drop-in at
/usr/share/libinput/99-omarchy-asus-b9406-touchpad.quirksis a file we own outright, rewritten wholesale on every run. Consistent with howfix-z13-touchpad.showns its udev rule, and with the/usr/share/fontconfig/conf.avail,/usr/share/xdg-terminal-execand/usr/lib/chromiumdrop-ins already shipped elsewhere.MatchUdevType
Dropped, as in #6093: the pad's event node is tagged
ID_INPUT_MOUSE, so atouchpadconstraint skips the section. Bus, vendor, product and DMI already pin the device exactly, so the widened match is inert on any other hardware.Worth flagging honestly: this claim sits uneasily with the original diagnosis, since the
"Touch jump detected and discarded"message comes from libinput's touchpad backend, which only runs on devices tagged as touchpads. Most likely the pad exposes several event nodes. The reporter's confirmation also bundled both changes, so the evidence clearly supports the path fix and is only suggestive on this one. Kept because it costs nothing if unnecessary. Full touchpad classification (gestures, two-finger scroll) remains follow-up work.Quattro porting
Three things in #6093 would not have worked here:
sudothroughout —install/hardware/*runs as root (omarchy-setup-hardwarehard-fails ifEUID != 0).sourced the leaf — migrations run as the user, so it now escalates explicitly.1781432360predates quattro's newest (1785095882) — renumbered.Stale-file cleanup moved out of the install leaf into the migration; fresh installs never had that file.
Verification
MatchUdevTyperemoved.sudo: removes the stale file, writes the drop-in, exits 0.test/shell.d/migrate-scope-test.shpasses;bash -nclean.Not verified on the hardware itself — @mijuny's B9406 is currently broken. The path fix is mechanically proven; a confirmation on a live B9406 before merge would be ideal.
🤖 Generated with Claude Code