omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

omarchy-hw-touchpad misses Apple Touch (MTP) trackpads, so omarchy-toggle-touchpad silently does nothing

Open GonzFC opened this issue 3 months ago • 3 comments

System details

Apple MacBook Air (M2, 2022), Asahi Linux, Omarchy 4.0.0.r6560.gcf105bf, Hyprland 0.56.1 — also verified against a MacBook Air (M1, 2020), which is unaffected

What's wrong?

What happens

On a MacBook Air (M2, 2022) running Asahi, omarchy-toggle-touchpad and the XF86TouchpadToggle / XF86TouchpadOn / XF86TouchpadOff bindings do nothing at all. The trackpad is never disabled or enabled.

omarchy-toggle-input-device is reaching its "no device" branch:

device="$("omarchy-hw-$KIND")"
if [[ -z $device ]]; then
  echo "No $KIND device found" >&2
  exit 1
fi

Because the Hyprland bindings in default/hypr/bindings/media.lua run the command without a terminal, that echo ... >&2 goes nowhere and the key just appears dead.

What should happen

The touchpad toggles, with the usual OSD.

Cause

bin/omarchy-hw-touchpad matches the device by name:

device=$(hyprctl devices -j | jq -r '[.mice[] | .name | select(test("touchpad|trackpad"; "i"))] | first // empty')

Apple trackpads driven by the Apple Touch (MTP) protocol are exposed by Hyprland as apple-mtp-multi-touch, which contains neither touchpad nor trackpad, so the match returns empty.

This is model-dependent rather than vendor-dependent, which is what makes it easy to miss — two MacBook Airs of the same family expose different names:

host Hyprland device name matched by stock?
MacBook Air M1 (2020) apple-spi-trackpad yes
MacBook Air M2 (2022) apple-mtp-multi-touch no

So the feature works on one Apple laptop and silently does not on the next one over, with no error visible to the user.

Reproduce

On a host whose trackpad is an Apple Touch device:

$ hyprctl devices -j | jq -r '.mice[].name'
apple-mtp-multi-touch

$ omarchy-hw-touchpad
(prints nothing, exit 0)

$ omarchy-toggle-touchpad
No touchpad device found

Verified on 2026-08-25 on a MacBook Air M2 running Asahi: stock omarchy-hw-touchpad printed nothing, and the same query widened by one alternative printed apple-mtp-multi-touch.

Suggested fix

One alternative in the pattern:

-device=$(hyprctl devices -j | jq -r '[.mice[] | .name | select(test("touchpad|trackpad"; "i"))] | first // empty')
+device=$(hyprctl devices -j | jq -r '[.mice[] | .name | select(test("touchpad|trackpad|multi-touch"; "i"))] | first // empty')

multi-touch is specific enough not to catch anything else in .mice[] — mice and pointing sticks do not carry it — and bin/omarchy-hw-touchscreen is unaffected because it reads .touch[] / .tablets[] rather than matching by name.

Happy to open a PR if that is the preferred route.

GonzFC avatar Aug 26 '26 12:08 GonzFC

Same failure on a Google Pixelbook (Eve), where the pad is acpi0c50:00-18d1:5028 — HID-over-I2C, vendor 18D1 = Google. So the limitation is not Apple-specific; any pad whose name lacks both keywords is invisible to the stock match.

Extending your table:

host Hyprland device name matched by stock?
MacBook Air M1 (2020) apple-spi-trackpad yes
MacBook Air M2 (2022) apple-mtp-multi-touch no
Google Pixelbook (Eve) acpi0c50:00-18d1:5028 no

#8281 already implements a general fix for this — it falls back to udev's ID_INPUT_TOUCHPAD, and excludes pointing sticks so TrackPoints are not picked up by accident. I checked that branch out and confirmed it resolves the Pixelbook case (omarchy-toggle-input-device touchpad works, and the touchscreen is still detected separately), so it very likely closes this issue too. Might be worth testing it on the M2.

caio-hat avatar Aug 29 '26 01:08 caio-hat

Closing as out of scope: Omarchy now supports only installs made from the official Omarchy ISO, and this report comes from Omarchy on Apple Silicon or Arch Linux ARM. A different base brings its own packages, kernel, boot setup and defaults, so we can't tell what here is Omarchy's to fix, and we aren't taking on fixes for setups the ISO doesn't produce. The community-maintained omarchy-mac project is the place for Apple Silicon. Thanks for the detailed report. If you can reproduce this on a fresh ISO install, say so here with the details and we'll reopen. (Checked by Claude Opus 5.5; no second review.)

omarchybot avatar Oct 08 '26 17:10 omarchybot

A follow-up for Apple Silicon: a fully supported Omarchy M Installer for Apple Silicon Macs is coming very soon. Once it ships, that will be the supported way to run Omarchy on these machines, and anything still wrong on an install made with it belongs in a new issue here.

omarchybot avatar Oct 08 '26 17:10 omarchybot