Video stutter on mouse movement after switching gpu (NV to AMD)

A few things to try that could resolve the issue:

  1. It could be caused by the xf86-video-amdgpu package, which is possibly no longer required. Removal of xf86-video-amdgpu recently fixed screen flickering in another thread for an X11-based desktop (xfce):

The xf86-video-amdgpu package was removed from my Testing branch system a few months ago (when my mini-PC was on Plasma 6.3.5-1):

paclog --grep=xf86-video
...
[2024-05-08T17:57:17+1000] [ALPM] upgraded xf86-video-amdgpu (23.0.0-1 -> 23.0.0-2)
[2024-05-08T17:57:17+1000] [ALPM] upgraded xf86-video-ati (1:22.0.0-1 -> 1:22.0.0-2)
[2024-05-08T17:57:17+1000] [ALPM] upgraded xf86-video-intel (1:2.99.917+923+gb74b67f0-1 -> 1:2.99.917+923+gb74b67f0-2)
[2024-05-08T17:57:17+1000] [ALPM] upgraded xf86-video-nouveau (1.0.17-2 -> 1.0.17-3)
[2024-06-19T22:03:04+1000] [ALPM] removed xf86-video-amdgpu (23.0.0-2)
[2024-06-19T22:03:53+1000] [ALPM] removed xf86-video-intel (1:2.99.917+923+gb74b67f0-2)
[2024-11-03T10:14:49+1100] [ALPM] removed xf86-video-nouveau (1.0.17-3)
  1. Add amdgpu to the MODULES= section of /etc/mkinitcpio.conf, and ensure that the HOOKS= section contains microcode. This is how the 2 sections in my /etc/mkinitcpio.conf file look:
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(usbhid xhci_hcd)
MODULES=(amdgpu)

# BINARIES
...
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr and fsck hooks.
HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, zstd compression

After making the changes, run:

sudo mkinitcpio -P && sudo update-grub

And then reboot.

  1. Is there any specific reason why you are running Plasma as an X11 session? You will very likely find that things will run a lot smoother if you switch from X11 to Wayland. Although there were issues with Nvidia on Wayland when Plasma v6 was released last year, I am not aware of any issues ever being encountered for AMD GPU users. Plasma on Wayland has been flawless on my AMD system for the past 2 years.

You can change your Plasma session from X11 to Wayland by selecting the session type at the login screen (Wayland is now KDE’s default for Plasma).

If you have set up autologin to skip the password screen, you can change to a Wayland session by opening System Settings → Colors & Themes → Login Screen (SDDM) → Behavior.

To see if your current session is running on X11 or Wayland, run the following command in a terminal:

echo $XDG_SESSION_TYPE

For those curious about how Wayland differs from X11:

1 Like