Display problems on Fedora 41 KDE Wayland with Nvidia graphic card

Hello Dear Fedora Community.
I have had the pleasure of using your system for several months after migrating from Windows and I appreciate the effort you put into the system. Unfortunately, I experience the following display glitches during Wayland sessions:

  1. The kwin_wayland process uses up to 50% CPU when moving a mouse.
  2. Scrolling pages in web browsers doesn’t feel smooth on my 144Hz display (Firefox and Brave tested so far). In addition, Brave tends to have display glitches which make the browser unusable.
  3. Scaling image in the Display Configuration section leads to blurry and malformed text/font.
  4. The top panel is shifted right, while the left panel is glitched.
  5. Random app glitches like unresponsible Mozilla Thunderbird when logging out.

I’m more than happy to split this thread into separate threads. Yet, I do believe they have something in common. I have spent long hours so far reading related topics but non of them resolved the display issues. The only exception is setting the nvidia.NVreg_EnableGpuFirmware=0 property which only reduced the CPU utilization by kwin_wayland to ~15%. Switching back to X11 resolves all the above issue.

Since Fedora KDE is moving away from X11, it makes me think that the combination of Fedora + KDE + Wayland is stable and it’s just a problem on my machine.

Below is the output from the most basic commands. Could someone help me with the above issues, please? Any help would be much appreciated!

Output from inxi -Fzxx:

System:
  Kernel: 6.12.7-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.43.1-5.fc41
  Desktop: KDE Plasma v: 6.2.5 tk: Qt v: N/A wm: kwin_x11 dm: SDDM
    Distro: Fedora Linux 41 (KDE Plasma)
Machine:
  Type: Desktop System: Micro-Star product: MS-7C02 v: 1.0
    serial: <superuser required>
  Mobo: Micro-Star model: B450 TOMAHAWK (MS-7C02) v: 1.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: 1.J1
    date: 05/06/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech MX Keys Wireless Keyboard
    serial: <filter> charge: 100% (should be ignored) status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 5700X bits: 64 type: MT MCP arch: Zen 3+
    rev: 2 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
  Speed (MHz): avg: 550 min/max: 550/4663 boost: enabled cores: 1: 550
    2: 550 3: 550 4: 550 5: 550 6: 550 7: 550 8: 550 9: 550 10: 550 11: 550
    12: 550 13: 550 14: 550 15: 550 16: 550 bogomips: 108793
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3070 Lite Hash Rate] vendor: ASUSTeK
    driver: nvidia v: 565.77 arch: Ampere pcie: speed: 8 GT/s lanes: 16 ports:
    active: none off: DP-1 empty: DP-2, DP-3, HDMI-A-1, HDMI-A-2
    bus-ID: 26:00.0 chip-ID: 10de:2488
  Display: x11 server: X.Org v: 21.1.15 with: Xwayland v: 24.1.4
    compositor: kwin_x11 driver: X: loaded: nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 108
  Monitor-1: DP-1 mapped: DP-0 note: disabled model: Acer VG271U
    res: 2560x1440 dpi: 109 diag: 685mm (27")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 565.77
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3070/PCIe/SSE2
  API: Vulkan v: 1.3.296 surfaces: xcb,xlib device: 0 type: discrete-gpu
    driver: N/A device-ID: 10de:2488 device: 1 type: cpu driver: N/A
    device-ID: 10005:0000
Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 26:00.1 chip-ID: 10de:228b
  Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
    vendor: Micro-Star MSI driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 28:00.4 chip-ID: 1022:1487
  Device-3: GN Netcom Jabra EVOLVE Link MS
    driver: jabra,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-2.1:4 chip-ID: 0b0e:0305
  Device-4: Logitech Logitech G PRO X Gaming Headset
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-2.4:6 chip-ID: 046d:0aaa
  API: ALSA v: k6.12.7-200.fc41.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 22:00.0 chip-ID: 10ec:8168
  IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.84 TiB used: 224.92 GiB (11.9%)
  ID-1: /dev/sda vendor: Crucial model: CT1000BX500SSD1 size: 931.51 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-2: /dev/sdb vendor: Patriot model: P210 1024GB size: 953.87 GiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 952.28 GiB used: 224.46 GiB (23.6%) fs: btrfs dev: /dev/sdb3
  ID-2: /boot size: 973.4 MiB used: 452.3 MiB (46.5%) fs: ext4
    dev: /dev/sdb2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/sdb1
  ID-4: /home size: 952.28 GiB used: 224.46 GiB (23.6%) fs: btrfs
    dev: /dev/sdb3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.6 C mobo: N/A gpu: nvidia temp: 42 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
  Memory: total: 32 GiB available: 31.26 GiB used: 5.32 GiB (17.0%)
  Processes: 475 Power: uptime: 35m wakeups: 0 Init: systemd v: 256
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 23
    Compilers: gcc: 14.2.1 Shell: Zsh v: 5.9 running-in: konsole inxi: 3.3.36

Installed Nvidia packages:

akmod-nvidia.x86_64                                 3:565.77-1.fc41                  <unknown>
kmod-nvidia-6.12.5-200.fc41.x86_64.x86_64           3:565.77-1.fc41                  @commandline
kmod-nvidia-6.12.6-200.fc41.x86_64.x86_64           3:565.77-1.fc41                  @commandline
kmod-nvidia-6.12.7-200.fc41.x86_64.x86_64           3:565.77-1.fc41                  @commandline
nvidia-gpu-firmware.noarch                          20241210-1.fc41                  <unknown>
nvidia-modprobe.x86_64                              3:565.77-1.fc41                  <unknown>
nvidia-persistenced.x86_64                          3:565.77-1.fc41                  <unknown>
nvidia-settings.x86_64                              3:565.77-1.fc41                  <unknown>
xorg-x11-drv-nvidia.x86_64                          3:565.77-3.fc41                  <unknown>
xorg-x11-drv-nvidia-cuda.x86_64                     3:565.77-3.fc41                  <unknown>
xorg-x11-drv-nvidia-cuda-libs.x86_64                3:565.77-3.fc41                  <unknown>
xorg-x11-drv-nvidia-kmodsrc.x86_64                  3:565.77-3.fc41                  <unknown>
xorg-x11-drv-nvidia-libs.x86_64                     3:565.77-3.fc41                  <unknown>
xorg-x11-drv-nvidia-power.x86_64                    3:565.77-3.fc41                  <unknown>
xorg-x11-drv-nvidia-xorg-libs.x86_64                3:565.77-3.fc41                  <unknown>

3. Shifted panel