Hello,
When I switch to Xorg console from text console or other Xorg with Ctrl-Alt-FN I often 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.7.9 and driver 550.54.14 with the same problem. It happens about 9 of 10 times.
Steps to reproduce:
Install nvidia driver 545 or newer.
Start Xorg session.
Switch to text virtual console with Ctrl-Alt-FN (always works fine).
Switch back to Xorg console with Alt-FN.
Repeat steps 3 and 4 many times.
Actual results: black screen with mouse cursor on Xorg console.
Thanks! The problem is partially solved. Now console switching works much better. About first 15 times switching to text console and back to Xorg have completed without any problems. Then I’ve got black screen with mouse cursor again. But the screen is restored after ~20 seconds.
What about efifb. I don’t want to use exactly efifb. And don’t know which is better: efifb or nvidia fbdev. I just want switching between console works as it should be. I’m guessing nvidia fbdev is a new driver feature that doesn’t work properly yet or requires some tuning.
I have now installed 550.78 driver, but the problem remains. I also tried uninstalling the current driver, clearing everything related to nvidia and installing driver 550.78 without any tuning. The problem still exists.
Can anyone reproduce the issue? Or it only affects my specific installation.
If you set nvidia-drm.fbdev to 0 which is the default value, the simpledrmfb driver will be loaded even if nvidia-drm.modeset is set to 1. You have to set nvidia-drm.modeset=1 and nvidia-drm.fbdev=1 to replace simpledrmfb by nvidia-drmfb.
I’ve discovered that the problem is related to the compatibility of the 545+ driver with compositing in XFCE. The problem goes away if compositing is disabled (Settings → Window Manager Tweaks → Compositor → Enable display compositing). This option is enabled by default.
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.