GNOME Bugzilla – Bug 777985
mutter should refuse to initialize in wayland mode if the nvidia binary driver is in use
Last modified: 2021-07-05 13:46:25 UTC
Just like we currently fallback to Xorg on optimus laptops with outputs connected to both GPUs we should likewise fallback to Xorg if the nvidia binary driver is used (on 1 or or more GPUs), otherwise the user just gets a black screen. I know that people are working on nvidia binary driver support, but until that is stable it seems like a good idea to detect the nvidia binary driver and fallback to xorg, at least for 3.22.x
Also see: https://bodhi.fedoraproject.org/updates/FEDORA-2017-9f6383547e Where users are getting a black screen due to use of the nvidia driver and there being no fallback.
master might need some adjustments, bug AFAICT, on 3.22.x we should already be exiting the process with an error code which should cause gdm to immediately fall back to using X. The failure should be one of: a) failing to find a drm kms device b) if a) succeeds, failing to create a gbm device with the retrieved kms fd c) if b) succeeds, failing to initialize cogl/clutter due to nvidia's eglGetDisplay() failing since we pass it the gbm device a) and b) should succeed on optimus systems but c) should fail.
Ok I've asked the "anonymous" commenter on: https://bodhi.fedoraproject.org/updates/FEDORA-2017-9f6383547e To file a separate bug for his problem (the fallback does not seem to work for him). I believe this can be closed then.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/mutter/-/issues/ Thank you for your understanding and your help.