Skip to content

Install omarchy-mac on Apple Silicon Macs that predate it as a default - #16264

Open
DanteCpp wants to merge 2 commits into
omacom:quattrofrom
DanteCpp:apple-silicon-runtime-package
Open

DanteCpp wants to merge 2 commits into
omacom:quattrofrom
DanteCpp:apple-silicon-runtime-package

Conversation

@DanteCpp

@DanteCpp DanteCpp commented Oct 22, 2026 •

Copy link
Copy Markdown

Problem

omarchy-mac joined the Apple Silicon defaults (install/omarchy-aarch64-apple.packages) in #14431, but updates install no new defaults, and no migration adds it. A Mac installed before then runs 4.5 without it.

On such a Mac (16-inch MacBook Pro, M1 Max, 4.5.0-rc1), pacman had never installed omarchy-mac. Its greeter wait for Apple's display controller (sddm.service.d/10-omarchy-mac-wait-for-display.conf) was therefore missing. On one boot, Hyprland started at 35.6 s and apple-drm initialized at 36.2 s. Hyprland kept the vanished simpledrm output as Unknown-1, logged about 14,600 atomic drm: failed to create a damage blob errors, and never drove eDP-1. The built-in display stayed black until the session was restarted. The audio watchdog, the Wi-Fi resume fix and the mic setup were missing too.

Fix

A migration that, on aarch64-apple, installs omarchy-mac and runs its system and user setup through omarchy-lifecycle-dispatch, as provisioning does. omarchy-pkg-add skips a package that is already installed, and both setups are idempotent and rebuild no boot file, so a Mac that already has it only reruns setup. Each user gets the user setup.

The hardware video-decode defaults (avd-fw, libva-v4l2_request-avd) are missing on such Macs as well, but they are defaults an owner may remove, so this leaves them alone.

Testing

  • bash -n passes. image-deferred-hardware, platform-setup, privileged-heredoc and the tests that read every migration pass.
  • On the Mac above, the migration installed omarchy-mac 0.1.4-1 and exited 0. sddm.service now carries 10-omarchy-mac-wait-for-display.conf, omarchy-wifi-resume-fix is enabled, and omarchy-asahi-mic is running. A second run reinstalls nothing and exits 0.
  • After a reboot, apple-drm initialized at 13.17 s, SDDM started at 13.22 s and Hyprland at 14.27 s. Hyprland named the built-in panel eDP-1.
  • The user setup prints Skipping Electron launchers: the runtime has no omarchy-cmd-electron-gl-wrap, because omarchy-mac 0.1.4 expects a command 4.5 does not ship. It skips that step cleanly; the mismatch belongs to omarchy-mac, not to this migration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@Natetgmaxwell Natetgmaxwell left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested on the model where this symptom actually shows up: MacBookPro17,1 (13-inch M1 MacBook Pro, Touch Bar), Omarchy 4.5.0-3, edge, image built 2026-09-23 — so omarchy-mac had never been installed, only omarchy-mac-boot.

