Can't use multiple monitors with fedora 39 Gnome

Hi,

I’ve been having issues with using multiple monitors. I’m not quite sure which logs I should provide so please request some and I will deliver.

My situation:
my system has an amd ryzen 5 5600x and an NVIDIA RTX 3070.
I’ve had problem with running wayland for a while now but I was content just using x11 for now hoping that a future update might fix things. Today I did an update through the software application and after a reboot I managed to get to the login screen and from then on, no matter what I do, I can’t log in, my screens would just turn black and go to sleep in a couple of seconds, sometimes waking and returning to sleep. Both Gnome and Gnome with x11 options didn’t make a difference. I also tried manually starting a wayland session in the ctrl+alt+f3 login, it didn’t work (just black screen for a bit then back to cli). At the moment everything seems to be updated to the most recent version, sudo dnf upgrade --refresh claims everything is up to date so I am inclined to believe it.

my monitor setup is a Gigabyte m28q (I think) and the other one is a Samsung Odyssey g9 oled. Both work perfectly fine individually but when I plug in both everything goes black. I’ve tried resetting gnome settings to default using dconf reset -f /org/gnome. I didn’t notice any changes. I’ve looked around this forum and haven’t found anything that describes my situation. Does anyone know what I should do? Thanks!

Removed amd

Have you installed the nvidia drivers from rpmfusion?

If not then consider this.
Most laptops with dual GPUs have the external port connected to the dGPU (in this case nvidia) and the built in screen connected to the iGPU.
Nouveau (the default open source nvidia driver) is not fully capable of managing any nvidia GPU and that is more exacerbated with the newer versions.

In almost all cases where your symptoms were reported the installation of the nvidia drivers seemed to have solved the issue.

Drivers can be installed by first verifying that the rpmfusion repo is enabled with dnf repolist and checking the output to see if the repo rpmfusion-nonfree-nvidia-driver is in the list shown. If not then that repo can be enabled by using the gnome software app and the “hamburger” menu in the upper right corner to enable the 3rd party repo. Once you are sure that repo is enabled then you can install the nvidia driver by the following command.
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
Wait 5 minutes then reboot and as long as secure boot is disabled the drivers should load.

If secure boot is enabled it may prevent the nvidia driver from loading until the following steps are completed.

  1. perform the steps identified in /usr/share/doc/akmods/README.secureboot
    Those steps will require the use of sudo with each command.
  2. remove the unsigned drivers with sudo dnf remove kmod-nvidia*
  3. rebuild the drivers which will now be signed with sudo akmods --force
  4. reboot and the driver should now load with secure boot either enabled or disabled.

Thanks for your speedy response!

I forgot to mention that I’m talking about a PC I built myself. I have the non free nvidia drivers installed. I tried installing what you suggested anyway and noticed that at least one of them was either out of date or not installed. After rebooting, nothing changed. Secure boot is disabled in the bios. Do you know of anything else I might be missing? Thanks again for your help :smiley:.

Please post the output of the following commands, using the preformatted text tags as shown so it retains the formatting as seen on-screen.
```
text pasted here
```

lsmod | grep -iE "nvidia|nouveau", dnf list installed \*nvidia\*, mokutil --sb-state, and inxi -Fzxx
You may need to install inxi first.

lsmod |grep -iE "nvidia|nouveau:

nvidia_drm            126976  19
nvidia_modeset       1605632  16 nvidia_drm
nvidia_uvm           6651904  0
nvidia              60362752  238 nvidia_uvm,nvidia_modeset
video                  77824  1 nvidia_modeset

dnf list installed \*nvidia\*:

Installed Packages
akmod-nvidia.x86_64                                                                                                                                       3:550.54.14-2.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.6.9-200.fc39.x86_64.x86_64                                                                                                                  3:545.29.06-2.fc39                                                                                                                  @@commandline                   
kmod-nvidia-6.7.3-200.fc39.x86_64.x86_64                                                                                                                  3:550.54.14-2.fc39                                                                                                                  @@commandline                   
kmod-nvidia-6.7.9-200.fc39.x86_64.x86_64                                                                                                                  3:550.54.14-2.fc39                                                                                                                  @@commandline                   
nvidia-gpu-firmware.noarch                                                                                                                                20240312-1.fc39                                                                                                                     @updates                        
nvidia-modprobe.x86_64                                                                                                                                    3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                                                                                                                                3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                                                                                                                                    3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                                                                                                                3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                                                                                                                           3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686                                                                                                                        3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                                                                                                                      3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                                                                                                                        3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                                                                                                                             3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                                                                                                                           3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                                                                                                                          3:550.54.14-1.fc39                                                                                                                  @rpmfusion-nonfree-nvidia-driver

