[Wayland][NVIDIA PRIMARY] secondary gpu screen not showing up (optimus)
Affected version
gnome : 42.2 archlinux linux: 5.18.1 Wayland only
Bug summary
When using the udev rule to set the default gpu to be the dgpu of my laptop all the screens wired to my igpu stopped working They are shown in the settings menu but clicking on a screen cause the control panel to segfault
Steps to reproduce
- set the udev rule to use your nvidia dgpu
- add these two lines in the /etc/environement file
GBM_BACKEND=nvidia-drm __GLX_VENDOR_LIBRARY_NAME=nvidia
These will allow the nvidia driver to use gbm (not sure gnome is using it) - plug an external monitor to the nvidia gpu (not all ports are wired to the dgpu on my laptop only the usbc-displayport)
- start gnome
What happened
Mutter didn't expand my desktop to my igpu's monitors
What did you expect to happen
Having all of my screen working with the nvidia gpu beging the one doing the rendering
Relevant logs, screenshots, screencasts etc.
i have this in the logs constantly spamming
juin 06 11:47:29 archlinux gnome-shell[1054]: (../mutter/clutter/clutter/clutter-frame-clock.c:318):clutter_frame_clock_notify_presented: code should not be reached
in joining to this message the output of journalctl _UID=$(id --user)
logs.txt
alternative gdrive link with compressed file
Edited by Marc barbier