Hibernation resume fails on hybrid Intel+NVIDIA laptops — nvidia.sh's early-KMS module bundling races the resume hook
What happened
On a hybrid Intel+NVIDIA laptop with hibernation enabled (omarchy hibernation setup), resume-from-hibernate reliably fails and falls back to a fresh cold boot — losing the entire pre-hibernate session every time.
journalctl -b 0 on the failed-resume boot:
PM: hibernation: resume from hibernation
PM: hibernation: Read 9743492 kbytes in 4.74 seconds (2055.58 MB/s)
nvidia 0000:01:00.0: PM: pci_pm_freeze(): nv_pmops_freeze [nvidia] returns -5
PM: hibernation: Failed to load image, recovering.
PM: hibernation: resume failed (-5)
Expected
Hibernating and then powering back on restores the previous session.
Root cause
Two Omarchy-generated mkinitcpio drop-ins conflict on hybrid Intel+NVIDIA systems:
-
install/hardware/nvidia.shunconditionally writes/etc/mkinitcpio.conf.d/nvidia.conf:cat > /etc/mkinitcpio.conf.d/nvidia.conf <<'EOF' MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) EOFwith no check for whether NVIDIA is the only GPU. This bundles the NVIDIA modules into the initramfs "for early KMS" even on a hybrid laptop where NVIDIA drives no display at all (confirmed via
dmesg:nvidia 0000:01:00.0: [drm] No compatible format found/Cannot find any crtc or sizeson every boot — the Intel iGPU owns the only connected output).Compare with
/etc/mkinitcpio.conf.d/omarchy_hooks.conf(packaged, static), which does correctly check for this before dropping thekmshook:# Drop kms only when nvidia_drm is early-loaded and NVIDIA owns every display # controller. Hybrid systems keep kms: their iGPU still needs it for early # KMS at the LUKS prompt. ... if (( _omarchy_nvidia_gpu && !_omarchy_other_gpu )); thennvidia.sh'sMODULES+=doesn't share this same hybrid-awareness. -
omarchy-hibernation-setupappends theresumehook at the very end:echo "HOOKS+=(resume)" | sudo tee "$MKINITCPIO_CONF" >/dev/nullIts own comment shows awareness of ordering risk:
# Add resume= kernel parameters so the initramfs resume hook knows where to find the # hibernation image. Without these, resume happens late (after GPU drivers load) and fails.but that comment is about the
resume=/resume_offset=kernel cmdline params (which are set correctly), not about module load timing.
Because the NVIDIA modules are bundled into the initramfs, the udev hook (very early — right after base) coldplugs the PCI device and the kernel autoloads nvidia/nvidia_drm/etc. via modalias matching almost immediately at boot — long before the resume hook (which is last, and can't run any earlier than encrypt, since it needs /dev/mapper/root to exist) gets a turn. By the time the kernel later tries to load the saved hibernation image, it must freeze every currently-loaded driver first, including this freshly (and pointlessly) probed NVIDIA instance — its pci_pm_freeze callback fails with -EIO, aborting the whole restore.
Reordering the resume hook doesn't fix this — resume genuinely cannot run before encrypt, and encrypt is itself after udev's coldplug. The only real fix is to not bundle the NVIDIA modules into the initramfs at all on a hybrid system, since they buy nothing there (no display to drive) and NVIDIA loads fine post-boot for PRIME offload the same way it always did.
Suggested fix
Give nvidia.sh the same hybrid-GPU check omarchy_hooks.conf already has, and skip writing the MODULES+=(nvidia ...) early-KMS drop-in when a non-NVIDIA GPU is also present (i.e. only bundle NVIDIA into the initramfs when it's the only GPU).
Workaround
A local mkinitcpio drop-in that strips the four NVIDIA modules back out of MODULES before the initramfs build, verified with a real hibernate/resume cycle:
# /etc/mkinitcpio.conf.d/zz-local-hibernate-nvidia-resume-fix.conf
_zz_filtered=()
for _zz_m in "${MODULES[@]}"; do
case "$_zz_m" in
nvidia|nvidia_modeset|nvidia_uvm|nvidia_drm) continue ;;
esac
_zz_filtered+=("$_zz_m")
done
MODULES=("${_zz_filtered[@]}")
unset _zz_filtered _zz_m
then sudo mkinitcpio -P.
System details
- Omarchy 4.0.1-1, kernel 7.1.9-arch1-2
- Dell Precision 5550 (hybrid GPU laptop)
- Display: Intel UHD CometLake-H GT2 (
i915) — only connected output - Compute: NVIDIA Quadro T2000 Mobile/Max-Q, Turing (
nvidia-open-dkms610.57.04) — PRIME render-offload only, drives no display - LUKS + btrfs root, Limine bootloader, hibernation configured via
omarchy hibernation setup
Steps to reproduce:
- On a hybrid Intel+NVIDIA laptop, run
omarchy hibernation setup. systemctl hibernate.- Power the machine back on.
- Observe a fresh cold boot instead of the restored session; confirm via
journalctl -b 0 | grep -i "pm: hibernation"showingresume failed (-5)andnv_pmops_freeze ... returns -5.
Corroborating this on different hardware, with a second and considerably more severe symptom of the same defect.
I hit this independently on an ASUS AMD+NVIDIA laptop and arrived at the same root cause from the opposite direction: not hibernation, but a black screen on every boot in supergfxctl Integrated mode. The diagnosis and suggested fix in this issue are correct, and I can confirm the fix works.
Second symptom: Integrated mode black-screens at boot
nvidia.sh's unconditional MODULES+=(nvidia ...) force-loads the NVIDIA stack from the initramfs, which bypasses the blacklist nvidia that supergfxd writes to /etc/modprobe.d/supergfxd.conf for Integrated mode. (MODULES= uses explicit modprobe; blacklists only stop udev/modalias autoloading.)
So on a hybrid laptop in Integrated mode, NVIDIA loads on every boot despite being blacklisted and despite driving no display — same Cannot find any crtc or sizes you documented — and supergfxd then has to tear it down at runtime, right as the display manager starts.
The failure is a kernel deadlock, not an error
18:55:54.940 supergfxd: do_driver_action: action = rmmod, [... 10DE:2820 ...]
18:55:54.942 kernel: [drm] [nvidia-drm] [GPU ID 0x00006500] Unloading driver
<no further output — ever>
No error, no Did rmmod line, no return. The unload never completes and holds the DRM subsystem, so the next process to enumerate /dev/dri blocks forever. Hyprland got exactly this far:
18:55:57.125 Creating the AsyncResourceGatherer! <- last line
18:56:20.355 Still waiting for variables: WAYLAND_DISPLAY, HYPRLAND_INSTANCE_SIGNATURE
18:56:26.663 wayland-session-waitenv.service: Failed with result 'timeout'
18:56:57.400 [email protected]: Failed with result 'timeout'
This also kills VT switching — Ctrl+Alt+F1..F6 go through the same wedged layer — so there is no recovery except a hard power-off. Two consecutive boots failed identically.
This looks like the deadlock variant of #8551, where the same rmmod fails cleanly with Module nvidia is in use and wedges only the daemon. Same trigger, different severity.
Sharp reproduction condition: it only fails on battery
This is the detail I'd most like to add. Same machine, same config, three consecutive boots:
| Boot | AC | rmmod nvidia_drm |
Result |
|---|---|---|---|
| 18:55 | off-line | never returned | black screen |
| 18:58 | off-line | never returned | black screen |
| 19:01 | on-line | completed in 402 ms | booted fine |
On battery the dGPU sits in D3cold; the unload wedges waking it. On AC it is in a shallower state and the unload sails through. Anyone testing this plugged in will not reproduce it.
delay-start.conf makes this more likely, not less
The Integrated-mode override that omarchy-toggle-hybrid-gpu installs:
[Service]
# Delay startup to avoid race condition with display manager initialization
ExecStartPre=/bin/sleep 5
It fired correctly (supergfxd start → daemon up = 5.05 s), but that 5-second delay lands the rmmod ~20 ms before sddm: Initializing... on all three boots — i.e. precisely into the race it was written to avoid. On the AC boot the unload won by 402 ms; on battery it lost. It is timing the teardown into the display manager rather than away from it.
The suggested fix works — verified
Applied the equivalent of your fix (removed /etc/mkinitcpio.conf.d/nvidia.conf entirely, rebuilt), and rebooted on battery, the condition that failed twice:
20:02:56 supergfxd: do_driver_action: action = rmmod, [... 10DE:2820 ...]
20:02:56 supergfxd: reload: Reloaded gfx mode: Integrated
No Unloading driver, no Did rmmod lines — nothing to remove, so the call is a no-op and returns instantly. Zero NVIDIA kernel messages in the entire boot. The deadlock isn't avoided, it's unreachable.
Side benefit: the kernel phase dropped from 25.0 s to 11.8 s (total boot 44.5 s → 29.1 s), from not loading a driver stack that was never used.
Confirmed safe on this hybrid system for the reasons this issue already gives: amdgpu owns fb0/fbcon (fbcon: amdgpudrmfb (fb0) is primary device), the NVIDIA card exposes no CRTC, and the kms hook is retained by omarchy_hooks.conf's existing hybrid check — so Plymouth and the LUKS prompt are unaffected. nouveau did not get pulled in, because autodetect runs before kms and nouveau isn't loaded.
System details
- Omarchy 4.0.2-1, kernel 7.1.9-arch1-2, Limine + UKI, LUKS + btrfs
- ASUS laptop: AMD Strix (Radeon 880M/890M)
[1002:150e]iGPU — drives the only panel (eDP-1) - NVIDIA AD106M
[10de:2820]dGPU — no display attached,Cannot find any crtc or sizes nvidia-open-dkms610.57.04,supergfxctl5.2.7-2, hibernation configured
Happy to provide full journals from the failed boots if useful.
Confirmed on another hybrid ASUS: ROG Strix G834JZ (i9-13980HX + RTX 4080 Mobile, nvidia-open-dkms 610.57.04, linux 7.2.3-arch1-2, LUKS + btrfs, Limine UKI, hibernation via omarchy hibernation setup, Omarchy dev 4.0.0.r2029).
It is not only manual systemctl hibernate. upower's critical-battery action (CriticalPowerAction=Auto, battery at 1 %) requested suspend-then-hibernate; systemd-sleep skipped the suspend leg because the charge was under its 5 % threshold and hibernated directly, the 10.9 GB image was written fine, and the next boot threw it away:
PM: Image successfully loaded
NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. ...
nvidia 0000:01:00.0: PM: pci_pm_freeze(): nv_pmops_freeze [nvidia] returns -5
nvidia 0000:01:00.0: PM: failed to quiesce async: error -5
PM: hibernation: Failed to load image, recovering.
PM: hibernation: resume failed (-5)
nvidia was loaded from the initramfs (/etc/mkinitcpio.conf.d/nvidia.conf) a few milliseconds before the resume ran. PreserveVideoMemoryAllocations: 1 and UseKernelSuspendNotifiers: 1 are nvidia-utils 610's defaults (/proc/driver/nvidia/params), so nothing configured in the real root, services included, can reach the initramfs instance. On a hybrid laptop with hibernation set up, every low-battery sleep therefore ends in a cold boot.
#8263's approach (skip the early-load when another display controller exists) matches what I applied locally. One belt-and-braces variant that may be worth considering alongside it: a zz- mkinitcpio drop-in that filters the four nvidia modules out of MODULES whenever a non-NVIDIA class-0x03 PCI device is present, so a re-created nvidia.conf cannot silently bring the failure back.
Corroborating on a third GPU-vendor combo with the exact same kernel signature, triggered by a plain manual hibernate (not a low-battery suspend-then-hibernate path).
System
- ASUS laptop, hybrid AMD Radeon 680M (Rembrandt) iGPU + NVIDIA GeForce RTX 3060 Mobile / Max-Q (GA106M) dGPU
nvidia-open-dkms610.57.04, kernel 7.2.3-arch1-3- Limine + UKI, LUKS + btrfs,
resume=/dev/mapper/root resume_offset=...(swapfile on the encrypted btrfs root) - Triggered by an ordinary
systemctl hibernatefrom the lock screen — no low battery, nosuspend-then-hibernate
Log
PM: Image loading progress: 100%
PM: hibernation: Read 5545216 kbytes in 4.07 seconds (1362.46 MB/s)
PM: Image successfully loaded
nvidia 0000:01:00.0: PM: pci_pm_freeze(): nv_pmops_freeze [nvidia] returns -5
nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_freeze returns -5
nvidia 0000:01:00.0: PM: failed to quiesce async: error -5
amdgpu 0000:09:00.0: SMU is resumed successfully!
PM: hibernation: Failed to load image, recovering.
PM: hibernation: resume failed (-5)
Identical to the signature already reported here, confirming this isn't specific to Intel+NVIDIA — it reproduces on AMD+NVIDIA hybrids too, and on the plain manual hibernate path, not just low-battery suspend-then-hibernate.
Extra data point on the PreserveVideoMemoryAllocations angle
On this system NVreg_PreserveVideoMemoryAllocations is unset (/sys/module/nvidia/parameters/NVreg_PreserveVideoMemoryAllocations empty) and nvidia-hibernate.service/nvidia-suspend.service/nvidia-resume.service are all present but disabled — so nothing in the real root has PreserveVideoMemoryAllocations configured at all, and the failure still reproduces identically. That's consistent with this issue's conclusion that the culprit is the early MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) instance from install/hardware/nvidia.sh's /etc/mkinitcpio.conf.d/nvidia.conf — root-side driver config (or lack of it) can't reach that instance either way.
About to apply the fix from this thread (removing /etc/mkinitcpio.conf.d/nvidia.conf and rebuilding) — will report back after a few hibernate cycles.
Filed by Claude Sonnet 5 via Claude Code.
Confirming on a fourth hardware combo, and adding the driver-side mechanism for why pci_pm_freeze returns -EIO — plus one dead end worth documenting so nobody else spends time on it.
The root cause in the issue body is correct and the fix works here. What follows is supplementary.
System
- MSI Crosshair 15 B12UGZ — Intel Alder Lake-P Iris Xe (
0000:00:02.0,i915) + NVIDIA RTX 3070 Mobile (0000:01:00.0) - Panel
eDP-1is on the Intel iGPU; the NVIDIA card exposes onlyHDMI-A-1, disconnected ([drm] Cannot find any crtc or sizes, as described) - Omarchy 4.0.4-1, kernel 7.2.5-3-omarchy,
nvidia-open-dkms/nvidia-utils610.57.04-1 - Limine + UKI, LUKS + btrfs,
/swap/swapfilewithresume=/dev/mapper/root resume_offset=…
Same trigger as @gladimdim: upower's CriticalPowerAction fired at 2%, systemd-sleep skipped the suspend leg (BAT1: Found battery with capacity below threshold (2% <= 5%)) and hibernated directly. Session lost on resume.
The driver-side mechanism
The image loads completely — the failure is strictly in the device-freeze handover that follows:
[23.408137] PM: Image successfully loaded
[23.408146] NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter
is set. System Power Management attempted without driver procfs
suspend interface. Please refer to the 'Configuring Power Management
Support' section in the driver README.
[23.408200] nvidia 0000:01:00.0: PM: pci_pm_freeze(): nv_pmops_freeze returns -5
[23.408254] nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_freeze returns -5
[23.408304] nvidia 0000:01:00.0: PM: failed to quiesce async: error -5
PM: hibernation: Failed to load image, recovering.
PM: hibernation: resume failed (-5)
The NVRM: line above the failure explains it. Two packaged modprobe drop-ins combine badly, and the modconf hook bundles both into the initramfs alongside the modules:
/usr/lib/modprobe.d/gsr-nvidia.conf— fromgpu-screen-recorder— setsNVreg_PreserveVideoMemoryAllocations=1/usr/lib/modprobe.d/nvidia-sleep.conf— fromnvidia-utils— setsNVreg_UseKernelSuspendNotifiers=1
With PreserveVideoMemoryAllocations=1 the driver wants the procfs handshake at /proc/driver/nvidia/suspend, but UseKernelSuspendNotifiers=1 is the mechanism that replaces that interface, so the file does not exist. Nothing in an initramfs could perform that handshake anyway. The freeze callback refuses, and the restore is discarded.
Worth flagging that gpu-screen-recorder is shipped by Omarchy, so on a hybrid machine with it installed this is reachable out of the box.
Timing matches the issue's analysis exactly — nvidia initialises at 23.405s, three milliseconds before the resume hook runs at 23.408s.
Dead end: the nvidia sleep services do not help
Since the message names a missing procfs interface, enabling the driver's own units looks like the obvious fix. It is not:
nvidia-suspend.service disabled
nvidia-hibernate.service disabled
nvidia-resume.service disabled
/usr/bin/nvidia-sleep.sh opens with:
if [ ! -f /proc/driver/nvidia/suspend ]; then
exit 0
fi
So with UseKernelSuspendNotifiers=1 those units are no-ops by design, and they are correctly left disabled. Enabling them changes nothing.
Fix confirmed
Exactly as described in the issue — commenting out the MODULES+= line in /etc/mkinitcpio.conf.d/nvidia.conf and running limine-mkinitcpio. The kms hook is retained (Intel still owns early KMS at the LUKS prompt), and nvidia loads normally later in boot.
Before: every resume produced a new boot id with resume failed (-5).
After:
22:36:55 PM: hibernation: hibernation entry
22:37:42 PM: hibernation: hibernation exit
Entry and exit within a single boot id, session fully restored.
One maintenance note: /etc/mkinitcpio.conf.d/nvidia.conf is owned by no package, so pacman -Qo cannot find it and an Omarchy hardware re-apply can silently recreate it — re-breaking resume with no indication of what changed.
Confirming on another hybrid combo, with two Omarchy-specific details the workaround above needs.
System
HP Victus 15-fb1xxx: AMD Radeon 680M (Rembrandt) iGPU + NVIDIA RTX 2050 (GA107) dGPU, supergfxd in Integrated mode with Omarchy's force-igpu sleep hook. Omarchy 4.0.4-1, linux-omarchy 7.2.5-3, nvidia-open-dkms 610.57.04-1, Limine UKI, LUKS + btrfs, /swap/swapfile with resume=/dev/mapper/root resume_offset=….
Failure (plain systemctl hibernate)
PM: Image signature found, resuming
PM: hibernation: Read 2629128 kbytes in 1.98 seconds (1327.84 MB/s)
PM: Image successfully loaded
NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. ...
nvidia 0000:01:00.0: PM: pci_pm_freeze(): nv_pmops_freeze [nvidia] returns -5
nvidia 0000:01:00.0: PM: failed to quiesce async: error -5
PM: hibernation: Failed to load image, recovering.
PM: hibernation: resume failed (-5)
force-igpu does switch to Vfio before hibernating (Graphics mode changed to Vfio), but that only affects the kernel being saved. The restore kernel still early-loads nvidia from the initramfs (NVRM: loading … is logged before Image signature found), so the hook can't help with this.
Side effect: a failed resume leaves the machine stuck in Vfio mode
force-igpu persists Vfio for the hibernate and keeps its restore marker in /run, so after the fallback cold boot the marker is gone and nothing switches back. The machine comes up with "mode": "Vfio" in /etc/supergfxd.conf and the dGPU bound to vfio-pci (powered, not removed) until you run supergfxctl -m Integrated by hand.
Workaround: rebuild with limine-mkinitcpio, not mkinitcpio -P
The zz- drop-in from the issue body works unchanged. But on a stock Omarchy install /etc/mkinitcpio.d/ has no presets (the UKIs are built by limine-mkinitcpio-hook), so mkinitcpio -P builds nothing. Use:
sudo limine-mkinitcpio
That rebuilt both omarchy_linux-omarchy.efi and omarchy_linux.efi with MODULES=(thunderbolt) (was thunderbolt nvidia nvidia_modeset nvidia_uvm nvidia_drm). The kms hook stays in, because omarchy_hooks.conf keeps it on hybrid machines, so the LUKS prompt still gets early KMS from amdgpu.
Next hibernate → power-on restored the session (System returned from sleep operation 'hibernate', same boot ID, no nv_pmops_freeze), and force-igpu post switched Vfio → Integrated as intended.
(On this machine supergfxd also wedges at boot per #10445, which separately breaks suspend/hibernate. The workaround for that is in my comment there.)
Read against current quattro (c352b62): the mechanism in this report holds in source. install/hardware/nvidia.sh still writes /etc/mkinitcpio.conf.d/nvidia.conf with MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) on every NVIDIA machine, hybrid or not. mkinitcpio's init loads explicit MODULES before it runs any hook, so the driver is up before resume, which omarchy-hibernation-setup appends last and which cannot run before unlock anyway. omarchy_hooks.conf already tells hybrid machines apart for the kms hook, but nothing removes the NVIDIA modules there. This was not reproduced here: it needs hybrid hardware and a real hibernate cycle, which a worker cannot provide, but the four confirmations above on Intel and AMD iGPUs carry the same log and the same fix.
#8263 is the fix: it writes nvidia.conf only when NVIDIA owns every display controller, and a migration removes it from existing hybrid installs and rebuilds the image with limine-mkinitcpio (not mkinitcpio -P, which builds nothing on a stock install, as @staruxian noted). It is now linked to close this issue when it merges. #10065 overlaps it with a broader, hibernation-scoped change that keeps every native GPU driver out of the initramfs and puts the LUKS prompt on simpledrm; choosing between them is the maintainer's call, and #8263 is the older and narrower of the two.
Checked by Claude Opus 5.5 and, as a second opinion, Codex Medium, which agreed the early load is proven in source and that #8263 covers ordinary Intel and AMD plus NVIDIA pairs. It added one limit worth knowing: the check reads which GPUs exist, not which one the screen is wired to, so a hybrid laptop whose only panel hangs off the NVIDIA card would lose native early KMS at the unlock prompt. Its independence from this review is not guaranteed.
This waits on the maintainer's decision on #8263.
Confirming on Intel Arrow Lake + NVIDIA Blackwell, still present on Omarchy 4.0.6.
System
- Lenovo laptop, Intel Arrow Lake-S iGPU (i915) + NVIDIA GeForce RTX 5070 Laptop / Max-Q (GB206M) dGPU
nvidia-open-dkms615.78.08,linux-omarchy7.2.8-9, Omarchy 4.0.6-1- LUKS + btrfs swapfile, Limine UKI, hibernation via
omarchy hibernation setup
Failed resume (same signature)
PM: Image successfully loaded
NVRM: GPU 0000:02:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface.
nvidia 0000:02:00.0: PM: pci_pm_freeze(): nv_pmops_freeze [nvidia] returns -5
PM: hibernation: Failed to load image, recovering.
PM: hibernation: resume failed (-5)
Enabling the nvidia power services alone is not enough
PreserveVideoMemoryAllocations=1 comes from gpu-screen-recorder (/usr/lib/modprobe.d/gsr-nvidia.conf), and nvidia-suspend / nvidia-hibernate / nvidia-resume were disabled (cf. #8126 / #10433).
- Enabling those services only:
nvidia-hibernate.serviceran fine on entry, but resume still failed with the identicalnv_pmops_freeze → -5, because the initramfs-loaded driver instance freezes before any userspace service can run. - Additionally moving
/etc/mkinitcpio.conf.d/nvidia.confaside and rebuilding withlimine-mkinitcpio: resume works, same boot ID continues,nvidia-resume.serviceruns, and the dGPU loads normally later from the root fs (nvidia-smiOK). Thenouveaublacklist is still present inside the initramfs, so thekmshook bundling nouveau is harmless.
So on hybrid machines, both fixes are needed: #8263 (no early NVIDIA load) and enabling the nvidia power services.
Read again against current quattro (087f73d) after the report from @FlowerFruitMountain. Nothing has changed: install/hardware/nvidia.sh still writes MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) on every NVIDIA machine, hybrid or not, and #8263 is still open. The new report adds Arrow Lake with a Blackwell dGPU, nvidia-open-dkms 615 and Omarchy 4.0.6 to the confirmations, with the same log.
The thread does not show that the NVIDIA power services are also needed for this failure. The new report tried the services with the early load still in place, which failed, and then the services with the early load removed, which worked. It never tried removing the early load with the services left disabled. @jenseralmeida did, and resume worked. They also showed that nvidia-sleep.sh exits at once when /proc/driver/nvidia/suspend is absent, so a service that "ran fine" may have done nothing. In any case, no service in the real root can run before the initramfs-loaded driver refuses the freeze. Whether those services are needed for suspend is a separate question, tracked in #8126 and #10433. For this issue, #8263 on its own is still the fix.
Checked by Claude Opus 5.5. Codex Medium reviewed the same thread and source as a second opinion and agreed on all three points: the early load is still unconditional on quattro, the services are not shown to be needed here, and #8263 is still the right fix. Its independence from this review is not guaranteed. Nothing was run, because it needs hybrid hardware and a real hibernate cycle.
This still waits on the maintainer's decision on #8263.
Another working fix: keep early nvidia, unload it before resume
Same failure here on a Lenovo Legion Pro 5 16IRX8 (82WK), Intel Raptor Lake-S UHD + NVIDIA GeForce RTX 4070 Laptop GPU (AD106M), nvidia-open 615.78.08, Omarchy 4.0.6, kernel 7.2.8-9-omarchy, LUKS + btrfs swapfile + Limine UKI.
Dropping nvidia from the initramfs (as in #8263) fixed resume for me too, but it swapped DRM probe order (panel renamed eDP-2 → eDP-1). Instead I kept the early load and made it safe for resume:
- Initramfs-only options (
/etc/modprobe.d/zz-nvidia-initrd.confinside the initramfs only):NVreg_PreserveVideoMemoryAllocations=0,nvidia_drm fbdev=0. The boot kernel has no VRAM worth keeping, so freeze no longer returns -5. - An
nvidia-handoffinitcpio hook afterencryptand beforeresumethat quits plymouth and rmmodsnvidia_drm nvidia_uvm nvidia_modeset nvidia, retrying for up to about 5 s. The restored kernel's own nvidia then finds a free GPU. On a cold boot, udev reloads it from the real root with Preserve=1. - The real root keeps Preserve=1, with nvidia-suspend/hibernate/resume.service enabled.
The order matters: unloading after resume gave Xid 31 (MMU fault restoring VRAM) and black screens.
Tested 2026-10-26: cold boots, and suspend → hibernate → resume several times. The desktop comes back on HDMI with no Xid. Since nvidia stays in the initramfs, this might also work for single-GPU desktops (#10039), where dropping early KMS isn't an option. I haven't tested that.
Hook, mkinitcpio drop-in, notes: https://github.com/softerdk/lenovo-legion-pro5-nvidia-rtx4070-omarchy-hibernate-fix
Read again against current quattro (e2c7007) after @softerdk's report, and with #16848, which was opened since the last review. install/hardware/nvidia.sh still writes MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) on every supported NVIDIA machine, hybrid or not, so nothing on quattro has changed for this issue. #8263 is still open, merges cleanly, and is linked to close it.
#16848 overlaps this issue but does not fix all of it. It was opened to make the initramfs smaller. It removes the early NVIDIA modules only when the NVIDIA card has no connector nodes at all, and it never reads a connector's status. A port wired to the dGPU with nothing plugged in still counts as a display. That means @jenseralmeida's MSI, whose NVIDIA card exposes a disconnected HDMI-A-1, would keep the early load and keep failing to resume, and so would the Legion @softerdk describes, with HDMI on the dGPU. It would fix the hybrids whose dGPU has no outputs. #8263 decides by which GPUs are present, so it covers both kinds of machine. If #16848 merges, it should not close this issue.
@softerdk's alternative keeps the early load and unloads the driver in the initramfs after encrypt and before resume. The order makes sense: once the driver is unloaded, nothing is left for the restore kernel to fail to freeze. The cost is a new dependency on every boot: the unload has to finish, and a 5-second retry loop cannot bound an rmmod that hangs. @zc0rp10's report above shows rmmod nvidia_drm hanging during supergfxd teardown, though that was in the running system, not the initramfs. The Preserve=0 file also has to stay out of the real root's /etc/modprobe.d, which modconf copies into the image. What it gains over #8263 is native early KMS for a display that really is wired to the dGPU. #8263 gives that up on hybrids, because it checks which GPUs are present, not which one drives the panel. Which trade-off to take is the maintainer's call.
The eDP-2 → eDP-1 rename is plausible. DRM numbers connectors of each type in the order drivers register them, so once NVIDIA stops loading first, the iGPU's panel can take eDP-1. Omarchy's own display settings should survive it: bin/omarchy-hyprland-monitor-identity and default/hypr/monitor-settings.lua key saved settings by the monitor's description, not its connector. Only a monitor with no description, or a hand-written rule naming eDP-2 in ~/.config/hypr/monitors.lua, would lose its match.
Checked by Claude Opus 5.5 from source and the thread. Codex Medium and muse-wonder (via pi, thinking high) reviewed the same source, thread and diffs as second opinions and agreed on all four points: the early load is still unconditional, #16848 is only a partial fix, the handoff hook adds a new dependency to every boot, and the rename is plausible without breaking Omarchy's saved settings. Their independence from this review is not guaranteed. Nothing was run, because this needs hybrid hardware and a real hibernate cycle.
This still waits on the maintainer's decision on #8263.
Confirming this still reproduces on current versions and newer hardware, and that the zz- drop-in variant suggested above by @gladimdim works.
System
- ASUS ROG Zephyrus G16 GU605CR: Intel Arrow Lake-P (Arc 130T/140T,
i915) + NVIDIA RTX 5070 Ti Mobile (GB205M, Blackwell), supergfxctl Hybrid - Omarchy 4.0.6-1, kernel 7.1.4-1-g14,
nvidia-open-dkms/nvidia-utils615.78.08 (newer than the 610.57 in earlier reports, still affected) - Limine + UKI, LUKS + btrfs,
/swap/swapfile, hibernation viaomarchy-hibernation-setup
Failure (plain systemctl hibernate)
PM: hibernation: Read 10015768 kbytes in 14.13 seconds (708.83 MB/s)
PM: Image successfully loaded
nvidia 0000:01:00.0: PM: pci_pm_freeze(): nv_pmops_freeze [nvidia] returns -5
nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_freeze returns -5
nvidia 0000:01:00.0: PM: failed to quiesce async: error -5
Resulted in a cold boot with a new boot ID.
Fix verified: zz- drop-in, leaving nvidia.conf untouched
/etc/mkinitcpio.conf.d/zz-hibernate-no-nvidia.conf:
_modules=()
for _m in "${MODULES[@]}"; do
[[ $_m == nvidia* ]] || _modules+=("$_m")
done
MODULES=("${_modules[@]}")
unset _modules _m
After limine-mkinitcpio, every UKI's .initrd had no nvidia GPU modules. Hibernate then resumed in the same boot ID (hibernation entry 15:24:47 → hibernation exit 15:28:06), with the session restored. Plymouth and the LUKS prompt were unaffected (i915 via the retained kms hook).
Because it filters after nvidia.conf is sourced, re-running install/hardware/nvidia.sh can't silently re-break resume. That may be worth folding into #8263.
Filed by Claude Opus 5.5 via Claude Code.
@asheghi's report adds a Zephyrus G16 with Arrow Lake and an RTX 5070 Ti to the confirmations: the image was read successfully, NVIDIA's freeze returned -5, and filtering the modules followed by limine-mkinitcpio restored the session. That is evidence for the workaround on that machine; it does not verify a particular PR revision. Current quattro (c6be7abb9) still writes the early-load setting. #8263 already changes the installer to remove nvidia.conf on hybrid systems, so re-running that installer would preserve its fix.
There is a newer interaction to resolve: #18600 proposes nvidia_module.conf, which would add the NVIDIA modules independently of nvidia.conf, including on these hybrid machines. Removing nvidia.conf through #8263 would not stop that second writer. The late zz- filter in the new report sorts after both files and addresses that interaction. #18600 is still open; this is a collision between proposed changes.
Checked from source and the thread by Codex High in Codex, with second opinions from Opus 5.5 High and muse-wonder via pi, thinking high. They agreed on these points; their independence from this review is not guaranteed. Nothing was run: a worker cannot exercise this hybrid hardware and hibernate cycle. This waits on the maintainer for the already-linked #8263 and its interaction with #18600.
Confirming on Omarchy 4.5.0-3 with NVIDIA's proprietary legacy driver. Every report so far uses nvidia-open; this one is nvidia-580xx-dkms on a Pascal card, so the failure doesn't depend on the open kernel modules.
- Hybrid Intel (i915) + NVIDIA GeForce GTX 1050 Mobile (Pascal), supergfxctl in Hybrid mode
- Omarchy 4.5.0-3, linux-omarchy 7.2.15-1,
nvidia-580xx-dkms580.178.04 - LUKS + btrfs
/swap/swapfile, Limine UKI, hibernation set up withomarchy hibernation setup
The image is read in full, then thrown away with the same signature:
PM: Image successfully loaded
NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. ...
nvidia 0000:01:00.0: PM: pci_pm_freeze(): nv_pmops_freeze [nvidia] returns -5
PM: hibernation: Failed to load image, recovering.
On the 580xx branch, NVreg_PreserveVideoMemoryAllocations=1 comes from the package's own /usr/lib/modprobe.d/nvidia-sleep.conf (owned by nvidia-580xx-utils), just as with the 610/615 defaults noted above.
A late zz- drop-in that filters nvidia* out of MODULES, followed by limine-mkinitcpio, fixed it. A full systemctl hibernate round trip restored the session, and the driver still loads from the root filesystem for PRIME offload (nvidia-smi works).
@ujo4eva's report adds a proprietary nvidia-580xx-dkms / Pascal reproduction on Omarchy 4.5.0-3, with the same successful image read followed by nv_pmops_freeze returning -5, and a reported successful resume after filtering the early NVIDIA modules and rebuilding. Current quattro (9f2e2e94ab) selects the 580xx packages separately but then writes the same early-load MODULES setting for both driver branches. The new report fits the existing mechanism; it does not verify a particular PR revision.
#8263 remains open and already links this issue. Its hybrid-GPU check does not depend on which NVIDIA driver branch is installed. The newer #19328 targets v4-5-0 and removes early NVIDIA modules only when the dGPU exposes no display connectors; this report does not include the connector topology needed to establish whether that narrower change covers this machine. The previously noted interaction with #18600 remains: it would add the modules through another drop-in even after nvidia.conf is removed.
Checked from source and the thread by Codex High in Codex. Opus 5.5 High and muse-wonder via pi, thinking high, reviewed as second opinions and agreed on these points; their independence from this review is not guaranteed. Nothing was run: a worker cannot exercise these physical GPUs and the hibernate cycle. This remains waiting on the maintainer for the already-linked #8263 and its interaction with #18600.
Confirming on a hybrid laptop whose NVIDIA outputs are in use, which the proposed fixes don't cover, plus a PR that keeps early KMS.
System: Dell Precision 7680, Intel Raptor Lake (i915, internal eDP) + NVIDIA RTX 2000 Ada Laptop (AD107GLM). The dGPU owns DP-1, DP-2 and HDMI-A-1, and my external monitor is on those outputs (tested over USB-C DisplayPort and HDMI). Omarchy 4.5.0-3, linux-omarchy 7.2.15, nvidia-open-dkms 615.78.08, LUKS + btrfs /swap/swapfile, Limine. Same log as the issue: the image is read in full, then nv_pmops_freeze returns -5.
Why #8263 and #16848 / #19328 don't fit this machine. #19328 keeps early NVIDIA here because the dGPU has connectors, so resume stays broken. #8263 fixes resume but takes the LUKS prompt off that monitor. NVIDIA-only desktops (#10039) can't drop early KMS at all.
Root cause is in the driver. nv_pm_notifier() ignores PM_RESTORE_PREPARE. It is still unchanged in 620.73.04, the latest tag (NVIDIA/open-gpu-kernel-modules#1343).
PR: #21042 adds an omarchy-nvidia-resume hook right before resume. Only when the swap holds a hibernation image, it stops the splash and unloads the NVIDIA modules, so nothing refuses the freeze. Normal boots keep early KMS. It works alongside #8263 and #19328, because it only acts while nvidia is still in MODULES. This is the approach described above by softerdk and on NVIDIA #1343 by michsob. On this machine the session was restored on all 7 hibernate/resume cycles on 4.5 (Plymouth) and all 4 on the 4.6 pre-release, with no Xid errors.
Until it lands, a standalone installer with the same hook code (different file names, and it steps aside once Omarchy ships the hook): https://github.com/migbernsil/omarchy-nvidia-hibernate-fix
The Precision 7680 report adds a case where the NVIDIA GPU drives the external monitor. #8263 removes early NVIDIA graphics on hybrids, which can take the disk unlock prompt off that monitor. #21042 keeps early graphics for the unlock prompt and unloads NVIDIA just before restoring a detected hibernation image.
Codex High in Codex and Opus 5.5 High and muse-wonder via pi, thinking high checked both diffs against quattro and agreed on that behavior. The reviewers may have seen the same reasoning. The earlier ISO worker run used simulated modules. The exact-head test with the current splash is pending in #21042. Testing on battery would also check that the driver unload completes after the splash releases the GPU. The issue remains with the maintainer. Hardware test request
Two hardware reports for #21042 at c4bf4be now show successful restores. The original reporter restored the session on AC and battery with Plymouth. The PR author restored it three times with Omarchy splash on 4.6.0-rc2 and still saw the cold-boot unlock prompt on the NVIDIA-wired monitor. Preserving that prompt makes #21042 the better fit for this issue. Plymouth test · Omarchy splash test
Codex High in Codex, Opus 5.5 High and muse-wonder via pi, thinking high checked the reports and source and agreed. The reviewers may have seen the same reasoning. Battery testing with Omarchy splash on the NVIDIA-wired display remains open. The issue stays with the maintainer while #21042 awaits the reporter's full SHA confirmation. Verification request