Can't login to a Wayland session with Gnome on Fedora 39 if a second monitor is plugged (Nvidia Graphic card)

Hi,

I currently can’t start a Wayland session if a second monitor is connected with Gnome on Fedora 39. I can start a Wayland session if only a monitor is connected without any issues, but if I plug the second monitor afterwards, the session crash and I have to login again. I’ve tried creating a new blank user to see if this fixes the problem as suggested here, but it doesn’t work.

My system is fully updated according to Gnome-Software (I also tried updates through fwupd and my firmware are updated).

I

Here are the outputs from dnf list --installed \*nvidia\* :

System:
  Kernel: 6.7.11-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: Micro-Star model: PRO B760-VC WIFI (MS-7D98) v: 2.0
    serial: <superuser required> part-nu: Desktop UEFI: American Megatrends LLC.
    v: B.A2 date: 03/24/2023
CPU:
  Info: 6-core model: 12th Gen Intel Core i5-12400F bits: 64 type: MT MCP
    arch: Alder Lake rev: 2 cache: L1: 480 KiB L2: 7.5 MiB L3: 18 MiB
  Speed (MHz): avg: 1255 high: 2743 min/max: 800/4400 cores: 1: 2743 2: 800
    3: 1636 4: 800 5: 1222 6: 800 7: 1351 8: 800 9: 2510 10: 800 11: 800 12: 800
    bogomips: 59904
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA AD107 [GeForce RTX 4060] vendor: Micro-Star MSI
    driver: nvidia v: 550.67 arch: Lovelace pcie: speed: 2.5 GT/s lanes: 8
    ports: active: none off: DP-3,HDMI-A-1 empty: DP-1,DP-2 bus-ID: 01:00.0
    chip-ID: 10de:2882
  Device-2: Logitech HD Webcam C615 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-2.1:5 chip-ID: 046d:082c
  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: 3840x1080 s-dpi: 96
  Monitor-1: DP-3 mapped: DP-5 note: disabled pos: right
    model: Samsung S27R35A res: 1920x1080 dpi: 82 diag: 686mm (27")
  Monitor-2: HDMI-A-1 mapped: HDMI-0 note: disabled pos: primary,left
    model: Samsung LF27T35 res: 1920x1080 dpi: 82 diag: 686mm (27")
  API: OpenGL v: 4.6.0 vendor: nvidia v: 550.67 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 4060/PCIe/SSE2
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Raptor Lake High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:7a50
  Device-2: NVIDIA vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    pcie: speed: 16 GT/s lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:22be
  Device-3: JMTek LLC. USB PnP Audio Device
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-1:2 chip-ID: 0c76:161e
  Device-4: Logitech HD Webcam C615 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-2.1:5 chip-ID: 046d:082c
  API: ALSA v: k6.7.11-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: Intel Raptor Lake-S PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:7a70
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: speed: 5 GT/s lanes: 1 port: 3000 bus-ID: 04:00.0
    chip-ID: 10ec:8125
  IF: enp4s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb
    v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-14:14
    chip-ID: 8087:0aaa
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
    lmp-v: 10
Drives:
  Local Storage: total: 10.05 TiB used: 5.32 TiB (52.9%)
  ID-1: /dev/nvme0n1 vendor: MSI model: M371 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 30.9 C
  ID-2: /dev/nvme1n1 vendor: TeamGroup model: TM8FP4002T size: 1.86 TiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 36.9 C
  ID-3: /dev/sda vendor: Seagate model: Expansion Desk size: 5.46 TiB
    type: USB rev: 3.0 spd: 5 Gb/s lanes: 1 serial: <filter>
  ID-4: /dev/sdb vendor: Western Digital model: WD20EARX-32PASB0
    size: 1.82 TiB type: USB rev: 2.1 spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 929.91 GiB used: 298 GiB (32.0%) fs: btrfs dev: /dev/dm-0
    mapped: luks-01d033bb-4840-4bf4-b292-bcedc872ee8e
  ID-2: /boot size: 973.4 MiB used: 410.7 MiB (42.2%) 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: 929.91 GiB used: 298 GiB (32.0%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-01d033bb-4840-4bf4-b292-bcedc872ee8e
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 20.0 C mobo: N/A gpu: nvidia temp: 47 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
  Memory: total: 32 GiB available: 31.18 GiB used: 5.15 GiB (16.5%)
  Processes: 433 Power: uptime: 33m wakeups: 0 Init: systemd v: 254
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 80 Compilers: clang: 17.0.6 gcc: 13.2.1
    Shell: Bash v: 5.2.26 running-in: gnome-terminal inxi: 3.3.33

And dnf list --installed \*nvidia\* :

Installed Packages
akmod-nvidia.x86_64                       3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.7.11-200.fc39.x86_64.x86_64 3:550.67-1.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.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                    3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64           3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686        3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64      3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64        3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686             3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64           3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64          3:550.67-1.fc39    @rpmfusion-nonfree-nvidia-driver