Multiple Monitors and GPUS, Can't get all monitors to work

I am using a bare metal desktop machine. I have 6 monitors, 4 plugged into my dedicated GPU (2070 SUPER) and 2 plugged into my integrated GPU (UHD 630). Currently with what I’ve tried I can only get one of the GPUs to be active concurrently.

Here is my inxi -FAZ :

System:
 Host: machinename Kernel: 6.1.9-arch1-1 arch: x86_64 bits: 64 Desktop: i3
   v: 4.22 Distro: EndeavourOS
Machine:
 Type: Desktop Mobo: ASUSTeK model: PRIME Z390-A v: Rev 1.xx
   serial: <superuser required> UEFI: American Megatrends v: 1105
   date: 06/06/2019
CPU:
 Info: 8-core model: Intel Core i9-9900K bits: 64 type: MT MCP cache:
   L2: 2 MiB
 Speed (MHz): avg: 3600 min/max: 800/5000 cores: 1: 3600 2: 3600 3: 3600
   4: 3600 5: 3600 6: 3600 7: 3600 8: 3600 9: 3601 10: 3600 11: 3600 12: 3600
   13: 3600 14: 3600 15: 3600 16: 3600
Graphics:
 Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] driver: i915 v: kernel
 Device-2: NVIDIA TU104 [GeForce RTX 2070 SUPER] driver: nvidia
   v: 525.85.05
 Device-3: Logitech HD Pro Webcam C920 type: USB
   driver: snd-usb-audio,uvcvideo
 Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: nvidia gpu: i915
   resolution: 1: 2560x1440~144Hz 2: 1920x1080~60Hz 3: 1920x1080~60Hz
   4: 1920x1080~60Hz
 API: OpenGL v: 4.6.0 NVIDIA 525.85.05 renderer: NVIDIA GeForce RTX 2070
   SUPER/PCIe/SSE2
Audio:
 Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel
 Device-2: NVIDIA TU104 HD Audio driver: snd_hda_intel
 Device-3: Focusrite-Novation Scarlett Solo (3rd Gen.) type: USB
   driver: snd-usb-audio
 Device-4: Logitech HD Pro Webcam C920 type: USB
   driver: snd-usb-audio,uvcvideo
 Device-5: ASUSTek XONAR SOUND CARD type: USB
   driver: hid-generic,snd-usb-audio,usbhid
 Sound API: ALSA v: k6.1.9-arch1-1 running: yes
 Sound Server-1: PipeWire v: 0.3.65 running: yes
Network:
 Device-1: Intel Ethernet I219-V driver: e1000e
 IF: eno1 state: up speed: 1000 Mbps duplex: full mac: **:**:**:**:**:**
Drives:
 Local Storage: total: 2.79 TiB used: 9.43 GiB (0.3%)
 ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW010T8 size: 953.87 GiB
 ID-2: /dev/nvme1n1 vendor: Intel model: SSDPEKNW020T8 size: 1.86 TiB
Partition:
 ID-1: / size: 936.85 GiB used: 9.19 GiB (1.0%) fs: ext4 dev: /dev/nvme0n1p2
Swap:
 Alert: No swap data was found.
Sensors:
 System Temperatures: cpu: 50.0 C mobo: N/A
 Fan Speeds (RPM): N/A
Info:
 Processes: 299 Uptime: 2h 46m Memory: 31.2 GiB used: 4.06 GiB (13.0%)
 Shell: Bash inxi: 3.3.24

Other maybe helpful information.

xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x1b7 cap: 0x1, Source Output crtcs: 4 outputs: 7 associated providers: 0 name:NVIDIA-0

lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (rev 02)
	DeviceName: Onboard - Video
	Subsystem: ASUSTeK Computer Inc. Device 8694
--
01:00.0 VGA compatible controller: NVIDIA Corporation TU104 [GeForce RTX 2070 SUPER] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device 4008
	Kernel driver in use: nvidia

I am currently using the /etc/X11/xorg.conf made by nvidia-xconfig that looks like this :

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 525.85.05

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I have found an Arch wiki article that may or may not be relevant PRIME.

Because I am new to EndeavourOS and Linux in general I’m not sure what I should to to fix the issue, just a slight hunch that this is an Xorg issue and not an OS specific problem.

