Nvidia sleep & resume issues

System info:

Operating System: EndeavourOS
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen Threadripper 1950X 16-Core Processor
Graphics Processor: NVIDIA GeForce RTX 3090/PCIe/SSE2

Grub info:

GRUB_CMDLINE_LINUX_DEFAULT=‘nowatchdog nvme_load=YES nvidia-drm.modeset=1 nvidia_drm.fbdev=1 loglevel=3 iommu=pt’

Driver version:

NVIDIA-SMI 560.35.03
Driver Version: 560.35.03
CUDA Version: 12.6

Services:

$ systemctl status nvidia-{suspend,hibernate,resume}.service
○ nvidia-suspend.service - NVIDIA system suspend actions
Loaded: loaded (/usr/lib/systemd/system/nvidia-suspend.service; enabled; preset: disable>
Active: inactive (dead)

○ nvidia-hibernate.service - NVIDIA system hibernate actions
Loaded: loaded (/usr/lib/systemd/system/nvidia-hibernate.service; enabled; preset: disab>
Active: inactive (dead)

○ nvidia-resume.service - NVIDIA system resume actions
Loaded: loaded (/usr/lib/systemd/system/nvidia-resume.service; enabled; preset: disabled)
Active: inactive (dead)

Package versions:

$ yay -Q | grep nvid
lib32-nvidia-utils 560.35.03-1
nvidia-cg-toolkit 3.1-8
nvidia-dkms 560.35.03-5
nvidia-hook 1.5.1-1
nvidia-inst 24-1
nvidia-settings 560.35.03-1
nvidia-utils 560.35.03-5

Modprobe.d:

$ cat -p /etc/modprobe.d/nvidia-power-management.conf
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp

Monitor info:

$ inxi -Gxx
Graphics:
Device-1: NVIDIA GA102 [GeForce RTX 3090] vendor: ASUSTeK driver: nvidia
v: 560.35.03 arch: Ampere pcie: speed: 2.5 GT/s lanes: 16 ports:
active: none off: DP-1,DP-2 empty: DP-3,HDMI-A-1,HDMI-A-2 bus-ID: 43:00.0
chip-ID: 10de:2204
Device-2: Elgato Systems GmbH Cam Link 4K
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB rev: 3.0
speed: 5 Gb/s lanes: 1 bus-ID: 6-2:2 chip-ID: 0fd9:0066
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.2
compositor: kwin_wayland driver: X: loaded: nvidia unloaded: modesetting
alternate: fbdev,nouveau,nv,vesa gpu: nvidia d-rect: 6000x1440
display-ID: 0
Monitor-1: DP-1 pos: primary,left res: 2560x1440 size: N/A
Monitor-2: DP-2 pos: right res: 3440x1440 size: N/A
API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11:
drv: nvidia inactive: device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 560.35.03
glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3090/PCIe/SSE2
display-ID: :1.0
API: Vulkan v: 1.3.295 surfaces: xcb,xlib,wayland device: 0
type: discrete-gpu driver: nvidia device-ID: 10de:2204

My apologies, I know this has been done to death, but I still can’t get this working correctly and wake after sleep. I just get a black screen. Although, I can switch to another terminal and log in to the shell. But require a reboot to get back into plasma.

Occasionally this works on resume, but most of the time it doesn’t. I think it more often works if I specifically click “sleep” rather than let it automatically sleep after a timeout.

Also, I have added my standard user to video group as well.

Is there something I am missing here?

I am having the same issues, it worked for months. Then I realized it was because of my new drive mounts. If I unmount my cifs & sshfs mounts it mostly works. But cannot seem to get the lid switch to work.

1 Like

Test with the LTS kernel (to see if the issue is related to the kernel version).

I myself have a similar issue with sleep - not sure if it’s the same cause or not (started about a week ago)… Anyhow, the system attempts to go to sleep and wakes right back up. First thing I noticed was no sound output from my monitor’s speakers.

Drive mounts might be a large part of the problem.

I had my windows drives permanently mapped in /etc/fstab via ntfs-3g in case I needed files from that drive.

To test, I commented them out, and I’ve gone from 5-10% of resumes working, up to ~80%. It still fails occasionally, but working much better.

I’ll switch to LTS for a week and see if there is a kernel issue too.

1 Like