Making peace: Nvidia and KDE Plasma Wayland

Nvidia and KDE Plasma running under Wayland is a bit hit and miss. Sometimes it’s fine (such as on an older gaming system I have), but on one of my systems in particular, I’d been wrestling with it for months, without success.

This week however, I may have finally put my finger on the settings that have made a critical difference, in my case at least. I wanted to share those here, in case it might be helpful to anyone else with similar ongoing issues.

This is assuming you’ve already done the typical Nvidia + Wayland steps, enabling modeset and fbdev, so I won’t detail those here.

  1. Stuttering issues:
    Disable VRR (variable refresh rate) / adaptive sync. Disabling this in the monitors built-in settings seems to also remove the option from Plasma’s display configuration, which is how I achieved this.

  2. Window sizing issues:
    “Floating panels” is enabled by default (may be theme specific), but can cause issues for Nvidia GPU’s. To disable it, right-click on your start-bar and Show Panel Configuration, and make sure the “Floating panels” slider is disabled. If enabled, it might even give you a warning about this issue!

  3. LibreOffice scaling issues:
    The UI of LibreOffice might appear tiny or huge on different screens. This is a known issue when running multiple displays with different scaling settings. To fix this, add this as an environment variable for your LibreOffice shortcuts:

WAYLAND_DISPLAY=libreoffice

  1. Wayland hinting:
    Previously, I had enabled hints for electron apps and Chromium based browsers, but disabling “Floating panels” (#2) has so far resolved those issues with electron and Chromium derivatives and I no longer use these settings.

And that’s it for now. I’m still having some issues with regards to colour calibration and display profiles lacking tonal range and appearing washed out under Wayland.

1 Like

Thanks for the tips! I’ll try them as soon as possible.

Here one annoying issue has been using the USB TV stick with kaffeine. On x11 it works flawlessly (that’s why I’m using x11), but on wayland it has an issue with starting the kaffeine window, and then after a few seconds kaffeine crashes.
Any ideas for that?

I installed and ran kaffeine under Wayland (Plasma) and so far I haven’t been able to reproduce an issue, playing local 4K videos and streaming audio.

Running it from command line may produce a useful error?

kaffeine

I’m not sure if this will help, but you could also try forcing it to use the X11 platform plugin on launch. There’s two ways:

  1. Using kaffeine’s own command option:
kaffeine --platform xcb
  1. Defining an environment variable on launch:
QT_QPA_PLATFORM=xcb kaffeine

As a note, the current release of kaffeine uses Qt5, but Qt6 support has been committed and is scheduled to be included in kaffeine 2.1.0, so one hopes better Wayland support will come as a result.

1 Like

Thanks! I’ll try those ideas.