Plasma 6 Wayland felt hitchy/stuttery on NVIDIA RTX 4060

Hello,

  • OpenMandriva Lx version: 24.12

  • Desktop environment (KDE, LXQT…): Plasma 6

  • Description of the issue (screenshots if relevant):

I just started using OpenMandriva today, and currently playing it on my VM with GPU passthrough (RTX 4060) on my gaming PC.

I’m testing this on Plasma 6 Wayland, and the cursor movement and reaction felt hitchy. After a while

One thing to note was that when I installed NVIDIA driver using the Welcome app, it suddenly brought me back to the login screen.

  • Relevant informations (hardware involved, software version, logs or output…):
$ nvidia-smi 
Sun Jan 12 17:06:41 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.77                 Driver Version: 565.77         CUDA Version: 12.7     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4060        Off |   00000000:07:00.0  On |                  N/A |
| 30%   36C    P8             N/A /  115W |     614MiB /   8188MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1087      G   /usr/bin/kwalletd6                              2MiB |
|    0   N/A  N/A      1475      G   /usr/bin/kded6                                  2MiB |
|    0   N/A  N/A      1496      G   /usr/bin/plasmashell                          112MiB |
|    0   N/A  N/A      1516      G   /usr/lib64/libexec/kactivitymanagerd            2MiB |
|    0   N/A  N/A      1527      G   ...c/polkit-kde-authentication-agent-1          2MiB |
|    0   N/A  N/A      1528      G   /usr/lib64/libexec/org_kde_powerdevil           2MiB |
|    0   N/A  N/A      1529      G   ...ib64/libexec/xdg-desktop-portal-kde          2MiB |
|    0   N/A  N/A      1711      G   htmlscript                                     72MiB |
|    0   N/A  N/A      1718      G   /usr/bin/kdeconnectd                            2MiB |
|    0   N/A  N/A      1737      G   /usr/bin/kalendarac                             2MiB |
|    0   N/A  N/A      2049      G   /usr/libexec/Xorg                              54MiB |
|    0   N/A  N/A      2082      G   /usr/bin/sddm-greeter-qt6                     167MiB |
+-----------------------------------------------------------------------------------------+

I have KDE Neon on the same PC running on VM, and it doesn’t have the same issues

omd_output.txt (85.2 KB)

If you are using the “User” edition, it’s probably using an older version of the nvidia driver (because Ubuntu). We are using a newer one. It’s also not a 1:1 comparison because we are not derived from other distros, we are independent. Finally, wayland is not even alpha quality yet so there will be some issues with it on all distributions unless they stick with a specific version of it and graphics drivers for a prolonged period of time. This is why we suggest having X11 on as a fallback. I would even suggest primarily using X11 with nvidia. At least until it is decided whether the open source driver will be used.

2 Likes

User edition has NVIDIA 565 drivers in the repo, and there’s also the one from the PPA. I can’t recall which one I used for that one.

Makes sense, but I’ve decided to go all in on Wayland, and report the ones I can find so that the experience will get better.

All the systems/VMs I’ve been playing with, unless they are strictly X11 like Unity, are all just using Wayland. TBH, this is the only time I’ve had issues on NVIDIA+Wayland where the display suddenly got all hitchy. I can’t recall if I had this problem when Plasma 6 was still in Alpha (tested in Neon Unstable), but I’m pretty sure it wasn’t this bad since all my GPU-passthrough VMs use NVIDIA.

Just a small subset, but it’s clearly an issue with the driver and the wayland version for both closed and open source drivers:

https://presearch.com/search?q=nvidia+565.77+wayland+performance+issues

We appreciate the feedback. Hopefully it will get better with newer versions.

When I powered down my VM, I noticed the CPU chart was through the roof. Not sure what could be causing that.

I wanted to share a screenshot of my nvtop and btop outputs, but it wasn’t letting me. Essentially all 6 of the cores I allocated to it were at 100%

Is there a way to downgrade the GPU driver? I wanted to test with 550 since it’s production release

I don’t see that version packaged. We decided a while back to make our best efforts when it comes to packaging given the drivers are closed source. We tend to use newer kernels, also. This means it’s best to have a newer version of the nvidia driver.

Do you have guides that you use or recommend to get GPU passthrough working? I tried it some months ago on a Windows host and an Arch guest. I was really close to get it working, but couldn’t get it working and gave up. If I can remember correctly it passthrough worked, but only if SPICE was deactivated, but then the mouse didn’t work and if I enabled SPICE, passthrough didn’t work anymore.

I’m assuming you wanted to use Virt-Viewer for display? If so that won’t work.

In order for it to work, the display has to be plugged into the GPU, or use Looking Glass + display dummy adapter. The latter was a bust for me, so I ended up doing the former.

The USB peripherals have to be passed through as well. I could be wrong, as its been a while since I looked into it, but I had a 2nd pair of peripherals for passthrough a while back.

My final setup have 2 PCIe cards passthrough to VMs: GPU and USB PCIe cards. I only use 1 peripheral as I have a KVM switch (well, more like a USB switch + HDMI display switch).

Right, I tried Looking Glass. I tried with dummy adapter and without (which should work in some cases), but neither worked.

Yes, the USB peripherals need to be passed through as well and that was the issue. Either GPU without USB (or touchpad) or no GPU but USB (or touchpad) with SPICE.

I might try it again sometime. I think I still have the VM.