Fix "Desktop effects were restarted due to a graphics reset" on Debian 13 with NVIDIA
After upgrading Debian 12 (bookworm) to 13 (trixie) on a KDE Plasma 6 machine with an NVIDIA GTX 1650 SUPER, KDE kept showing “Desktop effects were restarted due to a graphics reset” and Plasma Wayland would not start. Two separate causes, two small fixes.
Summary
#
Symptom
Cause
Fix
1
Wayland session fails (No suitable DRM devices have been found)
Still running the old bookworm kernel (6.1), NVIDIA modeset off
Install the trixie kernel and headers, enable nvidia-drm modeset=1
2
Message appears after hibernate or suspend
NVIDIA driver does not save GPU memory across sleep, KWin loses its GL context
Set NVreg_PreserveVideoMemoryAllocations=1
Problem 1: Old kernel and Wayland not starting
Diagnose
1 2 3
uname -r sudo dkms status sudo cat /sys/module/nvidia_drm/parameters/modeset
Output
Meaning
uname -r shows 6.1.x
Still on the bookworm kernel under trixie userland
modeset prints N
Wayland cannot use the NVIDIA GPU
The upgrade never installed the linux-image-amd64 metapackage, so no trixie kernel was pulled in.
Fix
Install the kernel and headers. The headers trigger the DKMS build of the NVIDIA module.
1 2
sudo apt install linux-image-amd64 linux-headers-amd64 sudo dkms status
Wait for a 6.12.x entry marked installed, then reboot. Enable modesetting:
Services are fine, only the module option is missing
If the services are missing, install them first with sudo apt install nvidia-suspend-common and enable them with sudo systemctl enable nvidia-suspend nvidia-hibernate nvidia-resume.