Plasma/Wayland/Nvidia: Difference between revisions

From KDE Community Wiki
m (Improve formatting)
m (Two more)
Line 13: Line 13:
It should print "Y"
It should print "Y"


If not, modify your kernel command line and add the line nvidia-drm.modeset=1.
If not, modify your kernel command line and add the line <code>nvidia-drm.modeset=1</code>.
Search for "kernel parameters" in your distribution  
Search for "kernel parameters" in your distribution  
https://wiki.archlinux.org/index.php/Kernel_parameters is a good starting point
https://wiki.archlinux.org/index.php/Kernel_parameters is a good starting point
Line 24: Line 24:
<code>export KWIN_DRM_USE_EGL_STREAMS=1</code>
<code>export KWIN_DRM_USE_EGL_STREAMS=1</code>


Verify this is working with the command line tool "env" after rebooting.
Verify this is working with the command line tool <code>env</code> after rebooting.


=== Login ===
=== Login ===

Revision as of 15:09, 23 June 2020

Running Nvidia Wayland

Pre-requisites

Mode setting

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

Tell kwin to run with EGLStreams.

You should set the environment variable "KWIN_DRM_USE_EGL_STREAMS=1"

The easiest place is to add a file /etc/profile.d/kwin.sh with the line export KWIN_DRM_USE_EGL_STREAMS=1

Verify this is working with the command line tool env after rebooting.

Login

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