mokutil --sb-state:

SecureBoot disabled

inxi -Fzxx:

System:
  Kernel: 6.7.9-200.fc39.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.40-14.fc39
  Desktop: GNOME v: 45.5 tk: GTK v: 3.24.41 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 39 (Workstation Edition)
Machine:
  Type: Desktop Mobo: ASRock model: B550 Steel Legend
    serial: <superuser required> UEFI: American Megatrends LLC. v: P2.10
    date: 08/04/2021
CPU:
  Info: 6-core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3+
    rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 32 MiB
  Speed (MHz): avg: 2491 high: 3700 min/max: 2200/4650 boost: enabled cores:
    1: 3700 2: 2200 3: 2200 4: 2200 5: 2873 6: 2200 7: 2200 8: 2200 9: 2853
    10: 2873 11: 2200 12: 2200 bogomips: 88631
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3070 Lite Hash Rate] vendor: ASUSTeK
    driver: nvidia v: 550.54.14 arch: Ampere pcie: speed: 2.5 GT/s lanes: 16
    ports: active: none off: DP-3,HDMI-A-2 empty: DP-1,DP-2,HDMI-A-1
    bus-ID: 06:00.0 chip-ID: 10de:2488
  Device-2: Creative Live! Cam Sync 1080p driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-1.1.2.1:14
    chip-ID: 041e:409d
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 23.2.4
    compositor: gnome-shell driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
    gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5120x1440 s-dpi: 96
  Monitor-1: HDMI-1 res: 5120x1440 dpi: 130048 diag: 1mm (0.06")
  API: OpenGL v: 4.6.0 vendor: nvidia v: 550.54.14 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 3070/PCIe/SSE2
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 06:00.1 chip-ID: 10de:228b
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 08:00.4 chip-ID: 1022:1487
  Device-3: Focusrite-Novation Scarlett Solo (3rd Gen.)
    driver: snd-usb-audio type: USB rev: 2.0 speed: 480 Mb/s lanes: 1
    bus-ID: 1-1.1.1.2:15 chip-ID: 1235:8211
  Device-4: No brand CalDigit TS4 Audio - Rear
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-1.1.1.4:18 chip-ID: 2188:6536
  Device-5: Creative Live! Cam Sync 1080p driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-1.1.2.1:14
    chip-ID: 041e:409d
  API: ALSA v: k6.7.9-200.fc39.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASRock driver: r8169 v: kernel
    pcie: speed: 5 GT/s lanes: 1 port: f000 bus-ID: 04:00.0 chip-ID: 10ec:8125
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie:
    speed: 5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 8086:2723
  IF: wlp5s0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-9:19 chip-ID: 8087:0029
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 8.19 TiB used: 1.98 TiB (24.2%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 PRO 1TB size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 35.9 C
  ID-2: /dev/sda vendor: Seagate model: ST4000VN006-3CW104 size: 3.64 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-3: /dev/sdb vendor: Seagate model: ST4000DM004-2CV104 size: 3.64 TiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 68.73 GiB used: 32.29 GiB (47.0%) fs: ext4 dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 367.8 MiB (37.8%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 845.35 GiB used: 632.56 GiB (74.8%) fs: ext4
    dev: /dev/nvme0n1p4
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 36.5 C mobo: N/A gpu: nvidia temp: 50 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
  Memory: total: 48 GiB available: 46.96 GiB used: 3.45 GiB (7.3%)
  Processes: 367 Power: uptime: 48m wakeups: 0 Init: systemd v: 254
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 51 Compilers: gcc: 13.2.1 Shell: Zsh v: 5.9
    running-in: gnome-terminal inxi: 3.3.33

That output shows that the nvidia drivers are loaded and appear to be functioning.
What is the output of nvidia-smi?

The inxi output seems to indicate you are using one hdmi port out of 2 and one out of 3 DP ports.
What happens if you switch things around and use different ports?

The indications are you are using HDMI 2 and DP3. Maybe using HDMI 1 would have differing results.

Also the cables / adapters used may matter. Several of the DP to HDMI adapters seem problematic to me.

What is the output of xrandr

Hi, for clarification. The commands executed in the last message where done with only one display plugged in. Below are the same commands executed while both displays were plugged in. I did the commands in the ctrl+alt+f3 prompt.

lsmod |grep -iE "nvidia|nouveau:

nvidia_drm            126976  17
nvidia_modeset       1605632  4 nvidia_drm
nvidia_uvm           6651904  0
nvidia              60362752  84 nvidia_uvm,nvidia_modeset
video                  77824  1 nvidia_modeset

dnf list installed \*nvidia\*:

Installed Packages
akmod-nvidia.x86_64                      3:550.54.14-2.fc39 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.6.9-200.fc39.x86_64.x86_64 3:545.29.06-2.fc39 @@commandline                   
kmod-nvidia-6.7.3-200.fc39.x86_64.x86_64 3:550.54.14-2.fc39 @@commandline                   
kmod-nvidia-6.7.9-200.fc39.x86_64.x86_64 3:550.54.14-2.fc39 @@commandline                   
nvidia-gpu-firmware.noarch               20240312-1.fc39    @updates                        
nvidia-modprobe.x86_64                   3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64               3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                   3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64               3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64          3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686       3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64     3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64       3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686            3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64          3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64         3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver

mokutil --sb-state:

SecureBoot disabled

inxi -Fzxx:

System:
  Kernel: 6.7.9-200.fc39.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 2.40-14.fc39
  Console: tty 3 DM: GDM Distro: Fedora Linux 39 (Workstation Edition)
Machine:
  Type: Desktop Mobo: ASRock model: B550 Steel Legend serial: <superuser required> UEFI: American
    Megatrends LLC. v: P2.10 date: 08/04/2021
CPU:
  Info: 6-core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3+ rev: 0 cache:
    L1: 384 KiB L2: 3 MiB L3: 32 MiB
  Speed (MHz): avg: 2237 high: 2651 min/max: 2200/4650 boost: enabled cores: 1: 2200 2: 2200
    3: 2651 4: 2200 5: 2200 6: 2200 7: 2200 8: 2200 9: 2200 10: 2200 11: 2200 12: 2200
    bogomips: 88635
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3070 Lite Hash Rate] vendor: ASUSTeK driver: nvidia
    v: 550.54.14 arch: Ampere pcie: speed: 2.5 GT/s lanes: 16 ports: active: none off: DP-3,HDMI-A-2
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 06:00.0 chip-ID: 10de:2488
  Device-2: Creative Live! Cam Sync 1080p driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-1.1.2.1:14 chip-ID: 041e:409d
  Display: server: X.org v: 1.20.14 with: Xwayland v: 23.2.4 compositor: gnome-shell driver: X:
    loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
    gpu: nvidia,nvidia-nvswitch tty: 480x67
  Monitor-1: DP-3 model: Gigabyte M28U res: 3840x2160 dpi: 155 diag: 726mm (28.6")
  Monitor-2: HDMI-A-2 model: Samsung Odyssey G93SC res: 3840x1080 dpi: 82 diag: 1239mm (48.8")
  API: OpenGL Message: GL data unavailable in console. Try -G --display
  API: EGL Message: EGL data unavailable in console, eglinfo missing.
Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
    pcie: speed: 2.5 GT/s lanes: 16 bus-ID: 06:00.1 chip-ID: 10de:228b
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 08:00.4 chip-ID: 1022:1487
  Device-3: Focusrite-Novation Scarlett Solo (3rd Gen.) driver: snd-usb-audio type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-1.1.1.2:15 chip-ID: 1235:8211
  Device-4: No brand CalDigit TS4 Audio - Rear driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-1.1.1.4:18 chip-ID: 2188:6536
  Device-5: Creative Live! Cam Sync 1080p driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-1.1.2.1:14 chip-ID: 041e:409d
  API: ALSA v: k6.7.9-200.fc39.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.4 status: off with: 1: pipewire-pulse status: active 2: wireplumber
    status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASRock driver: r8169 v: kernel pcie: speed: 5 GT/s
    lanes: 1 port: f000 bus-ID: 04:00.0 chip-ID: 10ec:8125
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 05:00.0 chip-ID: 8086:2723
  IF: wlp5s0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1
    bus-ID: 1-9:19 chip-ID: 8087:0029
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.2 lmp-v: 11
Drives:
  Local Storage: total: 8.19 TiB used: 1.98 TiB (24.2%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 PRO 1TB size: 931.51 GiB speed: 63.2 Gb/s
    lanes: 4 serial: <filter> temp: 32.9 C
  ID-2: /dev/sda vendor: Seagate model: ST4000VN006-3CW104 size: 3.64 TiB speed: 6.0 Gb/s
    serial: <filter>
  ID-3: /dev/sdb vendor: Seagate model: ST4000DM004-2CV104 size: 3.64 TiB speed: 6.0 Gb/s
    serial: <filter>
Partition:
  ID-1: / size: 68.73 GiB used: 31.54 GiB (45.9%) fs: ext4 dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 367.8 MiB (37.8%) fs: ext4 dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat dev: /dev/nvme0n1p1
  ID-4: /home size: 845.35 GiB used: 632.57 GiB (74.8%) fs: ext4 dev: /dev/nvme0n1p4
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 34.2 C mobo: N/A gpu: nvidia temp: 38 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 48 GiB available: 46.96 GiB used: 1.41 GiB (3.0%)
  Processes: 302 Power: uptime: 9m wakeups: 0 Init: systemd v: 254 target: graphical (5)
    default: graphical
  Packages: pm: flatpak pkgs: 50 Compilers: gcc: 13.2.1 Shell: Bash v: 5.2.26 running-in: tty 3
    inxi: 3.3.33

Also. I would like to mention that I have a thunderbolt 4 dock plugged into a usb-c (non thunderbolt, non display) port on my pc. I use it as a normal usb c dock (ethernet, extra usb a and c ports, sd card…) with this pc. Normally there is also a displayport cable connected through that dock. Unplugging the cable however didn’t change anything so I’m not sure if that could be the problem. I just wanted to mention it.

All the active displays are connected straight from the graphics card from the correct port (dp to dp and hdmi to hdmi (no adapting)) to my displays.

The xrandr command outputs cannot open display (or something). I’m guessing that is normal. When I run it with only one of my displays plugged in, in an x11 session this is the output:
xrandr:

Screen 0: minimum 8 x 8, current 5120 x 1440, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected primary 5120x1440+0+0 (normal left inverted right x axis y axis) 1mm x 1mm
   3840x1080    120.00 + 240.00    60.00  
   5120x1440    240.00*  120.00    60.00  
   3840x2160     59.94    50.00  
   2560x1440    239.97   120.00    59.95  
   1920x1080    240.00   119.88    59.94    50.00  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1280x1024     60.02  
   1280x800      59.81  
   1280x720      60.00    59.94  
   800x600       60.32  
   720x480       59.94  
   640x480       75.00    59.94  
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

Not sure if it is useful, as the other display is not plugged in at all.

Those are very interesting since the resolutions reported are far from being synced. It would appear that you possibly have one 4k monitor (the Gigabyte) and one HD (the Samsung) and for some reason they are not properly displaying. I suspect that both are truly HD (1920x1080) and the way they are configured is simply a glitch in the setup.

I could suggest that you enter the gnome settings display panel and delete the config for all monitors shown then log out and back in to see if that may fix it. Do the same with first one monitor then the other to clear out the configs for both.
Also try setting the monitors as mirrored until the glitches are resolved.

The resolutions of my monitors are:
Gigabyte m28u: 3840 x 2160.
Samsung Odyssey g9 OLED: 5120 x 1440.

I would like to try delete the config for the monitors, how would I go about doing this? I can’t seem to find anything other then the I can see the desktop file in “/usr/share/applications”. Is it that file I should delete? Or what are you suggesting I delete?

You shouldn’t need to edit any files under /usr/share/applications. There is a “monitors.xml” file under ~/.config that you might want to make a backup copy of and experiment with.

Try setting the refresh rate to 60 on both monitors. At the resolutions you list that is the only refresh rate that matches both. It should not be required but may be a starting point to iron this out.

Okay, now it seems like we’re getting somewhere. I made a backup of the monitors.xml file and then removed all the configurations in the active one, then logged out and back in. Now I made it into the os with both monitors. Now however all the resolutions and refresh rates were out of wack.

So I set my odyssey resolution to 5120x1440 at 240Hz and the other screen at 4k 60. Everything seems fine. When I set the second monitor to 4k144 however the problem I had before shows back up. I can just wait for 5-10 seconds and it will revert to the previous setting if I don’t touch anything. Would this be a possible bandwidth issue or something? I know that 5120x1440 is not easy to handle, and adding another 4k144 on top might be unstable. Everything did work in the past though so I’m just guessing. Anything else I can try to change so that I can use the monitor to its fullest?

edit:
In addition. I tried playing around a little. If I set the 5120x1440 monitor to 3840x1080 I can set the 4k monitor to 144Hz. I can’t figure out what’s going wrong.

edit 2:
I can also get up to 5120x1440 120 Hz. While the other one is at max (3840x2160 144Hz). It really seems like it just doesn’t want to use both monitors at max settings. Any ideas?

That seems unlikely if your monitors are connected directly to your video card. However, it looks like your video card is PCIe Gen 4. If you’ve put it in a PCIe Gen 3 (or Gen 2) slot, the card might be exceeding the power or bandwidth limitations of the PCI slot when trying to drive those monitors at that high of a resolution and refresh rate.

What is the difference between PCIe Gen 3 and PCIe Gen 4? - Kingston Technology.

This line may tell the story.
Some GPUs will only support 4k at a lower refresh rate. If that is the case then you may be limited on that one monitor to the 60 Hz refresh while the other may be able to do a full 240 Hz refresh.