You are not logged in.

#1 2025-04-07 18:38:37

apemax
Member
Registered: 2018-05-20
Posts: 3

[Solved] Black screen on one monitor with Nvidia+AMD GPUs.

Hello,

I am currently getting a black screen on my main monitor with Gnome/GDM/Wayland when I have both of my monitors connected, I've tried looking into the issue myself but have yet to find a solution so I thought I'd ask here to see if anyone else had any ideas about it.

My current setup consists of two monitors and two GPUs, A iiyama 24" and a BenQ 22". The iiyama 24" is connected to a RX 6500 XT via HDMI and the BenQ 22" is connected to a GT710 via DVI. The iiyama 24" is set as my primary monitor on the right and the RX 6500 XT is my primary GPU I run everything on.

This setup was working fine up until a few days ago when I installed a new M.2 NVMe SSD onto my motherboard, To do this I had to remove my RX 6500 XT to get access to the M.2 slot. Since removing and reinstalling my RX 6500 XT this issue has happened. I don't know whether unplugging my GPU is what caused this but thats when it started happening recently, I have noticed this issue in the past but I can't remember how I managed to fix it.

This issue happens with both my old Arch install with Grub2 and the fresh Arch install with systemd-boot on the new SSD. If I boot my system with just the AMD GPU connected to a monitor then plug in the monitor to the Nvidia GPU once I have at the GDM login screen both monitors will display fine, This only seems to happen if you boot the system with both monitors connected.

I had a look at my journalctl log and noticed I get these errors from the nouveau kernel driver when this issue happens:

kernel: nouveau 0000:04:00.0: gr: DATA_ERROR 0000009c [] ch 2 [007fbb2000 gnome-shell[884]] subc 0 class a197 mthd 0d78 data 00000004

Full journalctl log here: https://gist.github.com/apemax/7b650767 … tfile1.txt

The strange thing is it is the screen that is connected to my AMD GPU that goes black, Not the one connected to the Nvidia GPU.

Some more information that might be relevant, When my system boots the UEFI screen displays on the left monitor connected to the Nvidia GPU, Even though the AMD GPU is the one in the top PCIe x16 slot. Grub2 also displays on the left monitor as well and systemd-boot displays on both at the same time.

So if anyone has any ideas on how to fix this issue or even just a workaround that would be helpful. If any more information is required please just ask and I will provide it.

Last edited by apemax (2025-04-10 20:01:43)

Offline

#2 2025-04-08 18:45:36

seth
Member
Registered: 2012-09-03
Posts: 63,021

Re: [Solved] Black screen on one monitor with Nvidia+AMD GPUs.

Apr 07 13:17:44 ArchDT gnome-shell[884]: Created gbm renderer for '/dev/dri/card0'
Apr 07 13:17:44 ArchDT gnome-shell[884]: Created gbm renderer for '/dev/dri/card1'
Apr 07 13:17:44 ArchDT gnome-shell[884]: Boot VGA GPU /dev/dri/card0 selected as primary

When my system boots the UEFI screen displays on the left monitor connected to the Nvidia GPU, Even though

Seems the HW changes have reversed the order.
To select /dev/dri/card1 as the primary GPU, add a eg. /usr/lib/udev/rules.d/61-mutter-primary-gpu.rules

ENV{DEVNAME}=="/dev/dri/card1", TAG+="mutter-device-preferred-primary"

If you want to keep running on the nvidia GPU, see whether it's just because the output names have changed, https://wiki.archlinux.org/title/GDM#Se … r_settings
Though gnome might also completely ignore the IGP in that configuration and idk how to change that on wayland (but it's gonna be gnome specific)

Offline

#3 2025-04-10 18:28:08

apemax
Member
Registered: 2018-05-20
Posts: 3

Re: [Solved] Black screen on one monitor with Nvidia+AMD GPUs.

seth wrote:
Apr 07 13:17:44 ArchDT gnome-shell[884]: Created gbm renderer for '/dev/dri/card0'
Apr 07 13:17:44 ArchDT gnome-shell[884]: Created gbm renderer for '/dev/dri/card1'
Apr 07 13:17:44 ArchDT gnome-shell[884]: Boot VGA GPU /dev/dri/card0 selected as primary

When my system boots the UEFI screen displays on the left monitor connected to the Nvidia GPU, Even though

Seems the HW changes have reversed the order.
To select /dev/dri/card1 as the primary GPU, add a eg. /usr/lib/udev/rules.d/61-mutter-primary-gpu.rules

ENV{DEVNAME}=="/dev/dri/card1", TAG+="mutter-device-preferred-primary"

If you want to keep running on the nvidia GPU, see whether it's just because the output names have changed, https://wiki.archlinux.org/title/GDM#Se … r_settings
Though gnome might also completely ignore the IGP in that configuration and idk how to change that on wayland (but it's gonna be gnome specific)

Yes, Reading your reply reminded me of the last time I got this issue, I fixed it last time by putting this line:

ENV{ID_PATH}=="pci-0000:08:00.0", TAG+="mutter-device-preferred-primary"

in this file:

/etc/udev/rules.d/90-gpu-pri.rules

I found this fix originally from this post here:

https://forums.fedoraforum.org/showthre … -(Wayland)

I believe the reason this stopped working after installing the SSD is because the PCI ID for my AMD GPU changed from "08:00.0" to "09:00.0" for some reason after installing that SSD. So I did the same again fixing the PCI ID in this line:

ENV{ID_PATH}=="pci-0000:09:00.0", TAG+="mutter-device-preferred-primary"

and adding it to this file:

/etc/udev/rules.d/90-gpu-pri.rules

Doing that fixed the issue for me again. Thanks for help. smile

Offline

#4 2025-04-10 19:22:14

seth
Member
Registered: 2012-09-03
Posts: 63,021

Re: [Solved] Black screen on one monitor with Nvidia+AMD GPUs.

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#5 2025-04-10 20:02:15

apemax
Member
Registered: 2018-05-20
Posts: 3

Re: [Solved] Black screen on one monitor with Nvidia+AMD GPUs.

seth wrote:

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Right, Done. smile

Offline

Board footer

Powered by FluxBB