Skip to content

nixos/nvidia: use kernel suspend notifiers if available#497206

Merged
Aleksanaa merged 1 commit intoNixOS:masterfrom
ccicnce113424:nvidia-use-kernel-suspend-notifier
Mar 8, 2026
Merged

nixos/nvidia: use kernel suspend notifiers if available#497206
Aleksanaa merged 1 commit intoNixOS:masterfrom
ccicnce113424:nvidia-use-kernel-suspend-notifier

Conversation

@ccicnce113424
Copy link
Member

@ccicnce113424 ccicnce113424 commented Mar 6, 2026

Open kernel modules have been able to handle video memory preservation when using kernel suspend notifiers since beta version 595.45.04.
See: https://us.download.nvidia.com/XFree86/Linux-x86_64/595.45.04/README/powermanagement.html

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 6.topic: hardware Drivers, Firmware and Kernels 6.topic: nvidia Nvidia-specific issues and fixes labels Mar 6, 2026
@ccicnce113424 ccicnce113424 force-pushed the nvidia-use-kernel-suspend-notifier branch 3 times, most recently from 84339e5 to dce4046 Compare March 6, 2026 13:32
@ccicnce113424 ccicnce113424 marked this pull request as ready for review March 6, 2026 13:32
@ccicnce113424 ccicnce113424 changed the title nixos/nvidia: use kernel suspend notifier and refactor nixos/nvidia: use kernel suspend notifier, write parameters to modprobe Mar 6, 2026
@ccicnce113424 ccicnce113424 marked this pull request as draft March 6, 2026 13:37
@ccicnce113424 ccicnce113424 force-pushed the nvidia-use-kernel-suspend-notifier branch from dce4046 to 1025bc5 Compare March 6, 2026 13:46
@ccicnce113424 ccicnce113424 changed the title nixos/nvidia: use kernel suspend notifier, write parameters to modprobe nixos/nvidia: use kernel suspend notifiers if available Mar 6, 2026
@ccicnce113424 ccicnce113424 force-pushed the nvidia-use-kernel-suspend-notifier branch from 1025bc5 to 7076da1 Compare March 6, 2026 13:51
@ccicnce113424 ccicnce113424 marked this pull request as ready for review March 6, 2026 13:56
@nixpkgs-ci nixpkgs-ci bot added the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Mar 6, 2026
@ccicnce113424 ccicnce113424 requested review from Kiskae and edwtjo March 6, 2026 14:11
@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Mar 6, 2026
@ccicnce113424 ccicnce113424 force-pushed the nvidia-use-kernel-suspend-notifier branch from 7076da1 to 16cb9ed Compare March 6, 2026 23:24
@ccicnce113424 ccicnce113424 force-pushed the nvidia-use-kernel-suspend-notifier branch from 16cb9ed to 2e72739 Compare March 6, 2026 23:27
@ccicnce113424 ccicnce113424 requested a review from Kiskae March 6, 2026 23:30
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Mar 7, 2026
@Aleksanaa Aleksanaa added this pull request to the merge queue Mar 8, 2026
Merged via the queue into NixOS:master with commit 1f88a5a Mar 8, 2026
30 of 32 checks passed
@ccicnce113424 ccicnce113424 deleted the nvidia-use-kernel-suspend-notifier branch March 16, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: hardware Drivers, Firmware and Kernels 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: nvidia Nvidia-specific issues and fixes 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants