Hibernation with Nvidia GPU Issues
Hibernation on systems with Nvidia GPUs have proven to have a variety of issues. This issue will be used as sort of a meta issue to keep track of the current state of the situation, as well as gather information on experiments that work for different people and hopefully narrow in on a proper solve for all systems.
As we gather info, please always be sure to share details of your specific system setup inclusive of CPU, GPU, driver, and system type (desktop vs laptop). Nvidia has proven to have a lot of variance so this will not be a one-size-fits-all solution. I suspect we'll have further issues dealing with laptops with iGPUs since it could technically be either GPU at boot.
#5500 has a good amount of information that ultimately lead to #5519. However in research, and testing, it proved we're still not quite there.
According to Arch Wiki, the values of the module parameters vary based on the driver set. This means to have a proper solution, we'll need to handle this for devices capable of running 595+ drivers, as well as those pinned to 580xx.
Introduced as an "experimental" interface (originally named NVreg_PreserveVideoMemoryAllocations in the 430-590 series drivers), it enables saving all video memory (given enough space on disk or RAM). With 595+ drivers, it has been succeeded by the NVreg_UseKernelSuspendNotifiers=1 kernel module parameter which needs to be set to save and restore all video memory contents.
The same section of the wiki highlights issues with hibernate used in-tandem with early KMS, which we do use in Omarchy to provide a smooth boot experience.
When using early KMS, i.e. when the loading of nvidia module happens in the initramfs, it has no access to NVreg_TemporaryFilePath which stores the previous video memory: early KMS should not be used if hibernation is desired.
Helpful Hints
Check current params using this command after reboot to ensure you're operating from a known state.
cat /proc/driver/nvidia/params | grep -E 'PreserveVideoMemoryAllocations|UseKernelSuspendNotifiers'
Always run limine-update after modifying module params or mkinicpio confs and restart before trying a hibernation test to ensure you're operating from a good state.
Test Findings
I'll kick us off with some findings on my main Nvidia machine.
Device Type: Desktop Motherboard: ASUS ROG Strix X870-I CPU: AMD Ryzen 9 9950X3D GPU: RTX 5090 (Blackwell GB202) Kernel: Linux 7.0.3 Driver: nvidia-open-dkms 595.71.05
Test 1
With the two module params set as below and the default /etc/mkinitcpio.conf.d/nvidia.conf (early KMS)
PreserveVideoMemoryAllocations: 1
UseKernelSuspendNotifiers: 1
Result System boots as normal as though hibernation never happened. No session restored.
Logs Show Hibernate writes the image and enters S4 successfully. On wake, a fresh boot runs (new journald boot ID), the initramfs resume hook finds the image and reads it back (PM: Image signature found, resuming → PM: Image successfully loaded), and then resume aborts:
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: resume failed (-5)
PM: hibernation: Failed to load image, recovering
Test 2
With the two module params set as below (proper for Blackwell) and the default /etc/mkinicpio.conf.d/nvidia.conf (early KMS). This is the state the #5519 put us in.
PreserveVideoMemoryAllocations: 0
UseKernelSuspendNotifiers: 1
Result System hibernates correctly (verified visually: GPU lights off, every fan off). On power-on, LUKS unlocks, then the landed in Hyprland booted to safe mode after some length of time.
Logs Show Kernel hibernation cycle completes end-to-end. Image written, S4 entered (~125s of real sleep, confirmed by ~125s wall-clock advance with zero monotonic-clock advance). On wake, the initramfs resume hook restores the saved kernel context (same boot ID across the cycle), PM: hibernation: hibernation exit fires cleanly. ~55 seconds later, the NVIDIA GPU emits a fatal Xid cascade:
NVRM: Xid 31, pid=355, name=modprobe, MMU Fault: ENGINE CE4_PBDMA0 HUBCLIENT_ESC0
Fault is of type FAULT_PDE ACCESS_TYPE_VIRT_READ NVRM: Xid 13: Graphics Exception (against Hyprland)
NVRM: Xid 154: GPU recovery action changed to Node Reboot Required
NVRM: nvGpuOpsReportFatalError: uvm encountered global fatal error 0x60,
requiring os reboot to recover.
NVRM: Xid 109: CTX SWITCH TIMEOUT (against Xorg)
NVRM: GSP-RM is slow / GSP Timeout / Failed to get RM state, timeout
Hyprland crashes with SIGABRT in CHyprOpenGLImpl::begin while taking a window snapshot during VT-switch restore. The Xid 31 is charged to pid=modprobe — the post-resume udev re-bring-up of the GPU. Appears to be an upstream NVIDIA bug specific to Blackwell + open 595. See ublue-os/bazzite#4492 and NVIDIA/open-gpu-kernel-modules#1080 for similar reports.
Test 3
With the two module params set as below (proper for Blackwell) and the default /etc/mkinicpio.conf.d/nvidia.conf removed (no early KMS).
PreserveVideoMemoryAllocations: 0
UseKernelSuspendNotifiers: 1
Result System hibernates same as Test 2. On power-on, LUKS unlocks, then the user gets a pure black screen with no compositor at all — strictly worse than Test 2's crashed-Hyprland state. Hard power-cycle is the only recovery.
Note In this variant, the Plymouth loader appears in the top left of the screen instead of the middle. I suspect it has something to do with not loading the Nvidia modules early so it fails to properly detect the screen in time or re-draw after it does. This could be something that could be fixed on the Plymouth end but would need further exploration there.
Logs Show Identical kernel-level cycle to Test 2 (image written, S4 entered, resumed cleanly, same Xid 31 → 154 → uvm 0x60 → GSP timeout cascade ~55s after resume). The kernel doesn't care whether nvidia is in initramfs. With nvidia loaded later via udev (post-init, not from initramfs), the display path never reaches a renderable state on resume — Hyprland never gets to a point where it can even partially render.
@NicolasDorier it appears you were able to get this working with the info you provided on some set of hardware. Could you share the details of that and if there are perhaps any other tweaks that this jogs for you that were required to make everything work properly for your system?
I will get back to my laptop tomorrow, so I can provide more logs and spec. My laptop is Razer Blade 16 (2023).
Btw, note that UseKernelSuspendNotifiers=1 is the default on arch. I've set it in nvidia.conf purely to keep the context together.
The default for PreserveVideoMemoryAllocations is 2, which is what my PR ultimately changed. (But it was 1 before because gpu screen recorder https://github.com/omacom-io/omarchy-pkgs/pull/84)
Test 1: it was my issue.
Test 2: on my side the resume worked properly. I will share the logs tomorrow.
Also note that I installed Omarchy on my Razer Blade maybe 1 or 2 weeks ago, so I probably had the latest drivers. (I also updated the BIOS, though I don't think that is relevant)
Another thing that may be of importance: This is dual GPU, with the integrated one (Intel) being used by hyprland.
@ryanrhughes here you go.
Device Type: Laptop
System: Razer Blade 16 - RZ09-0483
Motherboard: Razer SO690
CPU: 13th Gen Intel Core i9-13950HX
GPU: Intel Raptor Lake-S UHD Graphics + NVIDIA GeForce RTX 4090 Laptop GPU
Kernel: Linux 6.19.13-arch1-1
Driver: nvidia-open-dkms 595.58.03-2
Test 1: System boots as normal as though hibernation never happened. No session restored. Test 2: Resume function as expected Test 3: Resume function as expected
However, for Test 2 and Test 3, it seems that sometimes (not always), the display becomes glitchy and I need to reboot. This is maybe not related to our problem though. outside of this, I could confirm that the resume succeed in both case.
However, I found something like this in my logs. (mentioned on https://github.com/NVIDIA/open-gpu-kernel-modules/issues/1099)
May 04 19:26:13 neon-snake kernel: NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 4068879946 heartbeat 0 heartbeatWithOffsetMs 0 diff 4068879946 timeout 5200
May 04 19:26:13 neon-snake kernel: NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out
Just updated Omarchy, no change of behavior.
Device Type: Laptop
System: Razer Blade 16 - RZ09-0483
Motherboard: Razer SO690
CPU: 13th Gen Intel Core i9-13950HX
GPU: Intel Raptor Lake-S UHD Graphics + NVIDIA GeForce RTX 4090 Laptop GPU
Kernel: Linux 7.0.3-arch1-2
Driver: nvidia-open-dkms 595.71.05-2
#5337 is solved https://github.com/basecamp/omarchy/issues/5337#issuecomment-4428918085
Can you share your spec here?
Adding my hat to the ring here. Also seeing my system boot as normal as though hibernation never happened. No session restored.
Version: Omarchy 3.7.1 Device Type: Desktop Motherboard: ASUS ROG STRIX Z590-E CPU: 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz GPU: NVIDIA GeForce RTX 3090, 595.71.05 Kernel: 7.0.3-arch1-2 Driver: nvidia-open-dkms 595.71.05
/proc/driver/nvidia/suspend does not exist on this system (present: capabilities, gpus, params, patches, registry, suspend_depth, version, warnings)
With PreserveVideoMemoryAllocations=1: resume fails with -5 procfs error
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: resume failed (-5)
With PreserveVideoMemoryAllocations=0: image loads 100%, then Xid 13 cascade → Xid 154 fatal, GPU unrecoverable without reboot
NVRM: Xid (PCI:0000:01:00): 13, pid=1962, name=spotify, Graphics Exception...
NVRM: Xid (PCI:0000:01:00): 154, GPU recovery action changed from 0x0 (None) to 0x2 (Node Reboot Required)
NVRM: nvGpuOpsReportFatalError: uvm encountered global fatal error 0x60, requiring os reboot to recover.
the fix described in #5500 did not work for me and caused the Xid 154 crash above.
Test 3 (removing NVIDIA from initramfs) was attempted but autodetect pulls the modules in regardless since they're loaded at runtime.
@jamielife
Did you tried both? (NVreg_UseKernelSuspendNotifiers=1 AND NVreg_PreserveVideoMemoryAllocations=0)
options nvidia NVreg_PreserveVideoMemoryAllocations=0
options nvidia NVreg_UseKernelSuspendNotifiers=1
See https://github.com/basecamp/omarchy/pull/5519/changes
After reboot, double check with cat /proc/driver/nvidia/params , because I saw some package changing this config too...
@NicolasDorier
Tested with both NVreg_PreserveVideoMemoryAllocations=0 and NVreg_UseKernelSuspendNotifiers=1 explicitly set, with gsr-nvidia.conf overridden. Verified via /proc/driver/nvidia/params that both values loaded correctly before testing.
First attempt appeared to run with =0 but gsr-nvidia.conf was silently overriding back to =1, producing a different crash (Xid 13 cascade). Second attempt confirmed =0 loaded correctly via /proc/driver/nvidia/params.
With =0 confirmed, crash sequence was Xid 31 MMU fault during modprobe on resume, before nvidia-resume.service even completes, followed by Xid 154 fatal.
NVRM: Xid (PCI:0000:01:00): 31, pid=225, name=modprobe, channel 0x01000001, intr 00000000. MMU Fault: ENGINE CE2_PBDMA0 HUBCLIENT_ESC faulted @ 0x48_bbb1a000. Fault is of type FAULT_PDE ACCESS_TYPE_VIRT_READ
NVRM: Xid (PCI:0000:01:00): 154, GPU recovery action changed from 0x0 (None) to 0x2 (Node Reboot Required)
NVRM: nvGpuOpsReportFatalError: uvm encountered global fatal error 0x60, requiring os reboot to recover.
The Xid 31 hits before nvidia-resume.service even completes, so it seems like the driver is failing to remap GPU memory during resume. GPU unrecoverable without reboot.
I think the nvidia-resume.service stuff is for the "old" suspend interface stuff and isn't relevant with NVreg_UseKernelSuspendNotifiers.
About gsr-nvidia.conf, this should fix it if you updated the package.
Your error is new to me, never got this one.
I think part of the difference in your situation @NicolasDorier is you have a hybrid setup so you technically have 2 GPUs to work with when bringing things back online. In my case, as well as @jamielife's; we don't have that luxury and it HAS to get restored from the Nvidia GPU and seems to choke still even with these bits jiggled.
Thanks for your help @NicolasDorier, admittedly this is all a little above my pay grade, so forgive me if I'm misunderstanding, but just to clarify, I believe the gsr-nvidia.conf override was already handled manually before testing. I confirmed via /proc/driver/nvidia/params that both values loaded correctly before attempting hibernate:
PreserveVideoMemoryAllocations: 0
UseKernelSuspendNotifiers: 1
So the crash is happening with the correct values loaded, or is that not the case?
Also worth noting: for whatever reason, I still have gsr-nvidia.conf present at /usr/lib/modprobe.d/gsr-nvidia.conf containing options nvidia NVreg_PreserveVideoMemoryAllocations=1 on my Omarchy 3.7.1 install, not sure why it's still there, but it was handled with the manual override.
So it seems like maybe it's a separate issue from what your fix addresses? Again, sorry if I'm just muddying the waters. Happy to provide any additional logs if useful.
@jamielife yes, you have the correct values, so your override worked.
Ryan seems to be right, the only moving part with my setup is that I have hybrid GPU.
This problem has been plaguing my laptop for months, forcing me to hard reboot my laptop anytime I leave the system idle for any extended time. I've attempted a few fixes over the months, but thanks to #5500 I finally got hibernate to work! Here's my specs and the steps I took:
System Information
- Omarchy Version: 3.8.2
- Device: ThinkPad T1g Gen 8
- CPU: Intel Core Ultra 9 285H @ 5.40 GHz
- iGPU: Intel Arc Pro 130T/140T
- GPU: NVIDIA GeForce RTX 5070 Max-Q
- Kernel: 7.0.14-arch1-1
- Driver: nvidia-open-dkms 610.43.02-3
Test 1: Disabling PreserveVideoMemoryAllocations
- Checked current NVIDIA params with
sort /proc/driver/nvidia/paramsand sawPreserveVideoMemoryAllocationsandUseKernelSuspendNotifierswere both1. - Followed #5500 steps for changing Nvidia flags via masking
gsr-nvidia.conffile. Then setPreserveVideoMemoryAllocationsto 0 (I read this as a potential fix in a different thread that I've since lost). - Built changes with
limine-update. Rebooted - Ran
systemctl hibernatewhich failed to resume correctly. Instead of waking up, the system rebooted with my session restored after login. - Reverted
PreserveVideoMemoryAllocationsback to 1. Rebuilt initramfs again. Rebooted.
Test 2: Enable NVIDIA Services
- Ran:
sudo systemctl enable nvidia-suspend.service sudo systemctl enable nvidia-resume.service sudo systemctl enable nvidia-hibernate.service - Rebooted and tested again with
systemctl hibernate - Successfully resumed from hibernation! (After experiencing some initial glitching/delay during resume)
For me enabling the three NVIDIA services seems to have fixed my hibernate problems for now. Thanks @NicolasDorier
Okay, so I was able to get hibernation working on my desktop.
Since the logs repeatedly showed:
System returned from sleep operation 'hibernate'.
The swapfile/Btrfs resume setup was already correct:
resume=/dev/mapper/root resume_offset=34775941
And the NVIDIA services were also already enabled. The actual failure was NVIDIA being loaded too early from the UKI/initramfs, causing resume to fail with:
nv_pmops_freeze [nvidia] returns -5
The workaround was to disable the early NVIDIA mkinitcpio drop-in, rebuild the UKI, and reboot:
sudo mv /etc/mkinitcpio.conf.d/nvidia.conf /etc/mkinitcpio.conf.d/nvidia.conf.disabled
sudo limine-update
reboot
The tradeoff being that I might have a less polished boot/login experience. However, in practice I am not noticing that at all.
After rebooting, NVIDIA still loaded normally after startup (nvidia-smi worked), but hibernate/resume started working correctly.
Optionally, since I was bring promted for my password twice on resume. I kept the first password for LUKS disk unlock, but removed the second Hyprland/Omarchy lock prompt by commenting out these lines in ~/.config/hypr/hypridle.conf:
# before_sleep_cmd = loginctl lock-session
# inhibit_sleep = 3
I realize future Omarchy/NVIDIA/kernel updates may recreate/re-enable /etc/mkinitcpio.conf.d/nvidia.conf, so hibernation may break again if/when I update, but maybe we'll have a fix by then 🤞
@DrewDelong after Test 2, what is your UseKernelSuspendNotifiers and PreserveVideoMemoryAllocations from /proc/driver/nvidia/params ?
Regression: Arch extra's gpu-screen-recorder 6.0.0-1 reintroduces gsr-nvidia.conf (PreserveVideoMemoryAllocations=1), silently overriding Omarchy's fixed package
System: ASUS laptop, NVIDIA dGPU (open modules), nvidia-open-dkms 610.57.04-1, kernel 7.1.8-arch1-3, Omarchy 4.0.0, gpu-screen-recorder 6.0.0-1 — now installed from Arch extra, not the omarchy repo.
Symptom: every resume from hibernation fails and falls back to a cold boot (session lost). The journal shows the hibernation image is written and read back successfully (8 GB at ~1.7 GB/s), then the restore aborts:
NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set.
System Power Management attempted without driver procfs suspend interface. ...
PM: hibernation: Failed to load image, recovering.
PM: hibernation: resume failed (-5)
Why it's back: omarchy-pkgs#84 (merged 2026-04-30) fixed this by building gpu-screen-recorder 5.12.3-2 with -Dnvidia_suspend_fix=false, so it no longer installed gsr-nvidia.conf — and https://pkgs.omarchy.org/stable still serves that build. But Arch's official extra repo now ships gpu-screen-recorder 6.0.0-1 (built 2026-08-08, packaged by Arch), which version-outranks 5.12.3-2, so a normal system update silently replaces Omarchy's patched package. The Arch build installs /usr/lib/modprobe.d/gsr-nvidia.conf containing options nvidia NVreg_PreserveVideoMemoryAllocations=1 again. With the nvidia modules early-loaded in the initramfs (Omarchy's nvidia.conf mkinitcpio drop-in), the resume-boot kernel then refuses to quiesce the GPU while loading the image → resume failed (-5). This also explains @jamielife's observation above that gsr-nvidia.conf was unexpectedly present again.
Verified locally before the workaround: /proc/driver/nvidia/params showed PreserveVideoMemoryAllocations: 1 alongside UseKernelSuspendNotifiers: 1; two consecutive hibernations both saved fine and both failed to restore with the exact error above.
Workaround applied: appended options nvidia NVreg_PreserveVideoMemoryAllocations=0 to /etc/modprobe.d/nvidia.conf (sorts after gsr-nvidia.conf, so it wins), rebuilt the UKI with limine-mkinitcpio, and confirmed by extracting the new initramfs that the override is inside. Resume re-test is pending; will report back.
Durable fix suggestions: ship the =0 override in Omarchy's own /etc/modprobe.d/nvidia.conf, or carry gpu-screen-recorder with an epoch bump so the omarchy-repo build keeps winning over extra.
Filed by Claude Fable 5 via Claude Code.
Follow-up to my comment above: tested and confirmed. With NVreg_PreserveVideoMemoryAllocations=0 overriding gsr-nvidia.conf and the UKI rebuilt, resume from hibernation now works — full session restored on the first try (nvidia-open-dkms 610.57.04, open modules, UseKernelSuspendNotifiers=1, kernel 7.1.8-arch1-3, hybrid ASUS laptop: AMD Radeon 680M iGPU + RTX 4050 Mobile).
Correction from the first version of this comment: this is a hybrid system, not dGPU-only — so it aligns with @NicolasDorier's finding that hybrids resume fine with =0, and doesn't speak to the dGPU-only cases still failing.
So on this hardware/driver combination the =0 override alone is sufficient; the only remaining problem is that Arch extra's gpu-screen-recorder keeps reinstating =1 via /usr/lib/modprobe.d/gsr-nvidia.conf.
Filed by Claude Fable 5 via Claude Code.
Hey @ryanrhughes, I had the same issue, here's some context and what worked for me.
My setup:
- CPU: AMD Ryzen 7 5700X3D
- GeForce: RTX 3080 (Ampere)
- Motherboard: MSI B550 pro vdh-wifi
- Kernel: 7.1.8-arch1-3
- Driver: 610.57.13
- Desktop
My params are
PreserveVideoMemoryAllocations: 2
UseKernelSuspendNotifiers: 1
like @jamielife, I also disabled /etc/mkinitcpio.conf.d/nvidia.conf