# How to fix the sleep/suspend Issue/glitch with crashing Nvidia propietary drivers and X11 / Wayland on KDE Plasma, EndeavourOS/ Plasma

**URL:** <https://forum.endeavouros.com/t/how-to-fix-the-sleep-suspend-issue-glitch-with-crashing-nvidia-propietary-drivers-and-x11-wayland-on-kde-plasma-endeavouros-plasma/52503>\
**Category:** Plasma\
**Created:** [March 14, 2024, 3:38pm UTC](https://forum.endeavouros.com/t/how-to-fix-the-sleep-suspend-issue-glitch-with-crashing-nvidia-propietary-drivers-and-x11-wayland-on-kde-plasma-endeavouros-plasma/52503 "2024-03-14T15:38:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![solino](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/s/5e9695/32.png) [@solino](https://forum.endeavouros.com/u/solino)\
**Post date:** [March 14, 2024, 3:38pm UTC](https://forum.endeavouros.com/t/how-to-fix-the-sleep-suspend-issue-glitch-with-crashing-nvidia-propietary-drivers-and-x11-wayland-on-kde-plasma-endeavouros-plasma/52503/1 "2024-03-14T15:38:13Z")

</div>

Here is the fix: run following three commands in your terminal:

`sudo systemctl enable nvidia-suspend.service`

`sudo systemctl enable nvidia-hibernate.service`

`sudo systemctl enable nvidia-resume.service`

`then: cd /lib/modprobe.d`

`sudo nano systemd.conf`

Add following line at the end of the file:

`options nvidia NVreg_PreserveVideoMemoryAllocations=1`

CTRL-X and save

Then update (rebuild) kernel boot images

When using default systemd-boot and dracut:

sudo reinstall-kernels

When using Grub and dracut:

sudo dracut-rebuild
