Jump to content

Plasma/Wayland/Nvidia: Difference between revisions

From KDE Community Wiki
Davidedmundson (talk | contribs)
Created page with "Running Nvidia Wayland Step 0: * You need a very up-to-date Qt. Make sure you have > Qt5.15.0 or 4bd13402f0293e85b8dfdf92254e250ac28094c7 cherry-picked. Step 1 * Check our..."
 
Davidedmundson (talk | contribs)
No edit summary
Line 1: Line 1:
Running Nvidia Wayland
Running Nvidia Wayland


Step 0:
# You need a very up-to-date Qt. Make sure you have > Qt5.15.0 or 4bd13402f0293e85b8dfdf92254e250ac28094c7 cherry-picked.


* You need a very up-to-date Qt. Make sure you have > Qt5.15.0 or 4bd13402f0293e85b8dfdf92254e250ac28094c7 cherry-picked.
# Check our driver is running in modesettings mode
 
Step 1
 
* Check our driver is running in modesettings mode


"cat /sys/module/nvidia_drm/parameters/modeset"
"cat /sys/module/nvidia_drm/parameters/modeset"
Line 13: Line 9:
It should print "Y"
It should print "Y"


If so, you can skip step 2
If so, you can skip the next step


Step 2:
# Modify your kernel command line.
* Modify your kernel command line.
Search for "kernel parameters" in your distribution and add the line "nvidia-drm.modeset=1"  
Search for "kernel parameters" in your distribution and add the line "nvidia-drm.modeset=1"  
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


Step 3:
# Tell kwin to run with EGLStreams.
Tell kwin to run with EGLStreams.
 
You should set the environment variable "KWIN_DRM_USE_EGL_STREAMS=1"
You should set the environment variable "KWIN_DRM_USE_EGL_STREAMS=1"


Line 29: Line 24:
Verify this is working with the command line tool "env" after rebooting.
Verify this is working with the command line tool "env" after rebooting.


Step 4:
# Select "Plasma (wayland)" from your login manager
Select "Plasma (wayland)" from your login manager


Step 5:
# Enjoy your beautiful super-fast accelerated wayland desktop!
You should be greeter with a beautiful super-fast accelerated wayland desktop!

Revision as of 09:19, 12 May 2020

Running Nvidia Wayland

  1. You need a very up-to-date Qt. Make sure you have > Qt5.15.0 or 4bd13402f0293e85b8dfdf92254e250ac28094c7 cherry-picked.
  1. Check our driver is running in modesettings mode

"cat /sys/module/nvidia_drm/parameters/modeset"

It should print "Y"

If so, you can skip the next step

  1. Modify your kernel command line.

Search for "kernel parameters" in your distribution and add the line "nvidia-drm.modeset=1" https://wiki.archlinux.org/index.php/Kernel_parameters is a good starting point

  1. 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.

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