Before (stopgap removed):

  • pacman -Q omarchy-mac → not found
  • /usr/share/omarchy-platform did not exist
  • omarchy-hw-display → 228600000.dsi.0 (the Touch Bar's DSI panel)
  • brightness keys/OSD changed the Touch Bar; apple-panel-bl was untouched

Ran migrations/1792657167.sh from this branch with bash -euo pipefail (pkexec stood in for the sudo line, as this was outside an update):

  • omarchy-pkg-add omarchy-mac installed omarchy-mac 0.2.3-2
  • omarchy-lifecycle-dispatch setup-system enabled omarchy-wifi-resume-fix.service, preset speakersafetyd, and rebuilt the initramfs cleanly
  • setup-user enabled omarchy-asahi-mic.service
  • exit 0; a second full run installed nothing, changed nothing, exit 0

After:

  • omarchy-hw-display → apple-panel-bl
  • /usr/share/omarchy-platform/displays.conf carries backlight-skip 228600000.dsi.0, backlight-prefer apple-panel-bl, ddc-require-connector-ddc
  • brightnessctl -d apple-panel-bl set 50% → 255/509 while 228600000.dsi.0 stayed 255/255; restored 509/509
  • omarchy-brightness-display reports 100

Same benign runtime mismatch you saw on 0.1.4: 4.5.0-3 still has no omarchy-cmd-electron-gl-wrap, so both setup steps print "Skipping Electron ...". Not blocking for this migration, just confirming it on the Touch Bar model too.

One thing worth considering: the migration reruns setup-system for every user on the machine, so a second user's login-time run would ask for sudo again for a machine-wide step. A root-owned marker written after setup-system succeeds would skip it for later users while still retrying an interrupted run. Current behaviour is correct, just noisier — up to you.

@DanteCpp
DanteCpp marked this pull request as ready for review November 25, 2026 19:42
@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds a migration that installs omarchy-mac on older Apple Silicon installs.

  • Older Apple Silicon Macs get omarchy-mac and its setup during migration.

Reviews (2) · Last reviewed commit: "Run Mac migration system setup once per ..." · Reviewed by Greptile

@omarchybot omarchybot added the bug Something isn't working label Nov 25, 2026
A second user without sudo rights must still reach their own setup after the owner has configured the machine. Record successful system setup in a root-owned marker, leaving failures retryable and user setup per-user.

Co-Authored-By: GPT-6 (reasoning effort not exposed) <noreply@openai.com>
Co-Authored-By: muse-wonder via pi, thinking high <noreply@meta.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

I checked the migration runner, Apple platform gate, package helper and both lifecycle setup paths at 834b4d83b1651c07c742d53e20d49074998962f2. On a disposable x86 worker, syntax checking, CLI tests, and the platform setup, lifecycle dispatch, deferred hardware, privileged heredoc and migration runner tests passed (228 assertions). This checks integration; it does not reproduce the Mac display failure.

GPT-6 in Codex (reasoning effort not exposed), Opus 5.5 High and muse-wonder via pi (thinking high) reviewed the change. muse-wonder identified that a second user without sudo rights would stop at the repeated system setup and never reach their user setup. Commit 834b4d83b1651c07c742d53e20d49074998962f2 records successful system setup in a root-owned marker, so subsequent users can continue without sudo. A worker probe with a real unprivileged second account reproduced that failure before the fix, passed with it, and failed again with it reverted. It also checked that a failed system setup leaves no completion marker; the hardware, package and lifecycle inputs were fixtures, so this is control-flow evidence rather than Mac hardware verification.

Both second reviewers found no further code defects in the revised commit; their agreement is not guaranteed independent. The CLI and focused tests above passed again on this revision. The current-head check is green, and Greptile scored this head 5/5 with no findings.

The hardware reports here are useful, but verification still needs confirmation from a maintainer or the original reporter of an affected issue, naming the full commit. On an affected Apple Silicon Mac still missing omarchy-mac, first record pacman -Q omarchy-mac, then test this revision:

git clone --branch apple-silicon-runtime-package https://github.com/DanteCpp/omarchy.git ~/omarchy-pr-16264
git -C ~/omarchy-pr-16264 checkout --detach 834b4d83b1651c07c742d53e20d49074998962f2
omarchy dev link ~/omarchy-pr-16264

Accept the reboot, run omarchy-migrate after logging in, and reboot once more. Please confirm the full SHA, whether the built-in display starts normally, and the results of:

pacman -Q omarchy-mac
systemctl cat sddm.service
systemctl is-enabled omarchy-wifi-resume-fix.service
systemctl --user status omarchy-asahi-mic.service --no-pager
hyprctl monitors

If possible, also run omarchy-migrate as a second user without sudo rights after the owner has completed it. To check repeatability without rerunning unrelated migrations, run bash -euo pipefail ~/omarchy-pr-16264/migrations/1792657167.sh once more and report its exit status. omarchy dev unlink and its reboot restore the packaged checkout; the installed package, service setup and migration markers remain. This is waiting on hardware confirmation.

emirb added a commit that referenced this pull request Dec 3, 2026
Official Apple Silicon installs created on early 4.5 releases before
omarchy-mac became a default (#14431) also lack the omarchy-mac package.
Diagnosing them as legacy Omarchy Mac installs sends those users to the
erase-and-reinstall guide in 44-mac-support.md instead of installing
omarchy-mac in place (#16264).

Limit the warning to legacy pacman.conf repository settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants