I reproduced a related suspend/resume failure with nvidia-
driver-595-open 595.84 on Kubuntu 26.04, kernel 7.0.0-29-generic, KDE
Plasma Wayland, and a GTX 1650 Mobile (10de:1f91).

The package default had:

PreserveVideoMemoryAllocations: 1
UseKernelSuspendNotifiers: 0
/proc/driver/nvidia/suspend: present
nvidia-suspend.service / nvidia-resume.service: enabled

That selected the packaged /proc path. nvidia-sleep.sh switched to VT 63
before writing /proc/driver/nvidia/suspend; KWin then logged "atomic
commit failed: Permission denied" and temporary loss of renderD128.
Earlier cycles ended in a black screen with cursor after resume.

I did not disable PreserveVideoMemoryAllocations. NVIDIA documents that
Open modules can preserve VRAM automatically through kernel suspend
notifiers. I instead set:

options nvidia NVreg_UseKernelSuspendNotifiers=1

and disabled the /proc suspend/resume/hibernate units. After reboot:

PreserveVideoMemoryAllocations: 1
UseKernelSuspendNotifiers: 1
/proc/driver/nvidia/suspend: absent
nvidia-suspend/resume/hibernate.service: disabled

An instrumented S3 deep cycle used nv_pm_notifier, did not invoke
nvidia-sleep.sh or change VT, did not log the KWin atomic EACCES, and
resumed Plasma successfully.

This suggests the packaging should distinguish nvidia-driver-595-open
from the proprietary module: enable NVreg_UseKernelSuspendNotifiers=1
for Open, and avoid enabling the /proc/VT units and the no-freeze drop-
in in that mode. Disabling VRAM preservation is not necessary for this
configuration.

I can attach sanitized before/after traces and NVIDIA bug reports on
request.

-- 
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

Reply via email to