Repository navigation
Make Apple Magic Trackpad pointer feel closer to macOS - #9276
barmstrong wants to merge 1 commit into
Conversation
hid-magicmouse treats a resting thumb as a second finger, so a light edge contact becomes two-finger scroll or a right-click. Stock libinput also disables size-based palm/thumb filtering on these pads (TouchSizeRange 20:10). Skip kernel gesture emulation when a Magic Trackpad is present, re-enable libinput thumb/palm thresholds, and keep Hyprland's default sensitivity and adaptive accel on the pad even if the user raises the global pointer speed. The same kernel module drives Magic Mouse, whose surface-scroll still needs emulate_scroll_wheel, so those options are skipped when a Magic Mouse is connected.
|
Is this only for the usb version? Looking for a fix for the built in trackpad on macbook air that has same symptom. |
|
yes it's only for the USB/bluetooth external magic trackpad |
1788129995.sh collides with six other open PRs (omacom#9276, omacom#9445, omacom#9446, omacom#9478, omacom#9522, omacom#9562); same filename means the same completion marker, so only the first merged migration would ever run. Renamed to the fresh, currently-unused timestamp 1789739221.
|
Reviewed at 1dbdb9c by Claude Opus 5.5. No second opinion ran: the configured reviewer answers, but omabot's daily review budget was spent, so this is one model's reading plus what ran on a worker. Nothing was pushed, because two of the three layers rest on a premise that does not hold, and that needs rethinking rather than patching. The libinput quirks file is never read. libinput scans The The Hyprland block does nothing on a stock install. Quattro's It no longer merges. Quattro already has The tests can't catch any of this. What a proportionate version would look like: drop the modprobe file, the sysfs writes and the two Since this is hardware no worker has, whether the new thresholds actually ignore a resting thumb can only be settled on a real Magic Trackpad. The head as committed can't have changed thumb handling through either the quirk or the module options, so the result described in the PR body probably came from a different state on the test machine. A reworked head needs confirmation on that exact commit from a maintainer with a Magic Trackpad. There is no linked issue, and the author's own confirmation doesn't count toward verification here. Waiting on the author for a rework, and on the maintainer for the sensitivity-pin question. |
|
A second opinion has now reviewed 1dbdb9c: Codex Medium and muse-spark-1.3-contributor (via pi, thinking high). Codex agrees with the findings above: the quirks file is not read, the module options do nothing for Trackpad 2 and break a Magic Mouse connected later, the migration name collides with Omasnap's, the Hyprland block only overrides a user's global settings, and the test passes without testing the effect. It adds two points. First, the Hyprland name list misses One correction to my comment above. I said a trackpad paired over Bluetooth reports its personalised name. Both reviewers point out that Muse disagreed on one point, saying libinput reads any The reviewers read this session's earlier findings, so their agreement is not guaranteed to be independent. Still waiting on a rework from the author and on the maintainer for the sensitivity question. |
On Linux, a Magic Trackpad treats a light resting thumb as a second finger. That becomes two-finger scroll or a right-click, and small pointer moves feel jumpy compared with macOS.
Two layers cause it:
hid-magicmousekernel two-finger scroll and 3-button emulation fire as soon as a second contact exists, before libinput can classify it as a thumb.50-system-apple.quirkssetsAttrTouchSizeRange=20:10on these pads, which turns size-based palm/thumb filtering off.This change:
/etc/libinput/omarchy-magic-trackpad.quirksso a light edge rest is ignored. Harmless on machines without the pad (match is by device name)./etc/modprobe.d/omarchy-magic-trackpad.conf(emulate_scroll_wheel=0,emulate_3button=0) when a Magic Trackpad is present, so libinput owns two-finger scroll and click. Two-finger right-click still works throughclickfinger_behavior.0on the common Magic Trackpad device names, so raising the global pointer speed does not make this large pad jumpy.Tested on a USB Magic Trackpad 2 (05AC:0265) on Omarchy 4.0.1. Resting-thumb scroll/right-click stopped, and fine text selection became usable.
test/shell.d/magic-trackpad-test.shcovers install and migration for trackpad-only, mouse-present, no-device, and Bluetooth USB-C IDs.