Last updated: 21 Mar 25 20:44:23 (UTC)

Ubuntu Wayland Nvidia Issue

Ubuntu Wayland Nvidia Issue

Driver install

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt install nvidia-driver-570
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt install nvidia-driver-570
  • or
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt install nvidia-driver-570-open
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt install nvidia-driver-570-open

Sleep resume bug

I’ve been experiencing this issue, and I can now report as of driver version 570.133.07 that the issue seems to be resolved! Kernel 6.13.7, KDE Plasma (Wayland)
I’ve been experiencing this issue, and I can now report as of driver version 570.133.07 that the issue seems to be resolved! Kernel 6.13.7, KDE Plasma (Wayland)

Nvidia Pro Driver Suspend Issue

So I think this has been reported multiple times already, but I cannot find the Bug Reports on bus.kde.org. Maybe someone can contribute that. Here there is a previous reddit post reporting the same issue:https://www.reddit.com/r/kde/comments/131jyog/when_resuming_from_sleep_kde_is_always_glitchy/

I myself had this issue with manjaro and now also with endeavouros, that when I sent my PC to sleep or it went to sleep by itself it always would up wake up glitched out, with the graphic driver crashing.

plasmashell --replace

Would fix the graphic glitch issue but would not bring back the graphic driver itself, until reboot…The issue was that the proprietary drivers on nvidia don’t save the vram before suspend. Had similar issues with manjaro and could fix it through this blog post: https://blenderartists.org/t/failed-to-create-cuda-context-illegal-adress/1278322/8 After a whole day of figuring out how to do it on EOS here is the fix: run following three commands in your terminal:

Fix

sudo systemctl enable nvidia-suspend.service
sudo systemctl enable nvidia-hibernate.service
sudo systemctl enable nvidia-resume.service
sudo systemctl enable nvidia-suspend.service
sudo systemctl enable nvidia-hibernate.service
sudo systemctl enable nvidia-resume.service
sudo vim /lib/modprobe.d/systemd.conf
sudo vim /lib/modprobe.d/systemd.conf
  • Add following line at the end of the file /lib/modprobe.d/systemd.conf
options nvidia NVreg_PreserveVideoMemoryAllocations=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1

Then run:

sudo update-initramfs -u
sudo update-initramfs -u

reboot for good measure. Voila your PC with EOS can now go to sleep and wake up properly without crashing graphic drives… Tested with KDE-Plasma with Wayland and 2080ti. Should also work for Xorg X11 (with manjaro I had X11).

Hope this helps (:

Flickering Issue

Add to /etc/default/grub

  • nvidia.NVreg_PreserveVideoMemoryAllocations=1
  • nvidia.NVreg_EnableGpuFirmware=0
  • nvidia-drm.modeset=1 nvidia-drm.fbdev=1
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1 nvidia-drm.fbdev=1 nvidia.NVreg_EnableGpuFirmware=0"
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1 nvidia-drm.fbdev=1 nvidia.NVreg_EnableGpuFirmware=0"
  • run
sudo update-grub
sudo update-grub

Joplin

--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
  • Enable flatpak wayland access
Screenshot_20250321_152919

Bitwarden/Element Chat

  • add
--enable-features=UseOzonePlatform --ozone-platform=wayland
--enable-features=UseOzonePlatform --ozone-platform=wayland

Other Fixes

export GSK_RENDERER=ngl
export GSK_RENDERER=ngl
export LIBGL_ALWAYS_SOFTWARE=1
export LIBGL_ALWAYS_SOFTWARE=1