The goal is that all 6 monitors will be active concurrently, that games/videos/browsers or any other graphically demanding content will default to the 2070 SUPER for rendering. if there is any additional information needed to solve my problem I will be happy to provide it.

We would need the output of this:

inxi -Faz

Please, describe how you change configuration to change to those results. What do you change/modify/run?

As expected, nvidia utilities do not consider an Optimus setup, but provide a nvidia-only configuration.
Thus, I would suggest starting with no conf file at all, until you see what doesn’t work and try a specific workaround. Delete/disable that file and reboot/restart Xorg (logout-login).

It is relevant. Maybe this is what will solve the issue, or almost :person_shrugging: .

That should be possible, if you start with no conf file, as suggested above.

I cannot ensure you that this will be perfect, but PRIME is the way, or optimus-manager with possibly some modifications, depending on how it runs initially.

Starting from a simple setup (as suggested above), get these:

inxi -SMGaz
pacman -Qs nvidia
for Xconf in /etc/modules-load.d/*.conf; do echo -e "\n $Xconf \n"; cat $Xconf ; done
for Xconf in /etc/modprobe.d/*.conf; do echo -e "\n $Xconf \n"; cat $Xconf ; done
journalctl -b -p3 --no-pager --no-hostname
grep -E "(EE)|(WW)|failed|Time" /var/log/Xorg.0.log

We may need more later, after first stage of troubleshooting :wink: .

FAZ is what the introduction post suggested

System:
  Kernel: 6.1.9-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: initrd=\af12727e30e447118e256520ee4e6de5\6.1.9-arch1-1\initrd
    nvme_load=YES rw root=UUID=077cea35-1f95-485b-9300-31f9c483943b
    systemd.machine_id=af12727e30e447118e256520ee4e6de5
  Desktop: i3 v: 4.22 info: i3bar vt: 7 dm: LightDM v: 1.32.0
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME Z390-A v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 1105
    date: 06/06/2019
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: HDMI-A-1,HDMI-A-2 empty: DP-1 bus-ID: 00:02.0
    chip-ID: 8086:3e98 class-ID: 0300
  Device-2: NVIDIA TU104 [GeForce RTX 2070 SUPER] vendor: Gigabyte
    driver: nvidia v: 525.85.05 alternate: nouveau,nvidia_drm non-free: 525.xx+
    status: current (as of 2022-12) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:1e84 class-ID: 0300
  Device-3: Logitech HD Pro Webcam C920 type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-9:5 chip-ID: 046d:082d
    class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.6 compositor: Picom v: git-b700a
    driver: X: loaded: nvidia gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 6400x2520 s-dpi: 80 s-size: 2031x799mm (79.96x31.46")
    s-diag: 2183mm (85.93")
  Monitor-1: DP-0 pos: primary,2-2 res: 2560x1440 hz: 144 dpi: 109
    size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
  Monitor-2: DP-2 pos: 3-4 res: 1920x1080 hz: 60 dpi: 82
    size: 598x336mm (23.54x13.23") diag: 686mm (27.01") modes: N/A
  Monitor-3: DP-4 pos: 3-1 res: 1920x1080 hz: 60 dpi: 82
    size: 598x336mm (23.54x13.23") diag: 686mm (27.01") modes: N/A
  Monitor-4: HDMI-0 pos: 1-3 res: 1920x1080 hz: 60 dpi: 82
    size: 598x336mm (23.54x13.23") diag: 686mm (27.01") modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 525.85.05 renderer: NVIDIA GeForce RTX 2070
    SUPER/PCIe/SSE2 direct render: Yes
local/egl-wayland 2:1.1.11-3
    EGLStream-based Wayland external platform
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/nvidia 525.85.05-3
    NVIDIA drivers for linux
local/nvidia-hook 1.2-1
    pacman hook for nvidia
local/nvidia-inst 1.10-1
    Script to setup nvidia drivers (dkms version) in EndeavourOS
local/nvidia-installer-common 1.7-2
    Common scripts for nvidia-installer-dkms and nvidia-inst
local/nvidia-utils 525.85.05-1
    NVIDIA drivers utilities
 /etc/modules-load.d/*.conf 

cat: '/etc/modules-load.d/*.conf': No such file or directory
 /etc/modprobe.d/firewalld-sysctls.conf 

install nf_conntrack /usr/bin/modprobe --ignore-install nf_conntrack $CMDLINE_OPTS && /sbin/sysctl --quiet --pattern 'net[.]netfilter[.]nf_conntrack.*' --system
Feb 05 14:34:35 kernel: x86/cpu: SGX disabled by BIOS.
Feb 05 14:34:35 kernel: hid-generic 0003:0B05:180F.0001: No inputs registered, leaving
Feb 05 14:34:36 kernel: 
Feb 05 14:34:39 kernel: nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
Feb 05 14:34:39 kernel: ucsi_ccg 0-0008: i2c_transfer failed -110
Feb 05 14:34:39 kernel: ucsi_ccg 0-0008: ucsi_ccg_init failed - -110
[     5.926] Current Operating System: Linux FourthReich 6.1.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 01 Feb 2023 17:07:39 +0000 x86_64
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     5.927] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Feb  5 14:34:39 2023
[     5.931] (WW) The directory "/usr/share/fonts/misc" does not exist.
[     5.932] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[     5.932] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     5.932] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     5.932] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     5.932] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     5.932] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[     5.932] (WW) Disabling Keyboard0
[     5.932] (WW) Disabling Mouse0
[     6.273] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     7.541] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[     7.648] (II) Initializing extension MIT-SCREEN-SAVER
[     7.851] (EE) libinput: HDA NVidia HDMI/DP,pcm=3: Failed to create a device for /dev/input/event9
[     7.851] (EE) PreInit returned 2 for "HDA NVidia HDMI/DP,pcm=3"
[     7.894] (EE) libinput: HDA NVidia HDMI/DP,pcm=7: Failed to create a device for /dev/input/event10
[     7.894] (EE) PreInit returned 2 for "HDA NVidia HDMI/DP,pcm=7"
[     7.938] (EE) libinput: HDA NVidia HDMI/DP,pcm=8: Failed to create a device for /dev/input/event11
[     7.938] (EE) PreInit returned 2 for "HDA NVidia HDMI/DP,pcm=8"
[     7.981] (EE) libinput: HDA NVidia HDMI/DP,pcm=9: Failed to create a device for /dev/input/event12
[     7.981] (EE) PreInit returned 2 for "HDA NVidia HDMI/DP,pcm=9"
[     8.291] (EE) libinput: XP-PEN STAR G640 Pen: Failed to create a device for /dev/input/mouse1
[     8.291] (EE) PreInit returned 2 for "XP-PEN STAR G640 Pen"
[     8.398] (EE) libinput: SONIX USB DEVICE: Failed to create a device for /dev/input/event30
[     8.398] (EE) PreInit returned 2 for "SONIX USB DEVICE"
[     8.481] (EE) libinput: SONIX USB DEVICE Mouse: Failed to create a device for /dev/input/mouse2
[     8.481] (EE) PreInit returned 2 for "SONIX USB DEVICE Mouse"
[     8.678] (EE) libinput: Razer Naga Pro: Failed to create a device for /dev/input/mouse0
[     8.678] (EE) PreInit returned 2 for "Razer Naga Pro"
[     8.738] (EE) libinput: Razer Naga Pro: Failed to create a device for /dev/input/event6
[     8.738] (EE) PreInit returned 2 for "Razer Naga Pro"
[     8.874] (EE) libinput: HDA Intel PCH Front Mic: Failed to create a device for /dev/input/event18
[     8.874] (EE) PreInit returned 2 for "HDA Intel PCH Front Mic"
[     8.931] (EE) libinput: HDA Intel PCH Rear Mic: Failed to create a device for /dev/input/event19
[     8.931] (EE) PreInit returned 2 for "HDA Intel PCH Rear Mic"
[     8.978] (EE) libinput: HDA Intel PCH Line: Failed to create a device for /dev/input/event20
[     8.978] (EE) PreInit returned 2 for "HDA Intel PCH Line"
[     9.024] (EE) libinput: HDA Intel PCH Line Out Front: Failed to create a device for /dev/input/event21
[     9.024] (EE) PreInit returned 2 for "HDA Intel PCH Line Out Front"
[     9.078] (EE) libinput: HDA Intel PCH Line Out Surround: Failed to create a device for /dev/input/event22
[     9.078] (EE) PreInit returned 2 for "HDA Intel PCH Line Out Surround"
[     9.138] (EE) libinput: HDA Intel PCH Line Out CLFE: Failed to create a device for /dev/input/event23
[     9.138] (EE) PreInit returned 2 for "HDA Intel PCH Line Out CLFE"
[     9.181] (EE) libinput: HDA Intel PCH Front Headphone: Failed to create a device for /dev/input/event24
[     9.181] (EE) PreInit returned 2 for "HDA Intel PCH Front Headphone"
[     9.224] (EE) libinput: HDA Intel PCH HDMI/DP,pcm=3: Failed to create a device for /dev/input/event25
[     9.224] (EE) PreInit returned 2 for "HDA Intel PCH HDMI/DP,pcm=3"
[     9.268] (EE) libinput: HDA Intel PCH HDMI/DP,pcm=7: Failed to create a device for /dev/input/event26
[     9.268] (EE) PreInit returned 2 for "HDA Intel PCH HDMI/DP,pcm=7"
[     9.311] (EE) libinput: HDA Intel PCH HDMI/DP,pcm=8: Failed to create a device for /dev/input/event27
[     9.311] (EE) PreInit returned 2 for "HDA Intel PCH HDMI/DP,pcm=8"
[     9.408] (EE) libinput: PC Speaker: Failed to create a device for /dev/input/event7
[     9.408] (EE) PreInit returned 2 for "PC Speaker"
[     9.594] (EE) libinput: Razer Naga Pro: Failed to create a device for /dev/input/mouse0
[     9.594] (EE) PreInit returned 2 for "Razer Naga Pro"
[    10.018] (EE) libinput: SONIX USB DEVICE: Failed to create a device for /dev/input/event30
[    10.018] (EE) PreInit returned 2 for "SONIX USB DEVICE"
[    10.178] (EE) libinput: Razer Naga Pro: Failed to create a device for /dev/input/event6
[    10.178] (EE) PreInit returned 2 for "Razer Naga Pro"
[    10.221] (EE) libinput: SONIX USB DEVICE Mouse: Failed to create a device for /dev/input/mouse2
[    10.221] (EE) PreInit returned 2 for "SONIX USB DEVICE Mouse"
[    10.274] (EE) libinput: XP-PEN STAR G640 Pen: Failed to create a device for /dev/input/mouse1
[    10.274] (EE) PreInit returned 2 for "XP-PEN STAR G640 Pen"

during the live install and after I booted into the DE it was defaulting to the IGPU as the only outputs. using nvidia-xconfig and rebooting gave me what I have now. I was worried about wrecking the xorg.conf because I didn’t want to bork the install after borking 2 vanilla arch installs after getting i3 and lightdm on them and then changing s*** that I didn’t understand.

I think you need to do it differently. Example:

https://wiki.archlinux.org/title/multihead#Example:_dualhead_configuration_using_relative_coordinates

Unless it’s a typo, @Bryanpwo may have something else in mind :person_shrugging: .

About your posted logs, do you mean you have deleted /etc/X11/xorg.conf before getting them?
Which monitors are working now? It seems you only have two (?).

What does xrandr say?

xrandr --listmonitors
xrandr --listproviders

Use eos-log tool to post full Xorg log.

You may try adding a minimal configuration file at /etc/X11/xorg.conf.d/20-nvidia.conf with contents:

Section "Device"
        Identifier   "NVIDIA TU104"
        Driver       "nvidia"
        VendorName   "Gigabyte"
        BoardName    "GeForce RTX 2070 SUPER"
        BusID        "PCI:1:0:0"
EndSection

Edit: Check how the system/kernel handles nvidia:

journalctl -b -g nvidia

I have not yet deleted it, I have not modified it in anyway other than using nvidia-xconfig once when I was first setting up the system.

right now the 4 monitors plugged into my 2070 SUPER are working. The 2 connected to my UHD630 via the motherboard outputs have only a single white underscore in the top left, of theses 2 monitors 1 is connected with an HDMI and the other is a DP to HDMI with DP being on the MB.

Monitors: 4
 0: +*DP-0 2560/597x1440/336+1920+1080  DP-0
 1: +DP-2 1920/598x1080/336+4480+1440  DP-2
 2: +HDMI-0 1920/598x1080/336+2240+0  HDMI-0
 3: +DP-4 1920/598x1080/336+0+1440  DP-4
Providers: number : 1
Provider 0: id: 0x1b7 cap: 0x1, Source Output crtcs: 4 outputs: 7 associated providers: 0 name:NVIDIA-0

https://0x0.st/oCJd.txt

Done I will reboot now

EDIT:

first I changed

no impact

I then deleted

no impact either still only the same 4 monitors are active(I rebooted after each step)

Edit 2: after doing these steps not sure which one it was but my audio volume is much lower then before. before I had not touched the system volume controls and had my music player at 50% in the application setting but now I need to increase to system volume to 153% and the player volume to 100% and its still not as loud as before.

Edit 3:

cd /usr/lib/modprobe.d/
[user@Host modprobe.d]$ ls -la
total 164
drwxr-xr-x   2 root root   4096 Feb  4 21:15 .
drwxr-xr-x 178 root root 135168 Feb  5 20:17 ..
-rw-r--r--   1 root root   1065 Aug  9 16:33 50-nfs.conf
-rw-r--r--   1 root root    128 Nov 11 04:11 bluetooth-usb.conf
-rw-r--r--   1 root root    101 Jan 15 21:13 nvdimm-security.conf
-rw-r--r--   1 root root     18 Jan 20 02:19 nvidia-utils.conf
-rw-r--r--   1 root root    306 Jan 29 15:52 README
-rw-r--r--   1 root root    773 Jan 29 15:52 systemd.conf
[user@Host modprobe.d]$ cat nvidia-utils.conf 
blacklist nouveau
[user@Host modprobe.d]$ 

Not sure how I would do that when they aren’t showing in xrandr

where I’m at now:

I deleted /etc/X11/xorg.conf
installed mesa and mesa-utils
created /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
made it contain :

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

added the following to a bash file that autoruns when LightDM starts

xrandr --setprovideroutputsource modesetting NVIDIA-0

xrandr --auto

installed Optimus Manager
yay -Syu optimus-manager
reboot

systemctl status optimus-manager.service
● optimus-manager.service - Optimus Manager Commands Daemon
     Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; preset: disabl>
     Active: active (running) since Sat 2023-02-18 05:02:18 EST; 13min ago
    Process: 644 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (>
    Process: 689 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (co>
   Main PID: 807 (python3)
      Tasks: 1 (limit: 38190)
     Memory: 57.3M
        CPU: 1.213s
     CGroup: /system.slice/optimus-manager.service
             └─807 /usr/bin/python3 -u -m optimus_manager.daemon

Feb 18 05:02:17 Host python3[689]: [1065] INFO: Available modules: ['nouveau', 'nvidia>
Feb 18 05:02:17 Host python3[689]: [1065] INFO: Unloading modules ['nvidia_drm', 'nvid>
Feb 18 05:02:18 Host python3[689]: [1220] INFO: switching=none, nothing to do
Feb 18 05:02:18 Host python3[689]: [1235] INFO: Writing to /etc/X11/xorg.conf.d/10-opt>
Feb 18 05:02:18 Host python3[689]: [1235] INFO: Writing state {'type': 'pending_post_x>
Feb 18 05:02:18 Host python3[689]: [1235] INFO: Xorg pre-start hook completed successf>
Feb 18 05:02:18 Host systemd[1]: Started Optimus Manager Commands Daemon.
Feb 18 05:02:18 Host python3[807]: [1] INFO: # Commands daemon
Feb 18 05:02:18 Host python3[807]: [1] INFO: Opening UNIX socket
Feb 18 05:02:18 Host python3[807]: [1] INFO: Awaiting commands

only the 2 monitors connected to the motherboard are giving output and they are also the only 2 that show up in :

xrandr --listmonitors
Monitors: 2
 0: +HDMI-1 1920/598x1080/336+0+0  HDMI-1
 1: +HDMI-2 1920/598x1080/336+1920+0  HDMI-2

when I try to enable hybrid mode with optimus-manager --switch hybrid
this is the error I get:

optimus-manager --switch hybrid
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20230218T050216.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting
Cannot execute command because of previous errors.

and lastly here is the log it refers to:

[10] INFO: # Xorg pre-start hook
[10] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[10] INFO: Requested mode is: integrated
[1065] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[1065] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
[1220] INFO: switching=none, nothing to do
[1235] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[1235] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20230218T050216', 'requested_mode': 'integrated'}
[1235] INFO: Xorg pre-start hook completed successfully.