Skip to content

Black screen when switching to XFCE console with enabled compositing and nvidia driver 545 or newer

When I switch to XFCE with enabled compositing from other tty with Ctrl-Alt-FN I often (almost always) get black screen with mouse cursor only.

  • Video card: nVidia 2060 Super
  • OS: Fedora 39

The problem appeared after upgrading kernel 6.5 to 6.6 and nvidia driver 535.129.03 to 545.29.06. Now I use kernel 6.8.9 and driver 550.78 with the same problem.

Steps to reproduce:

  1. Install nvidia driver 545 or newer.
  2. Start XFCE session with enabled compositing.
  3. Switch to other virtual console with Ctrl-Alt-FN (always works fine).
  4. Switch back to XFCE with Alt-FN.
  5. Repeat steps 3 and 4 many times.

The problem goes away if compositing is disabled (Settings → Window Manager Tweaks → Compositor → Enable display compositing).

And one more strange feature: if you delete <property name="use_compositing" type="bool" value="..."/> from ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml and then start xfce session, the problem does not occur with compositing enabled. But if you turn compositing off and on, the problem returns.