NVIDIA/Wayland/optimus external monitors always blank
Hi I'm running Fedora 36 Pre-release edition with Gnome 42 beta:
kernel-5.17.0-0.rc5.102.fc36.x86_64
gnome-shell-42~beta-2.fc36.x86_64
mutter-42~beta-1.fc36.x86_64
xorg-x11-drv-nvidia-510.54-1.fc36.x86_64
00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB] (rev a1)
After setting up the NVIDIA drivers from rpmfusion, Gnome on wayland seems to work out of the box now except for external monitors.
I've tested a monitor directly connected to my laptop's hdmi port, but also two monitors connected (one hdmi and one DP) using a usb-c hub. In all cases I can see the screens showing up in the display settings, I can choose which one should be primary, re-arrange them etc. The external screens all turn on but remain completely blank (like a black screen).
This only happens on Wayland, not on X11.
If more information is required please let me know.