Plasma/Wayland/Nvidia: Difference between revisions

From KDE Community Wiki
m (XWayland hardware acceleration requirements)
(Add "Limitations" section)
Line 26: Line 26:
* Select "Plasma (wayland)" from your login manager
* Select "Plasma (wayland)" from your login manager
* Enjoy your beautiful super-fast accelerated wayland desktop!
* Enjoy your beautiful super-fast accelerated wayland desktop!
=== Known Limitations ===
* Night color does not work (as of NVIDIA drivers 525.78.01) because NVIDIA does not support DRM GAMMA_LUT property (see https://bugs.kde.org/show_bug.cgi?id=450327 and https://github.com/NVIDIA/open-gpu-kernel-modules/issues/162)
* Poor performance on external screens on hybrid GPU setups when using NVIDIA GPU as a secondary GPU because it requires CPU copying from the primary GPU to the secondary GPU (see https://invent.kde.org/plasma/kwin/-/merge_requests/1031)

Revision as of 14:52, 7 January 2023

Here's how to run with the proprietary Nvidia driver on Wayland:

Prerequisites

To use the Plasma Wayland session:

  • Ensure that you are using Plasma 5.20.2 or later.
  • You need a very up-to-date Qt. Make sure you have >= Qt5.15.0 or 4bd13402f0293e85b8dfdf92254e250ac28094c7 cherry-picked.
  • Make sure to have the Nvidia egl library installed. For example on Ubuntu and Neon the relevant package is called libnvidia-egl-wayland1

To use the Plasma Wayland session with hardware acceleration on XWayland apps, you need:

  • Xorg 1.20.12 or later.
  • XWayland 21.1.2 or later.
  • libxcb 1.1.7 or later.

Use the modesetting driver

Check our driver is running in modesettings mode:

cat /sys/module/nvidia_drm/parameters/modeset

It should print "Y". If not, modify your kernel command line and add the line nvidia-drm.modeset=1. Search for "kernel parameters" in your distribution; https://wiki.archlinux.org/index.php/Kernel_parameters is a good starting point.

Login

  • Select "Plasma (wayland)" from your login manager
  • Enjoy your beautiful super-fast accelerated wayland desktop!

Known Limitations