Is it possible to use both an AMD an Nvidia dedicated GPU via Xorg? (RX 6600 & RTX 2060)

New poster from Patreon, hello all! I have a PC with both an AMD RX 6600 an a Nvidia RTX 2060. Both are full sized cards (both bought when the cards were new to market) an for a long time I have used the AMD card as a dedicated Linux GPU while the Nvidia card has been passed over to a gaming KVM. Recently I have found my interest changing an I don’t play video games like I used to so I was hoping to switch to using both cards on the Linux side. The AMD card has all 4 slots full (DP+HDMI) an the Nvidia card is connected to a display drawing tablet I own. I have the Nvidia drivers set up in Arch linux an loaded, when booting up the display tablet shows the booting process like the other displays but when trying to run X it blanks out. Using nvidia-xconfig it displays to the drawing tablet but ruins the displays for the AMD card. Deleting that Xconfig an going back to my previous fixed the displays on the AMD card but nothing for the Nvidia card. Is dual gpu’s even possible with Xorg? Ive tried setting up the display via xorg.conf but it always blanks out.

Section “ServerFlags”
Option “StandbyTime” “0”
Option “SuspendTime” “0”
Option “BlankTime” “0”
Option “OffTime” “0”
EndSection

Section “Device”
Identifier “AMD”
Driver “amdgpu”
Option “TearFree” “true”
Option “VariableRefresh” “true”
BusID “PCI:3:0:0”
EndSection

Section “Device”
Identifier “NVIDIA Card”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce RTX 2060”
BusID “PCI:5:0:0”
Option “PrimaryGPU” “false”
EndSection

Section “InputClass”
Identifier “elecom huge”
MatchProduct “ELECOM TrackBall Mouse HUGE TrackBall”
MatchIsPointer “true”
Option “ButtonMapping” “1 2 2 4 5 6 7 8 9 10 11 3”
EndSection

Section “InputClass”
Identifier “kensington expert”
MatchProduct “Kensington Expert Mouse”
MatchIsPointer “true”
Option “ButtonMapping” “3 2 1 4 5 6 7 8”
EndSection

Section “InputClass”
Identifier “HDMI-1-0”
MatchUSBID “28bd:094d”
MatchIsKeyboard “on”
MatchDevicePath “/dev/input/event*”
Driver “libinput”
EndSection

Section “InputClass”
Identifier “HDMI-1-0”
MatchIsTablet “on”
Driver “wacom”
MatchUSBID “28bd:094d”
MatchDevicePath “/dev/input/event*”
EndSection

Section “Monitor”
Identifier “DisplayPort-3”
Option “Primary” “true”
Option “DPMS” “true”
Modeline “2560x1440_144” 586.58 2560 2568 2600 2640 1440 1443 1453 1543 +hsync +vsync
Option “PreferredMode” “2560x1440_144”
EndSection

Section “Monitor”
Identifier “DisplayPort-4”
Option “leftof” “DisplayPort-3”
Option “DPMS” “true”
Modeline “1920x1080_143.9” 332.88 1920 1928 1960 2000 1080 1143 1151 1157 +hsync -vsync
Option “PreferredMode” “1920x1080_143.9”
EndSection

Section “Monitor”
Identifier “DisplayPort-5”
Option “rightof” “DisplayPort-3”
Option “DPMS” “true”
Modeline “1680x1050_74.9” 187.00 1680 1800 1976 2272 1050 1053 1059 1099 -hsync +vsync
Option “PreferredMode” “1680x1050_74.9”
EndSection

Section “Monitor”
Identifier “HDMI-A-1”
Option “above” “DisplayPort-5”
Option “DPMS” “true”
Modeline “3840x2160R” 533.00 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync
Option “PreferredMode” “3840x2160R”
EndSection

Section “Monitor”
Identifier “HDMI-1-0”
Option “above” “DisplayPort-3”
Option “DPMS” “true”
EndSection

Running PCSX2 an RPCS3 both recognize the Nvidia card an will use the card to render games so I believe the Nvidia card is properly working on linux I just don’t know how to get it to display via Xorg. Most post Ive found online seem to be under the assumption your using a laptop with an Integrated GPU + Dedicated GPU not two Dedicated GPUs.

1 Like

Almost certainly possible with something similar to PRIME offloading. Just ignore/overwrite the efifb setup by the board. And do your own. Might need to boot via efistub to get framebuffer to initialize correctly.

I suspect the xorg.conf shown here might be malformed. Can you show us the error that happens when you try to startx but just get a black screen?