Xfce Glitches on Proprietary NVIDIA Drivers

Very recently I have run a dnf upgrade (on F42), updating my xorg-x11-drv-nvidia.x86_64 packages.

Immediately after rebooting, all of my menus were glitching, most primarily when moving my cursor. My Panel items, shadows and appbars are going invisible-visible insanely fast.

It’s most prevalent when running xpenguins, attached here: Watch Xfce glitches | Streamable (Sorry for the 3rd party link, I have no idea how else to attach this.)

Notice that I recorded this from phone and not OBS. For some reason, this glitching issue completely stops once I hit record with OBS (but not when it’s idle).

This also only occurs on Xfce. GNOME Xorg session works really fine.

Things I’ve tried:

  • Switching to Intel iGPU: All worked perfectly
  • Switching to Nouveau: Xfce freezes (I prefer proprietary anyways)
  • Re-installing the Nvidia drivers from nvidia.com - both MIT/GPL and proprietary - The same result

Any help would be appreciated :slight_smile:

*Using RTX 2060, Driver version 580.119.02

To solve this problem I used the driver that comes with Cuda Toolkit 13.0 Update 2
Driver local for CUDA Toolkit 13.0 Update 2 local file
*NVIDIA GeForce RTX 2060 , Driver Version 580.95.05

This is from arch linux BBS ( Flickering XFCE (X11 with composit) and nvidia-open-dkms / Applications & Desktop Environments / Arch Linux Forums ), but the following command might help. (if you don’t want to downgrade the nvidia driver)

xfwm4 --replace --vblank=off

I wager that if you remove those drivers and reinstall from the rpmfusion repo that the problems will totally disappear. Rpmfusion tweaks and repackages the drivers so they work properly for fedora.

Unless performing cuda development most users do not need the toolkit. The cuda package from rpmfusion along with the drivers installed from rpmfusion work for the very great majority of users.

I originally had the RPM Fusion drivers installed. Only after this issue arose did I try switching to the nvidia.com ones (under the same version), where the issue persisted. Since then I switched back, yet the issue was not resolved - to this day - with the most up-to-date Fedora 42 installation.

As I understand it, some had the issue resolved with the latest unstable Nvidia drivers, and as mentioned in this thread - downgrading works too. But I really don’t want to mess with that.

Ultimately, the best fix for me was to run:

xfconf-query -c xfwm4 -p /general/vblank_mode -s xpresent

…as provided by this forum (Thanks @tuniverse0131 :grinning_face_with_smiling_eyes:).

Don’t forget to restart your session after running it, xfwm4 --replace & works.

Note that to revert this change in a future Nvidia fix, you should run:

xfconf-query -c xfwm4 -p /general/vblank_mode -s auto

I’ll mark this as the solution for anyone looking for a temporary fix, though this should really be fixed by Nvidia themselves and be changed…