Public bug reported:
Bug Report: NVIDIA 595 driver blocks suspend due to
NVreg_PreserveVideoMemoryAllocations=1
Summary
Suspend and resume fail on a system using the NVIDIA 595.58.03 Open Kernel
Module on Ubuntu.
Suspend attempts either immediately wake back up or enter suspend but fail to
resume (black screen, requires hard reboot).
Kernel logs show that the NVIDIA driver aborts suspend with error -5 because
the module parameter
NVreg_PreserveVideoMemoryAllocations=1 is set by modprobe configuration files
installed on the system.
Disabling this parameter resolves the issue completely.
System Information
- OS: Ubuntu
- Kernel: 7.0.0-12-generic
- GPU: NVIDIA GeForce RTX 3080 (10de:2206)
- Driver package: nvidia-driver-595-open
- Driver version: 595.58.03
- Suspend modes affected: freeze, s2idle, deep
- Hardware: Intel 300‑series chipset, GPU on PCIe root port 0000:00:01.0
Problem Description
Attempting to suspend results in one of two behaviors:
1. `systemctl suspend` immediately wakes back up.
2. `echo mem > /sys/power/state` enters suspend but cannot resume (black
screen).
No resume logs appear in `journalctl -b -1`, indicating the resume path never
begins.
Both freeze and s2idle fail until the NVIDIA module parameter is removed.
Relevant Kernel Log Output
During suspend attempt:
PM: suspend entry (s2idle)
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_suspend(): nv_pmops_suspend [nvidia] returns -5
nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend returns -5
nvidia 0000:01:00.0: PM: failed to suspend async: error -5
PM: Some devices failed to suspend, or early wake event detected
PM: suspend exit
This shows the NVIDIA 595 driver explicitly refusing to suspend due to
the PreserveVideoMemoryAllocations parameter.
Root Cause
Two modprobe configuration files contained:
options nvidia NVreg_PreserveVideoMemoryAllocations=1
Files:
- /etc/modprobe.d/nvidia-graphics-drivers-kms.conf
- /etc/modprobe.d/nvidia-pm.conf
This parameter is intended for vGPU/SR‑IOV and prevents the driver from
releasing VRAM during suspend.
As a result, the driver aborts suspend with error -5, breaking all suspend
modes.
This appears to be a packaging or configuration issue in the nvidia-
driver-595-open stack.
Steps to Reproduce
1. Install nvidia-driver-595-open on Ubuntu.
2. Ensure the modprobe files above contain
NVreg_PreserveVideoMemoryAllocations=1.
3. Attempt to suspend using:
systemctl suspend
or
echo mem > /sys/power/state
4. System immediately wakes or fails to resume.
Workaround / Fix
Editing both modprobe files and disabling the parameter resolves the issue:
sudo nano /etc/modprobe.d/nvidia-graphics-drivers-kms.conf
sudo nano /etc/modprobe.d/nvidia-pm.conf
Change:
NVreg_PreserveVideoMemoryAllocations=1
to:
NVreg_PreserveVideoMemoryAllocations=0
(or comment out the line)
Then rebuild initramfs:
sudo update-initramfs -u
After reboot:
- freeze works
- s2idle works
- suspend no longer aborts
- resume works reliably
Request to Ubuntu Maintainers
Please investigate why the nvidia-driver-595-open package installs or preserves
modprobe files that set:
NVreg_PreserveVideoMemoryAllocations=1
This parameter is not appropriate for normal desktop systems and
silently breaks suspend/resume.
A packaging fix or removal of this parameter would prevent this issue
for other users.
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: nvidia-driver-595-open 595.58.03-0ubuntu2
ProcVersionSignature: Ubuntu 7.0.0-12.12-generic 7.0.0-rc6
Uname: Linux 7.0.0-12-generic x86_64
ApportVersion: 2.33.1-0ubuntu7
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu Apr 9 14:11:59 2026
InstallationDate: Installed on 2025-11-21 (139 days ago)
InstallationMedia: Ubuntu 25.10 "Questing Quokka" - Release amd64 (20251007)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: nvidia-graphics-drivers-595
UpgradeStatus: Upgraded to resolute on 2026-04-07 (2 days ago)
** Affects: nvidia-graphics-drivers-595 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute third-party-packages wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2147660
Title:
NVIDIA 595 driver blocks suspend due to
NVreg_PreserveVideoMemoryAllocations=1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-595/+bug/2147660/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs