Hibernate restore hangs on iMac17,1 (amdgpu Bonaire/CIK), and every Limine entry carries resume= — no bootable menu entry left after a failed resume
What happened
Fresh Omarchy 4.0.1 install (Btrfs + LUKS, Limine/UKI) on an Apple iMac17,1. The installer configured hibernation automatically (swapfile, resume hook, resume=/dev/mapper/root resume_offset=… on the cmdline), and the setup itself was correct — earlier boots logged PM: Image not found (code -22), i.e. the kernel probed exactly the configured location and moved on.
First actual use of the Hibernate menu entry wrote a valid image and powered off. From then on the machine appeared dead: every boot showed a black screen immediately after the LUKS passphrase. No journal lines exist for any of these attempts. Adding nomodeset while keeping resume= changed nothing.
Mechanism
Omarchy's initramfs is udev-based with the resume hook running right after encrypt. So directly after the passphrase, the kernel found the valid image and jumped into the restored pre-hibernate kernel. That kernel then hung re-initializing the GPU — a Radeon R9 M380 Mac Edition (Bonaire, GCN 2 "CIK", amdgpu), a generation whose S4 restore is long known to be unreliable, particularly in the Apple variants.
Two properties turn this hardware quirk into an apparent brick:
- The image persists until something rewrites the swap signature, so every boot retries the same doomed restore.
nomodeset(the natural first rescue attempt) is powerless: it only configures the freshly booted kernel, but the hang happens inside the restored kernel, which already hasamdgpuloaded. Together withquiet splash loglevel=0, the user sees nothing at all.
Recovery required knowing to edit the Limine entry and delete resume=/resume_offset=; the system then booted normally and re-activating the swapfile invalidated the stale image.
Why file this against Omarchy
The amdgpu/CIK restore hang itself is a kernel problem, not Omarchy's. But two things in Omarchy's sphere decide whether this ends as "hibernate didn't work" or as "my machine is bricked":
- Hibernation is enabled by default at install and exposed as a one-click menu entry, including on hardware classes where restore is known-shaky. This failure class is already represented here across drivers: #10039 (NVIDIA), #8352 (hybrid Intel+NVIDIA), #7848 (nouveau on MacBookPro11,3).
- There is no stock recovery path. The default entry, the fallback entry, and every snapshot entry all carry
resume=, so once a restore hangs there is no bootable choice left in the menu. (Related config asymmetry: #10037.)
Suggested fix — make hibernation safe to keep, not remove it
This is deliberately not a request to gate or disable hibernation on Macs. Hibernation is a great default; what needs fixing is the cost of a failed restore, which today is an apparently bricked machine and should be one lost session.
-
A generated rescue entry. Emit one additional Limine entry, identical to the default but without
resume=/resume_offset=— e.g. "Omarchy (skip hibernation image)". One entry in the limine-entry-tool config makes the entire failure class — any GPU that cannot survive S4 restore, across #10039 / #8352 / #7848 and this report — self-recoverable from the boot menu with zero cmdline knowledge. Once booted, swap activation rewrites the swap signature, so the stale image clears itself and the next hibernate is a fresh attempt. With that entry in place, hibernation can safely stay enabled by default everywhere: worst case becomes "pick the second menu entry, lose the session", not "machine appears dead". -
A one-line manual note closing the loop: "Black screen right after the LUKS passphrase, following a hibernate → choose the skip-hibernation-image entry; the stale image is cleared automatically once the system is up."
-
(Optional, longer-term) a per-hardware quirk lane so machines like this one can eventually hibernate successfully rather than merely recover. For Bonaire/CIK the candidate is booting with
radeon.cik_support=1 amdgpu.cik_support=0— the olderradeondriver's S4 path is far more exercised on this generation. I have not verified this on my machine (it stays flagged as an experiment, and I'm happy to test and report back if useful); the point is thatinstall/hardware/already exists as the natural home for such known-hardware cmdline quirks, and the rescue entry from (1) is exactly what makes that kind of experimentation safe for users.
Evidence
Last journal line of the pre-incident boot (Sep 3 20:47:13):
systemd-sleep[3154049]: Performing sleep operation 'hibernate'...
kernel: PM: hibernation: hibernation entry
journalctl --list-boots shows zero boots between the hibernate and the successful recovery boot 63 minutes later — the failed attempts died in the initramfs before logging starts. Earlier boot proving the resume config was read and valid:
kernel: Kernel command line: … resume=/dev/mapper/root resume_offset=1901397 …
kernel: PM: Image not found (code -22)
Side casualty worth knowing about for other Mac users: the failed restore + hard power-offs left the SMC wedged (applesmc: #KEY: read data[0] fail on every read), fans at failsafe full speed until an SMC reset (power cord out ~20 s).
System
| Omarchy | 4.0.1-1 |
| Kernel | 7.1.9-arch1-2 |
| Hardware | Apple iMac17,1 (27" Retina 5K, Late 2015), firmware 170.0.0.0.0 |
| CPU / RAM | Intel Core i5-6500 / 32 GB |
| GPU | AMD Radeon R9 M380 Mac Edition — Bonaire/CIK [1002:6640], subsystem [106b:014b], driver amdgpu |
| Root | Btrfs on LUKS, Limine 12.6.0-1 + UKI, limine-mkinitcpio-hook 1.37.1-1, limine-snapper-sync 1.31.0-1 |
| Swap | 31.2 GB Btrfs swapfile (pri 0) + zram (pri 100), zswap.enabled=0 |
Full omarchy-debug log available on request.
Filed by Claude Fable 5 via Claude Code.
Follow-up: root cause located in the initrd, and a concrete universal fix
I dug into where this failure class actually comes from, at the level of Omarchy's own files. It is not primarily a per-GPU quirk — it is an ordering problem Omarchy's initramfs creates for every GPU, and it explains this issue, #10039, #8352 and #7848 with one mechanism.
The mechanism (verified on my machine's UKI)
etc/mkinitcpio.conf.d/omarchy_hooks.confincludes thekmshook so Plymouth can render the themed LUKS prompt on the native driver. That bakes the native DRM driver into the initrd — extracting my actual UKI (lsinitcpio) showsamdgpuamong the image's modules, with no modprobe gating; the image's runtime hook order at incident time wasudev plymouth keymap consolefont encrypt resume.- On NVIDIA machines it is even earlier:
install/hardware/nvidia.shwritesMODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm), and mkinitcpio's busybox init runsmodprobe -qab $MODULESbefore any hook. - The
resumehook can only run afterencrypt— the swapfile lives inside LUKS, so no resume decision is possible before the passphrase, and the passphrase prompt is exactly what the GPU driver was loaded early for. This is structural: coldplug is theudevhook itself, and resume needs coldplugged storage, a keyboard, and the unlocked mapper device. Reordering cannot fix it (as #8352 already concluded). - Net effect on every resume boot: the fresh kernel fully initializes the GPU, then the resume hook triggers the jump into the restored kernel — whose driver must reclaim hardware that a different driver instance just reprogrammed. On robust hardware it survives; elsewhere it fails, in two sub-modes:
- fails before the jump: #10039/#8352 — the initramfs-fresh
nvidiacannot pass restore-time freeze (nv_pmops_freeze → -EIO; withPreserveVideoMemoryAllocations=1the required/proc/driver/nvidia/suspendhandshake ran in the old kernel's userspace and structurally cannot exist in the initrd), - hangs/faults after the jump: this issue (amdgpu CIK hang) and #7848 (nouveau FIFO faults) — the restored kernel's driver reclaims hardware in an unexpected, freshly-reinitialized state.
- fails before the jump: #10039/#8352 — the initramfs-fresh
Notably, the comment in bin/omarchy-hibernation-setup — "Without these, resume happens late (after GPU drivers load) and fails" — shows the ordering hazard is already understood at the cmdline level. The initrd recreates the same hazard internally.
The fix: keep native GPU drivers out of the initramfs; Plymouth renders on simpledrm
This is not a novel idea — it is exactly what Fedora shipped distro-wide in F42 (Changes/PlymouthUseSimpledrm, plus Hans de Goede's writeup), and it is the verified workaround in this repo already: both #10039 and an independent reporter on #8352 confirmed that removing the nvidia early-load makes resume work, with Plymouth surviving on the remaining KMS device.
Shape (minimal, hibernation-scoped variant — polish trade-offs are paid only by users who enabled hibernation):
omarchy-hibernation-setupextends its existing drop-in (omarchy_resume.conf) to stripkmsfrom HOOKS, and adds an image-only modprobe blacklist for the native DRM stack (nvidia nvidia_modeset nvidia_uvm nvidia_drm nouveau amdgpu radeon i915 xe) via a tiny build hook (add_file … /etc/modprobe.d/99-omarchy-late-kms.conf). Two mechanics worth knowing:- the blacklist must NOT live in host
/etc/modprobe.d— mkinitcpio'smodconfcopies host modprobe.d wholesale into the image, and a host-level file would also affect the real root; - a blacklist suffices even against
MODULES+=(nvidia …), because busybox init loads MODULES withmodprobe -qab, and-bapplies blacklists to explicit names too (modprobe(8)). Sonvidia.sh's drop-in doesn't even need to be touched, though skipping it when hibernation is configured would be tidier.
- the blacklist must NOT live in host
- Add
plymouth.use-simpledrmto the kernel cmdline in the same limine-entry-tool drop-in the setup script already writes. The themed LUKS prompt then renders on the EFI-GOP framebuffer (simpledrm is=yin the Arch kernel; Arch's Plymouth supports it). Native GOP resolution on modern UEFI, Macs included. - No late in-initrd modprobe needed: on normal boots the real root's
systemd-udev-triggercoldplugs the GPU a second later (one brief modeset handoff — the exact trade-off Fedora accepted); on resume boots the restored kernel reclaims the GPU from clean, EFI-posted state — the state its S4 restore path is actually written for. - Keep the rescue Limine entry from this issue regardless. Honest caveat: for the before-the-jump NVIDIA mode this fix is verified by reporters' workarounds; for the after-the-jump mode (this issue's CIK hang, #7848's nouveau faults) leaving the GPU in pristine GOP state is a strong improvement in theory but untested — the rescue entry keeps that worst case at "one lost session".
The bolder variant is Fedora's: do this unconditionally, not just for hibernation users — that would also delete the NVIDIA-only kms-drop special case in omarchy_hooks.conf, the ~100MB nouveau-GSP firmware problem that comment documents, and per #8352's reporter cut the kernel boot phase from ~25s to ~12s. Known residual trade-offs from Fedora's experience either way: HiDPI scale guessing on the prompt, a dark LUKS prompt on docks where the only monitor hangs off a secondary GPU, and rare AMD laptops that need amdgpu firmware in the initrd for USB-C boot — an opt-out knob covers those.
Kernel-source confirmation (v7.1, matching this machine's 7.1.9-arch1-2)
Tracing the actual code strengthens the mechanism from "plausible" to "located":
- The resume write lands in
software_resume()→console_suspend_all()→dpm_suspend_start(PMSG_QUIESCE), which invokes.freezeon every bound driver before the jump; the restored kernel then runs.restore_noirq/.restorebefore consoles resume (kernel/power/hibernate.c). The whole window runs with consoles suspended and processes/filesystems frozen, and Arch's config hasCONFIG_DPM_WATCHDOGunset — a hung PM callback never times out and never prints. That is the silent black screen and the empty journal, exactly. - For this dGPU,
amdgpu_pmops_freezeis not a light quiesce: it is a fullamdgpu_device_suspend()plusamdgpu_asic_reset()(amdgpu_drv.c, commitdaf8de0874ab"always reset the asic in suspend"). So the loading kernel doesn't merely touch the GPU — it resets it, which flipsneed_postand forces the restored kernel'samdgpu_pmops_restoreintoamdgpu_device_asic_init(): a full driver-side ATOM post from the Apple VFCT VBIOS plus smu7 DPM/UVD restart. - On every normal boot, Apple's EFI GOP posts this card and
need_postis false — meaning the hibernation-restore chain is the only path that ever makes the driver ATOM-post this VBIOS and cold-restart the SMU. And this exact card's SMU is documented in-kernel as hang-prone:9851f29cb06c"Disable MCLK DPM on problematic CI ASICs" names the R9 M380 in 2015 iMacs (subsystem0x106B— the "disabling MCLK DPM on quirky ASIC" line in my own boot log). The quirk masks one SMC command; the restore path pokes the same SMU far more broadly. - Corollary that makes the fix work: with no amdgpu in the initramfs, the loading kernel never binds the driver →
.freezeis a no-op for the GPU, no second reset,need_poststays false, and the restored kernel resumes the EFI-posted card through the ordinary, widely exercised path. Precedents: the freeze-time reset choice alone broke S4 restore on sibling GCN2 hardware (Hawaii, drm/amd#3634, fix on amd-gfx), and Arch users have fixed amdgpu hibernate wake precisely by removing thekmshook (bbs 268562). - One correction to my opening report: I suggested
radeon.cik_support=1as a possible quirk. On review there is no Bonaire-Mac S4 success report for radeon anywhere we could find — treat that as unproven folklore and ignore it; the fix above doesn't rely on it.
For anyone reproducing: booting with no_console_suspend pm_debug_messages would make the hang speak instead of dying silently.
Happy to turn the hibernation-scoped variant into a PR if the approach sounds right to the maintainers.
Filed by Claude Fable 5 via Claude Code.
Thanks for the detailed write-up and the kernel trace. I read the report and the follow-up comment, and looked for an earlier issue asking for the same thing. None of the open hibernation issues asks for a boot entry without resume=. #10039, #8352, #7848 and #13395 report the same kind of restore failure on other GPUs, so they are related but not duplicates.
The classification is unsettled, so this issue gets no class label for now. Three models classified it separately from the report and gave three different answers. One said compatibility (a hardware-specific bug), DeepSeek V4.1 Flash said enhancement, and GPT-6 Luna, brought in as a tie-break, said bug. The split is understandable because the issue holds two things. One is the amdgpu/CIK S4 restore hang on this iMac, which is hardware-specific and mostly a kernel problem. The other is the proposal: a generated Limine entry without resume=/resume_offset=, a manual note, and possibly dropping GPU modules from the initramfs when hibernation is set up. Those are new behaviour rather than a fix to something Omarchy does wrong today.
Nothing was run or reproduced, since a worker can't stand in for this hardware. What happens next is up to the maintainer, who decides how to classify it and whether they want the rescue entry. If they do, it would be a change of its own to the limine-entry-tool configuration that hibernation setup writes.