Repository navigation
Conversation
amdgpu SMU init fails on iMac20,1/iMac20,2 with Radeon Pro 5300/5500, so Plymouth and the kms hook blank the panel before LUKS. Persist plymouth.enable=0 nomodeset for that hardware, migrate existing installs, and document the models. Fixes omacom#12197
Companion to fix-imac20-display.sh. Once the safe-fallback path (which keeps the EFI framebuffer through LUKS via nomodeset) has the user at a working desktop, this turns the GPU back on. How it works: - install/hardware/apple/install-imac20-amdgpu-hwaccel.sh clones the McoreD/imac20-amdgpu-patch companion repo, runs the build + pacman-hook + Limine hwaccel-entry scripts in order, and verifies the patched module is in place before declaring success. - bin/omarchy-install-imac20-amdgpu-hwaccel exposes the same logic as a user-runnable command (post-install opt-in). - The Limine safe entry remains the default; a new imac20-hwaccel entry is added at the top level for the user to pick manually. - The companion repo contains the t2linux 6001 SMU init fix in source form, plus a build script that applies it against the running kernel-t2 source tree. Wire-up: - install/hardware/all.sh runs it after fix-imac20-display.sh on matching hardware. - manual/44-mac-support.md documents the opt-in flow and links to the companion repo. Tests: - test/shell.d/imac20-amdgpu-hwaccel-test.sh asserts the install script gates on the same Navi 14 detector, runs the right companion scripts in order, no-ops on non-iMac20 hardware, and that the hardware detector only matches iMac20,* products (not iMac19,*, not MacBookPro16,1 even with the same GPU).
Reorganise the README around three distinct layers: 1. Stock (kernel, amdgpu, Mesa/RADV, mpv, Hyprland, Limine, Omarchy) — works on every Linux box with a Radeon RX 5500/5500M once a SMU-init patch is in place. 2. Community / 3rd-party (a single 16-line patch by Atharva Tiwari in t2linux/linux-t2-patches@main, dated Jul 9 2026, that hardcodes the macOS-derived SMU feature masks 0xABC9AFBB / 0xFFFFFD42 for the exact Apple iMac20,1/iMac20,2 PCI signature 1002:7340 / 106b:0219). 3. Custom for this user (~250 lines of bash: build, install, backup, pacman hook, Limine wiring). No kernel or driver code. Also note explicitly that the patch can be retired once upstream Linux lands a Navi 14 SMU-init bypass (likely AMD ongoing smu_v13_0 work) and arch-mact2/linux-t2 can take it directly. Switch maintainer email to McoreD@users.noreply.github.com (was mcored@gmail.com in the original draft). Add reviews/ to the file inventory. Add the "Pair project" omacom/omarchy#12524 next to the existing #12203 reference. Update verified-state example output to use "vaapi[nv12]" (the actual AMD VCN hardware-decoded format) rather than the older generic "VO: [gpu]" form, so future readers see specifically that the AMD VCN block is doing the decode.
Automated AI review
Verified: the first commit ( The second commit ( Fresh installs on the targeted iMacs stop during hardware setup
A sandboxed simulation of the hardware step (head
In the Impact: on iMac20,1/iMac20,2 with Radeon Pro 5300/5500, installation cannot complete, which cancels the benefit of the first commit. The manual describes the command as something to run after install, which matches the intended design rather than this wiring. Suggested change: remove the No
|
| Package | 0xABC9AFBB (LE bb af c9 ab) occurrences |
|---|---|
| pre-6001 packages (7.1.2-2, 7.1.3-1) | 0 |
7.2.6.arch2-1 stock |
1 |
Impact: the rebuild adds no 6001 code that the stock module lacks. The script's "Verifying patched module" check (count(bbafc9ab) >= 1) passes on an untouched stock module, so it cannot detect a skipped or failed install. The stock-backup check next to it is inverted: it warns for a missing or unpatched backup and stays silent for a patched one, the opposite of its message. This PR does not establish what made amdgpu bind on the author's HW-accel boot (for example, the boot parameters in the companion drop-in, such as amdgpu.modeset=1 and video=efifb:off, are an untested alternative explanation).
Suggested change: compare the stock linux-t2 module booted with the HW-accel parameters against the rebuilt module on the target iMac. If the stock module binds, the opt-in can be a boot-entry change without a module rebuild or third-party clone. If a rebuild is still needed, replace the constant scan with a check that distinguishes the rebuilt module (for example a hash or vermagic comparison) and fix the backup predicate.
Command note: omarchy-install-imac20-amdgpu-hwaccel performs root writes (/opt, /usr/lib, /lib/modules, /etc) without elevating, so as a normal user it stops at the git clone into /opt. Under sudo, Arch's default env_reset removes OMARCHY_PATH, so the source "$OMARCHY_PATH/install/..." line resolves to /install/... and fails. Resolving the script path inside the command and elevating internally would make the documented invocation work.
Test note: test/shell.d/imac20-amdgpu-hwaccel-test.sh fails at this head (not ok - install clones the companion repo). Its first run points OMARCHY_DMI_PRODUCT_NAME at a file created only later, so the detector exits before any call. Even when reordered, the stubs live under $stub_dir/opt/... while the script calls absolute /opt/imac20-amdgpu-patch/... paths, and the stub git would create /opt/imac20-amdgpu-patch on the host and read the host's /proc/cmdline. Adding environment overrides for the install root and the cmdline file (as the migration already has) would let the test run safely.
Review information
Test scope: Source review of both commits, the companion repo (at the commit current when the PR was opened and at current main), limine-entry-tool, the Omarchy ISO installer flow and the linux-t2 package recipe history. Sandboxed runs: both new tests, a simulation of the hardware setup step with stubbed system commands and privately redirected paths, and a byte scan of modules from official linux-t2 packages. No iMac hardware, real boot, companion script execution or full test suite run. The report that the HW-accel boot works on the author's iMac was not independently reproduced.
AI process: Opus 5.5 Medium coordination and synthesis, independent Opus 5.5 Xhigh and GPT 6 Sol Xhigh technical assessments, Opus 5.5 Medium editorial check.
Opt out: To stop receiving these reviews, reply to this comment saying so.
|
Thanks for the thorough review. Here's where things stand, checked on the iMac20,1 this PR was built on (Omarchy 4.0.4, 1. Hardware setup halts fresh installs: agreedThe 2. No
|
The linux-t2 package's own amdgpu brings Navi 14 up on iMac20,1 with amdgpu.modeset=1 video=efifb:off, so drop the companion-repo clone, patched module build and install-time run. The opt-in command now builds a second UKI with those flags, adds it as a Limine entry next to the safe nomodeset default, and installs a pacman hook that rebuilds it on linux-t2 upgrades (removing it if the rebuild fails). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Updated: no patched module any moreI pushed a99ecf3, which removes the companion repo and the module build from this PR. Why: on the same iMac20,1 I A/B tested the patched What changed:
Caveats: this is one machine. I haven't isolated whether the fix came from the newer I've updated the PR description to match. https://github.com/McoreD/imac20-amdgpu-patch is no longer needed by this PR. |
Automated AI review
Follow-up to the earlier review and the author's update, checked at Verified: all four earlier findings and both notes are resolved at this head.
The first commit (the #12203 fallback) is unchanged, and The reworked command has two new problems, both on its failure and removal paths, plus two smaller notes. A failed or interrupted second build leaves the default entries on the HW-accel command line
The EXIT trap only rewrites the drop-in and never rebuilds, and it is cleared before the second full rebuild. Sandboxed runs of the command with stubbed
The last row is silent because Impact: on the machines this PR targets, an interrupted opt-in or a failing rebuild during a Suggested change: build the second UKI directly instead of through the default one, as limine-mkinitcpio-install does internally:
This never touches the default entries and drops the drop-in swap and the second full rebuild. If the current design stays, the trap needs to restore and rebuild, and
|
Address review on omacom#12524: - Build the hardware-acceleration UKI directly with mkinitcpio from the safe UKI's cmdline (nomodeset swapped for the amdgpu flags) instead of swapping the display drop-in and rebuilding the default UKI twice. A failed or interrupted build can no longer leave the Omarchy entries on the hardware-acceleration path. - --default saves the default_entry line it replaces, and --remove (or a failed rebuild) puts it back, falling back to Omarchy's `default_entry: 2`, so autoboot keeps working. - Edit limine.conf before limine-entry-tool writes it, so the tool's write comes last. - Also rebuild on mkinitcpio, initcpio, firmware and microcode changes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GdE7TC6c48x9W7U7MfdU9V
|
Thanks, both critical issues are fixed in 38cba39.
Smaller notes:
Tests cover the failed opt-in, failed rebuild and Generated by [Claude Code](https://claude.ai/code) |
Automated AI review
Outcome: after a typical Since the earlier review, at
|
The rebuild was skipped when /proc/cmdline already had plymouth.enable=0 and nomodeset. Users hit by omacom#12197 type exactly those flags into the Limine editor, so if limine-mkinitcpio failed on the first run, the retry completed without rebuilding and the next unedited boot was black again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stock linux-t2 amdgpu failed SMU init on 2 of 4 boots with the hardware-acceleration flags on the iMac20,1 (t2linux 6001 enables UCLK DPM during init, t2linux/wiki#743), so an entry that boots it is not reliable. What works needs an amdgpu rebuilt with the deferred-UCLK fix, which does not belong in Omarchy. Drop the opt-in command and its test, and document the companion tooling in the Mac support manual instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the follow-up review. The old-kernel Correction to my 2026-09-27 comment. I wrote "it is the flags", meaning the stock Message 6 is What does work, on 3 of 3 boots so far, is the same flags with an Tests: |
|
limine-mkinitcpio exits 0 when it skips a kernel whose build failed, so the migration could record the repair while the linux-t2 entry still lacked plymouth.enable=0 nomodeset, and later runs would skip it. Check the linux-t2 entry's cmdline in limine.conf after the rebuild and exit non-zero, leaving the migration pending, when the flags are missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reading the cmdline: line after the entry's path: in limine.conf assumed a layout limine-entry-tool doesn't guarantee, and could reject a good rebuild and block later migrations. Read the .cmdline section of the linux-t2 UKI with objcopy instead, as omarchy-upgrade-to-quattro does, and fail only when a UKI lacks the flags or none exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
For reviewers: the 4/5 in Greptile's latest summary comes from the Grok update fallback. That code isn't part of this PR. It arrived in the incremental range Greptile reviewed because upstream |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
Sharing a tested result for the other Apple GPU variant: The exact working patch, pinned source inputs/checksums, source-preparation helper, build/UKI staging steps, verification and recovery notes are now public: https://gist.github.com/earlvanze/be879691a3977660154ebde3df00dfaa This adapts the Atharva Tiwari / Ed Schofield v4 delayed-UCLK proposal to On this machine:
Persistence uses an The separate companion-tooling hardware guard PR prevents installing the existing Follow-up: One deep/S3 suspend/resume cycle also passed: same boot and Hyprland process, operator-confirmed working desktop after unlock, and a successful post-resume 10-second VA-API encode. Memory clocks returned to 98 MHz idle. Resume logged AMDGPU power-state, PCIe/xHCI and Broadcom P2P warnings/errors, detailed in the runbook; this is a functional single-cycle result. Hyprland still reports 3840×2160, with no 5120×2880 mode listed. Fan-control follow-up (iMac20,1): The functional suspend result above does not mean every resume behavior is resolved. Several hours after that cycle, the chassis fan was at ~3,600 RPM with A separate source of noise remained after restoring control: Potential Omarchy follow-ups: reproduce SMC fan-control ownership across suspend/resume on T2 Macs, and review whether fan defaults should distinguish desktop iMacs from other T2 models. The AMDGPU patch and acoustic tuning should remain separate changes. |
|
Description says this is now docs-only, but the diff still ships |
|
Reviewed at What this lands. The description says docs only, but the diff against What the copy is missing. #12203's Which one carries the fix. #12203 is older and has the correction, so it is the one being brought forward for this bug. This pull request will not be marked The manual paragraph. The parts about this repository are accurate at this head: the installer writes Codex Medium gave the second opinion and found the same thing: identical workaround, #12203 ahead on the migration, nothing inaccurate in the repository claims. Its independence from this review is not guaranteed, so treat that as agreement rather than a separate finding. This is now waiting on the maintainer to decide #12203 and the manual paragraph. Once #12203 lands, this branch can drop down to just the manual change, either by merging |
Summary
Follow-up to #12203, which keeps 2020 5K iMacs (iMac20,1 / iMac20,2, Navi 14) bootable with
plymouth.enable=0 nomodeset, without GPU acceleration.This PR is now docs only. It adds a paragraph to
manual/44-mac-support.mdthat:linux-t2amdgpustill fails SMU init intermittently, because t2linux 6001 enables UCLK DPM during init (t2linux/wiki#743);amdgpuwith the deferred-UCLK fix from wiki#743, adds animac20-hwaccelLimine entry next to the safe one, and rebuilds both on everylinux-t2upgrade.The earlier
omarchy-install-imac20-amdgpu-hwaccelcommand is removed. It booted the stock module, which isn't reliable (see below), and the working fix needs a kernel-module rebuild that doesn't belong in Omarchy.Results on the iMac20,1 (
106b:0219)From every boot in the machine's journal, 2026-09-16 to 2026-10-02 (full table in #12203):
plymouth.enable=0 amdgpu.modeset=1 video=efifb:offmsg_reg: 6,-62)linux-t2package 7.2.6.arch2-4 (6001)Once
linux-t2carries the deferred-UCLK fix, #12203's drop-in can switch fromnomodesettoplymouth.enable=0 video=efifb:off, and this paragraph can go.Test plan
./test/clibash test/shell.d/imac20-display-test.shFixes #12197 (second half: hardware acceleration)
🤖 Generated with Claude Code