Monitors keep black after suspend/sleep

Hi,

Fedora 40, after my system goes into suspend mode (whether triggered manually or automatically), it cannot be woken up anymore. Both monitors stay black and in standby mode. Other USB devices (e.g., the keyboard backlight) turn on, but SSH connections to the system also do not work. Here is my output from inxi -Fzxx:

System:
  Kernel: 6.8.11-300.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: GNOME v: 46.2 tk: GTK v: 3.24.42 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Desktop Mobo: ASRock model: B550 Steel Legend
    serial: <superuser required> UEFI: American Megatrends LLC. v: P3.40
    date: 01/18/2024
Battery:
  Device-1: nintendo_switch_controller_battery_0003:057E:2009.0007 model: N/A
    serial: N/A charge: Full status: full
CPU:
  Info: 8-core model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3+
    rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
  Speed (MHz): avg: 2534 high: 3592 min/max: 2200/4850 boost: enabled cores:
    1: 2200 2: 2200 3: 2200 4: 3592 5: 2871 6: 2758 7: 2200 8: 2200 9: 2200
    10: 2874 11: 2200 12: 3580 13: 2874 14: 2200 15: 2200 16: 2200
    bogomips: 121365
  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 Ti] vendor: Gigabyte
    driver: nouveau v: kernel arch: Ampere pcie: speed: 16 GT/s lanes: 16 ports:
    active: DP-1,DP-2 empty: HDMI-A-1,HDMI-A-2 bus-ID: 06:00.0
    chip-ID: 10de:2482
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.0
    compositor: gnome-shell driver: gpu: nouveau display-ID: 0
  Monitor-1: DP-1 model: Huawei ZQE-CBA res: 3440x1440 dpi: 110
    diag: 864mm (34")
  Monitor-2: DP-2 model: Dell AW3418DW res: 3440x1440 dpi: 109
    diag: 865mm (34.1")
  API: OpenGL v: 4.3 vendor: mesa v: 24.0.8 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: NV174 device-ID: 10de:2482 display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 06:00.1 chip-ID: 10de:228b
  Device-2: HP HyperX Cloud III Wireless
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-3:3 chip-ID: 03f0:0c9d
  API: ALSA v: k6.8.11-300.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.7 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: 05:00.0 chip-ID: 10ec:8125
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: TP-Link UB500 Adapter driver: btusb v: 0.8 type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 bus-ID: 1-2.1.3:10 chip-ID: 2357:0604
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
    lmp-v: 10
Drives:
  Local Storage: total: 5 TiB used: 128.29 GiB (2.5%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 990 PRO 4TB size: 3.64 TiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 45.9 C
  ID-2: /dev/nvme1n1 vendor: Corsair model: Force MP600 size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 36.9 C
  ID-3: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 929.91 GiB used: 127.92 GiB (13.8%) fs: btrfs dev: /dev/dm-0
    mapped: luks-6068998f-74d2-4734-9349-03bf8fc0a844
  ID-2: /boot size: 973.4 MiB used: 358.8 MiB (36.9%) fs: ext4
    dev: /dev/nvme1n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/nvme1n1p1
  ID-4: /home size: 929.91 GiB used: 127.92 GiB (13.8%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-6068998f-74d2-4734-9349-03bf8fc0a844
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 52.5 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB available: 31.26 GiB used: 2.52 GiB (8.1%)
  Processes: 952 Power: uptime: 2m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 20 Compilers: N/A Shell: Zsh v: 5.9
    running-in: gnome-terminal inxi: 3.3.34

  1. sshd is disabled by default with fedora. You can enable it and start it immediately with sudo systemctl enable --now sshd.service or enable it for next boot with sudo systemctl enable sshd.service
    You would also need to enable connections through the firewall by installing the firewall-config package then using the firewall-config command to enable that ssh service to connect.

  2. I suspect the black screen is because you have an nvidia gpu and are using the nouveau driver. This probably would be fixed if you were to install the nvidia drivers from rpmfusion.

I have almost the same system (ASRock B550M Pro4, Ryzen 7 5700X, Geforce RTX 3050, F40 with kernel 6.8.11) and I have been using the nvidia drivers for years and never have a problem with waking up.

I do one thing differently though. I do not suspend/sleep, but merely blank & lock the screen since my desktop acts as a media server for my household.

sshd is enabled and connections are working when the system is in a normal state^^

As a workaround, you might want to try this GNOME extension: https://extensions.gnome.org/extension/1414/unblank/ - it worked for me.