Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions install/hardware/asus/fix-asus-ptl-b9406-touchpad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@
#
# Mask the pressure axes with a quirks override, same pattern as the
# Asus UX302LA entry in libinput's shipped 50-system-asus.quirks.
#
# libinput scans /usr/share/libinput for *.quirks and additionally reads the
# single file /etc/libinput/local-overrides.quirks. It never scans /etc, so a
# drop-in is the only way to ship a quirk without editing the one override
# file users hand-edit themselves.
#
# 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.
Comment on lines +17 to +19

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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.


if omarchy-hw-asus-expertbook-b9406; then
mkdir -p /etc/libinput
cat > /etc/libinput/asus-expertbook-b9406.quirks <<'EOF'
mkdir -p /usr/share/libinput
cat > /usr/share/libinput/99-omarchy-asus-b9406-touchpad.quirks <<'EOF'
[ASUS ExpertBook B9406 Touchpad]
MatchBus=i2c

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MatchBus=i2c
MatchBus=i2c
MatchUdevType=touchpad

MatchUdevType=touchpad
MatchVendor=0x093A
MatchProduct=0x4F05
MatchDMIModalias=dmi:*svnASUS*:pn*B9406*
Expand Down
7 changes: 7 additions & 0 deletions migrations/1785114924.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
echo "Fix ASUS ExpertBook B9406 touchpad quirk (takes effect at next login)"

omarchy-hw-asus-expertbook-b9406 || exit 0

sudo rm -f /etc/libinput/asus-expertbook-b9406.quirks
sudo env OMARCHY_PATH="$OMARCHY_PATH" PATH="$PATH" \
bash -euo pipefail "$OMARCHY_PATH/install/hardware/asus/fix-asus-ptl-b9406-touchpad.sh"