Public bug reported:

[Impact]

On Ubuntu 24.04 GNOME Wayland with nvidia-driver-595-open, suspend from
the system menu never reaches S3 on an RTX 5090. The display turns off,
the machine stays powered, and it does not wake. Hard power-off is
required.

This is distinct from LP: #1876632 (texture corruption after a
successful resume). Here freeze/S3 never completes.

[Test case]

1. Ubuntu 24.04.4, GNOME Wayland, nvidia-driver-595-open 595.84, RTX 5090 as 
the primary display GPU.
2. Default packaging: NVreg_PreserveVideoMemoryAllocations=1, 
nvidia-suspend.service enabled, UseKernelSuspendNotifiers=0.
3. Suspend from the system menu.
4. Without a compositor-pause workaround: display off, fans on, power LED does 
not blink, no wake.
5. With SIGSTOP of gnome-shell before nvidia-suspend.service (and SIGCONT after 
nvidia-resume.service): freeze completes in 0.001s, ACPI S3 is entered, power 
LED blinks, power button resumes.

[What happened]

nvidia-kernel-common already ships systemd-suspend.service.d/nvidia-
suspend-nofreeze.conf setting SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false
to avoid the Xorg + chvt freezer deadlock. The *kernel* freezer still
runs. gnome-shell stays runnable inside nvidia.ko; nvidia-sleep.sh then
deadlocks in nv_procfs_write_suspend.

Full traces, nvidia-bug-report, and the local systemd units:

- https://github.com/NVIDIA/open-gpu-kernel-modules/issues/1291
- https://gist.github.com/robertvandervoort/5488a63af729e7a1f474d61c28f49653

[Suggested packaging delta]

1. Skip chvt 63 in /usr/bin/nvidia-sleep.sh when the session is Wayland (NVIDIA 
documents VT switch as an Xorg requirement; it also trips GNOME 
settings-daemon).
2. Optionally ship GNOME-Wayland-only units that SIGSTOP gnome-shell before 
nvidia-suspend.service and SIGCONT after nvidia-resume.service — same “for now” 
spirit as nvidia-suspend-nofreeze.conf.

I can attach a debdiff if useful.

[Regression potential]

A Wayland-only chvt skip should not affect Xorg. A gnome-shell pause
unit should be WantedBy nvidia-suspend.service only, with
SuccessExitStatus=0 1 so missing gnome-shell (GDM greeter / other DEs)
is a no-op.

** Affects: nvidia-graphics-drivers-595 (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "logs and bug report to nvidia with additional info"
   
https://bugs.launchpad.net/bugs/2163429/+attachment/5991807/+files/ubuntu-nvidia-suspend-report.tar.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163429

Title:
  GNOME Wayland + 595-open: suspend never reaches S3; gnome-shell
  freezer deadlock (RTX 5090)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-595/+bug/2163429/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to