Xorg configuration with 2 monitors 2 gpus + onboard graphics

Hey can anyone help me out, I’m trying to accomplish one the following setups.

Scenario 1:

Hardware
2 x nvidia gpus
1 x intel onboard graphics
1 x monitor

scenario; I’m trying to configure xorg.conf in a way that will allow me to switch from the hdmi input connected to the intel on board graphics using the monitor controls to the display port input what is connected to one of my nvidia GPUs leaving the 2nd nvidia gpu “active” for mining / computation / rendering but with no monitor connected. Is this possible?

Scenario 2:

Hardware
2 x nvidia gpus
1 x intel onboard graphics
2 x monitors

scenario; duel monitor setup using hdmi from on board graphics connected to monitor 1 & display port connected to monitor 2 and again leaving the 2nd gpu with no monitor attached but still active so it can be used for computation etc.

Have attempted multiple configurations but I just cant seem to wrap my head around what is needed!

here is my current xorg.conf

Section "ServerLayout"
        Identifier     "default"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" RightOf "Screen0"
        Screen      2  "Screen2"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/X11/misc"
        FontPath     "/usr/share/fonts/X11/cyrillic"
        FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/Type1"
        FontPath     "/usr/share/fonts/X11/100dpi"
        FontPath     "/usr/share/fonts/X11/75dpi"
        FontPath     "built-ins"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor2"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "intelOBG"
        Driver      "intel"
        BusID       "PCI:0:2:0"
EndSection

Section "Device"
        Identifier  "gpu0"
        Driver      "nvidia"
        BusID       "PCI:1:0:0"
        VendorName     "NVIDIA Corporation"
        BoardName      "NVIDIA GeForce RTX 3090"
EndSection

Section "Device"
        Identifier  "gpu1"
        Driver      "nvidia"
        BusID       "PCI:2:0:0"
        VendorName     "NVIDIA Corporation"
        BoardName      "NVIDIA GeForce RTX 3070"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "intelOBG"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "gpu0"
        Monitor    "Monitor1"
        DefaultDepth    24
        Option         "Coolbits" "28"
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen2"
        Device     "gpu1"
        #Monitor    "Monitor2"
        DefaultDepth    24
        Option         "Coolbits" "28"
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Please provide OS/release details; if using a LTS release which kernel stack you’re using (with Lubuntu the installation media used dictates this).

PRETTY_NAME=“Ubuntu 21.10”
NAME=“Ubuntu”
VERSION_ID=“21.10”
VERSION=“21.10 (Impish Indri)”
VERSION_CODENAME=impish
ID=ubuntu
ID_LIKE=debian
Interim Release
Operating System: Ubuntu 21.10
Kernel: Linux 5.13.0-39-generic
Architecture: x86-64

thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.