Fix hibernation on new NVidia drivers#5519
Merged
Merged
Conversation
New drivers don't seem to expose the necessary suspend interface to use `NVreg_PreserveVideoMemoryAllocations`. I explained the issues I experienced on: basecamp#5500 While omacom-io/omarchy-pkgs#84 fixed part of the issue, the default value of `NVreg_PreserveVideoMemoryAllocations` is `2`, which doesn't work.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Omarchy’s NVIDIA setup to improve hibernation behavior with newer NVIDIA drivers by ensuring the kernel-suspend notifier path is configured via modprobe options.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Changes:
- Add a migration to append NVIDIA hibernation-related module options to
/etc/modprobe.d/nvidia.conf. - Update the NVIDIA hardware install script to always write these module options during installation.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| migrations/1777018591.sh | Adds a migration intended to ensure NVIDIA suspend notifier + PreserveVideoMemoryAllocations settings are present for existing installs. |
| install/config/hardware/nvidia.sh | Updates installer-time NVIDIA modprobe configuration to include hibernation-related module options. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ryanrhughes
added a commit
that referenced
this pull request
May 2, 2026
Open
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As explained on #5500, new drivers don't seem to expose the necessary suspend interface to use
NVreg_PreserveVideoMemoryAllocations.While omacom-io/omarchy-pkgs#84 fixed part of the issue, the default value of
NVreg_PreserveVideoMemoryAllocationsafter the PR became2when it should be 0.This PR fix the required values in
/etc/modprobe.d/nvidia.conf.See Arch's wiki: Preserve video memory after suspend.
Note that Arch set
NVreg_UseKernelSuspendNotifiersto 1 by default, so setting it in nvidia.conf is not strictly needed, but I think it keeps the context together.