Failure to resume (freeze) after long suspend

For the past couple of months my desktop has been failing to resume from a long suspend.

It resumes successfully if it’s woken up fairly quickly (thirty minutes to an hour).
But it freezes - back-light on, black screen, unblinking cursor in top left corner - if it’s left to sleep for several hours.

There is nothing in the journal. It just stops…

journalctl -rb -1
Jun 27 04:42:43 manjaro-ws.local kernel: userif-6: sent link up event.
Jun 27 04:42:43 manjaro-ws.local kernel: PM: suspend entry (deep)
Jun 27 04:42:43 manjaro-ws.local systemd-sleep[28937]: Entering sleep state 'suspend'...
Jun 27 04:42:43 manjaro-ws.local wpa_supplicant[2032]: wlp5s0: CTRL-EVENT-DSCP-POLICY clear_all
Jun 27 04:42:43 manjaro-ws.local systemd[1]: Starting System Suspend...
Jun 27 04:42:43 manjaro-ws.local wpa_supplicant[2032]: nl80211: deinit ifname=p2p-dev-wlp5s0 disabled_11b_rates=0
Jun 27 04:42:43 manjaro-ws.local wpa_supplicant[2032]: p2p-dev-wlp5s0: CTRL-EVENT-DSCP-POLICY clear_all
Jun 27 04:42:43 manjaro-ws.local wpa_supplicant[2032]: p2p-dev-wlp5s0: CTRL-EVENT-DSCP-POLICY clear_all
Jun 27 04:42:43 manjaro-ws.local kernel: audit: type=1130 audit(1656285163.395:259): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=keyboard-resume comm="systemd" exe="/usr/lib/systemd/sy>
Jun 27 04:42:43 manjaro-ws.local systemd[1]: Reached target Sleep.
Jun 27 04:42:43 manjaro-ws.local audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=keyboard-resume comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? ter>
Jun 27 04:42:43 manjaro-ws.local systemd[1]: Finished Powercycle the keyboard on system resume.
Jun 27 04:42:43 manjaro-ws.local vmnet-natd[2023]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jun 27 04:42:43 manjaro-ws.local vmnet-natd[2023]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jun 27 04:42:43 manjaro-ws.local NetworkManager[1890]: <info>  [1656285163.3952] device (wlp5s0): set-hw-addr: reset MAC address to 40:74:E0:78:5D:A2 (unmanage)
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001002
Jun 27 04:42:43 manjaro-ws.local vmnet-natd[2023]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001002
Jun 27 04:42:43 manjaro-ws.local vmnet-natd[2023]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001002
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001002
Jun 27 04:42:43 manjaro-ws.local NetworkManager[1890]: <info>  [1656285163.3928] device (wlp5s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Jun 27 04:42:43 manjaro-ws.local NetworkManager[1890]: <info>  [1656285163.3926] device (wlp5s0): supplicant interface state: completed -> disconnected
Jun 27 04:42:43 manjaro-ws.local vmnet-natd[2023]: RTM_DELADDR: index:3, addr:192.168.15.138
Jun 27 04:42:43 manjaro-ws.local vmnet-natd[2023]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jun 27 04:42:43 manjaro-ws.local NetworkManager[1890]: <info>  [1656285163.3821] device (wlp5s0): set-hw-addr: set MAC address to 42:69:8C:C9:94:9C (scanning)
Jun 27 04:42:43 manjaro-ws.local vmnet-natd[2023]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001002
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001002
Jun 27 04:42:43 manjaro-ws.local vmnet-natd[2023]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001002
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001002
Jun 27 04:42:43 manjaro-ws.local gnome-shell[2567]: An active wireless connection, in infrastructure mode, involves no access point?
Jun 27 04:42:43 manjaro-ws.local wpa_supplicant[2032]: wlp5s0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-9999 noise=9999 txrate=0
Jun 27 04:42:43 manjaro-ws.local NetworkManager[1890]: <info>  [1656285163.3799] dhcp4 (wlp5s0): state changed no lease
Jun 27 04:42:43 manjaro-ws.local NetworkManager[1890]: <info>  [1656285163.3798] dhcp4 (wlp5s0): activation: beginning transaction (timeout in 45 seconds)
Jun 27 04:42:43 manjaro-ws.local NetworkManager[1890]: <info>  [1656285163.3798] dhcp4 (wlp5s0): canceled DHCP transaction
Jun 27 04:42:43 manjaro-ws.local NetworkManager[1890]: <info>  [1656285163.3794] device (wlp5s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Jun 27 04:42:43 manjaro-ws.local wpa_supplicant[2032]: wlp5s0: CTRL-EVENT-DSCP-POLICY clear_all
Jun 27 04:42:43 manjaro-ws.local wpa_supplicant[2032]: wlp5s0: CTRL-EVENT-DISCONNECTED bssid=68:ff:7b:de:ef:a6 reason=3 locally_generated=1
Jun 27 04:42:43 manjaro-ws.local kernel: wlp5s0: deauthenticating from 68:ff:7b:de:ef:a6 by local choice (Reason: 3=DEAUTH_LEAVING)
Jun 27 04:42:43 manjaro-ws.local kernel: audit: type=1130 audit(1656285163.272:258): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/>
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: Stopped bridge wlp5s0 to virtual network 0.
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: Removing interface wlp5s0 index:3
Jun 27 04:42:43 manjaro-ws.local vmnetBridge[1915]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jun 27 04:42:43 manjaro-ws.local vmnet-natd[2023]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jun 27 04:42:43 manjaro-ws.local audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? >
Jun 27 04:42:43 manjaro-ws.local systemd[1]: Started Network Manager Script Dispatcher Service.
Jun 27 04:42:43 manjaro-ws.local dbus-daemon[1862]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jun 27 04:42:43 manjaro-ws.local systemd[1]: Starting Network Manager Script Dispatcher Service...

I found a post on the Arch Wiki where others are having similar issues. The problem seems to be affecting AMD as well as Nvidia hardware.

I tried applying Early KMS start, hoping it would solve the issue - no such luck.

Anyone have any ideas?

inxi -Fazy
System:
  Kernel: 5.18.6-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/vmlinuz-5.18-x86_64
    root=UUID=24a891ef-2616-416f-8b47-43a11efb7cf9 rw rootflags=subvol=@ quiet
    splash apparmor=1 security=apparmor
    cryptdevice=UUID=f2b4fd68-b7dd-4f92-a153-cac0e6a8d924:cr_root
    root=/dev/mapper/cr_root udev.log_priority=3 resume=/dev/mapper/cr_swap
  Desktop: GNOME v: 42.2 tk: GTK v: 3.24.34 wm: gnome-shell dm: GDM v: 42.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF GAMING X570-PLUS (WI-FI) v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 3603
    date: 03/20/2021
Battery:
  Device-1: hidpp_battery_0
    model: Logitech G304 Lightspeed Wireless Gaming Mouse serial: <filter>
    charge: 100% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 gen: 3
    built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x71 (113)
    stepping: 0 microcode: 0x8701021
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 32 MiB desc: 2x16 MiB
  Speed (MHz): avg: 2778 high: 4329 min/max: 2200/4426 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3673 2: 4329
    3: 2093 4: 3541 5: 2195 6: 2200 7: 2199 8: 2200 9: 2527 10: 3025 11: 2057
    12: 3628 13: 2200 14: 2148 15: 2199 16: 4237 bogomips: 115256
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Retpolines, IBPB: conditional, STIBP: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU104GL [Quadro RTX 4000] driver: nvidia v: 515.48.07
    alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-06) arch: Lovelace process: TSMC n5 (5nm)
    built: 2022-23+ pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3
    speed: 8 GT/s ports: active: none off: DP-2 empty: DP-1,DP-3,Unknown-1
    bus-ID: 0a:00.0 chip-ID: 10de:1eb1 class-ID: 0300
  Display: x11 server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.2
    compositor: gnome-shell driver: X: loaded: nvidia
    gpu: nvidia,nvidia-nvswitch display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-size: <missing: xdpyinfo>
  Monitor-1: DP-2 mapped: DP-3 note: disabled model: BenQ GW2283
    serial: <filter> built: 2019 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
    size: 476x268mm (18.74x10.55") diag: 546mm (21.5") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  OpenGL: renderer: Quadro RTX 4000/PCIe/SSE2 v: 4.6.0 NVIDIA 515.48.07
    direct render: Yes
Audio:
  Device-1: NVIDIA TU104 HD Audio driver: snd_hda_intel v: kernel pcie: gen: 3
    speed: 8 GT/s lanes: 16 bus-ID: 0a:00.1 chip-ID: 10de:10f8 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403
  Sound Server-1: ALSA v: k5.18.6-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.52 running: yes
Network:
  Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 8086:2526 class-ID: 0280
  IF: wlp5s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: down mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
  IF-ID-3: vboxnet0 state: down mac: <filter>
  IF-ID-4: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-5: vmnet2 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-6: vmnet3 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-7: vmnet4 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-8: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb
    v: 0.8 bus-ID: 3-5:3 chip-ID: 8087:0025 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 2.74 TiB used: 626.8 GiB (22.3%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:2 vendor: Silicon Power
    model: SPCC M.2 PCIe SSD size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EDFM20.0 temp: 22.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Crucial model: CT500P1SSD8
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: P3CR013 temp: 39.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Crucial model: CT1000MX500SSD1
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 023 scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT1000MX500SSD1
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 043 scheme: GPT
Partition:
  ID-1: / raw-size: 59.6 GiB size: 59.6 GiB (100.00%) used: 23.28 GiB (39.1%)
    fs: btrfs dev: /dev/dm-0 maj-min: 254:0 mapped: cr_root
  ID-2: /boot raw-size: 488 MiB size: 447.1 MiB (91.62%)
    used: 231.2 MiB (51.7%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:4
  ID-3: /boot/efi raw-size: 488 MiB size: 487 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:3
  ID-4: /home raw-size: 401.46 GiB size: 401.46 GiB (100.00%)
    used: 193.78 GiB (48.3%) fs: f2fs dev: /dev/dm-3 maj-min: 254:3
    mapped: cr_home
  ID-5: /var/log raw-size: 59.6 GiB size: 59.6 GiB (100.00%)
    used: 23.28 GiB (39.1%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: cr_root
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 14.89 GiB used: 43 MiB (0.3%)
    priority: -2 dev: /dev/dm-1 maj-min: 254:1 mapped: cr_swap
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: nvidia temp: 46 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 30%
Info:
  Processes: 472 Uptime: 1d 12h 52m wakeups: 65 Memory: 31.26 GiB
  used: 7.51 GiB (24.0%) Init: systemd v: 251 default: graphical
  tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 1140
  lib: 352 flatpak: 0 Shell: Zsh v: 5.9 running-in: gnome-terminal
  inxi: 3.3.19
cat /etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES="crc32c nvidia nvidia_modeset nvidia_uvm nvidia_drm"

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block keyboard keymap encrypt openswap filesystems resume fsck"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
#COMPRESSION="zstd"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()
cat /etc/default/grub
GRUB_DEFAULT=saved
GRUB_TIMEOUT=3
GRUB_TIMEOUT_STYLE=menu
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash apparmor=1 security=apparmor cryptdevice=UUID=f2b4fd68-b7dd-4f92-a153-cac0e6a8d924:cr_root root=/dev/mapper/cr_root udev.log_priority=3 resume=/dev/mapper/cr_swap"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
#GRUB_SAVEDEFAULT="true"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/boot/grub/themes/manjaro/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to ensure that the root filesystem is mounted read-only so that
# systemd-fsck can run the check automatically. We use 'fsck' by default, which
# needs 'rw' as boot parameter, to avoid delay in boot-time. 'fsck' needs to be
# removed from 'mkinitcpio.conf' to make 'systemd-fsck' work.
# See also Arch-Wiki: https://wiki.archlinux.org/index.php/Fsck#Boot_time_checking
#GRUB_ROOT_FS_RO=true
sudo mkinitcpio -P && sudo update-grub
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'default'
  -> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64.img
==> Starting build: 5.18.6-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
  -> Running build hook: [openswap]
  -> Running build hook: [filesystems]
  -> Running build hook: [resume]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.18-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'fallback'
  -> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64-fallback.img -S autodetect
==> Starting build: 5.18.6-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
  -> Running build hook: [openswap]
  -> Running build hook: [filesystems]
  -> Running build hook: [resume]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.18-x86_64-fallback.img
==> Image generation successful
Generating grub configuration file ...
Found theme: /boot/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.18-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.18-x86_64.img
Found initrd fallback image: /boot/initramfs-5.18-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Debian GNU/Linux 11 (bullseye) on /dev/mapper/cr_root
Found Kali GNU/Linux Rolling on /dev/mapper/cr_root
Found Kali GNU/Linux Rolling on /dev/mapper/cr_root
Found Kali GNU/Linux Rolling on /dev/mapper/cr_root
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2022-06-27 08:55:40 | timeshift-btrfs/snapshots/2022-06-27_08-55-40/@ | ondemand | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2022-06-26 01:23:21 | timeshift-btrfs/snapshots/2022-06-26_01-23-21/@ | ondemand | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2022-06-25 10:29:03 | timeshift-btrfs/snapshots/2022-06-25_10-29-03/@ | ondemand | {timeshift-autosnap} {created before upgrade} |
Found 3 snapshot(s)
Unmount /tmp/grub-btrfs.gEHwGSc9S9 .. Success
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

Note: The other distros found by OS Prober are docker containers.

Also, I have a laptop (Asus ZenBook UM325SA (AMD 5800U)) which is not exhibiting this behaviour.

Updating to say that the problem persists with the latest xorg-server 21.1.4-1 .

This time, I unplugged & reconnected the keyboard to bring it alive. Then, I tried switching ttys. The screen went completely blank (the unblinking cursor in the top left disappeared) - but I got a few more lines of logs… not sure if useful.

❯ journalctl -b -1 -r
Jul 26 23:54:55 manjaro-ws.local /usr/lib/gdm-x-session: (**) Option "fd" "43"
Jul 26 23:54:55 manjaro-ws.local /usr/lib/gdm-x-session[2634]: (II) event0  - Power Button: device removed
Jul 26 23:54:55 manjaro-ws.local /usr/lib/gdm-x-session[2634]: (**) Option "fd" "42"
Jul 26 23:54:55 manjaro-ws.local /usr/lib/gdm-x-session[2634]: (II) event1  - Power Button: device removed
Jul 26 23:54:55 manjaro-ws.local /usr/lib/gdm-x-session[2634]: (**) Option "fd" "39"
Jul 26 23:54:55 manjaro-ws.local rtkit-daemon[2151]: Supervising 6 threads of 4 processes of 1 users.
Jul 26 23:54:55 manjaro-ws.local kernel: Filesystems sync: 0.023 seconds
Jul 26 23:54:55 manjaro-ws.local kernel: PM: suspend entry (deep)
Jul 26 23:54:55 manjaro-ws.local systemd-sleep[226043]: Entering sleep state 'suspend'...
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_surface: assertion 'surface_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_concrete_size: assertion 'default_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_surface: assertion 'surface_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_concrete_size: assertion 'default_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_surface: assertion 'surface_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_concrete_size: assertion 'default_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_surface: assertion 'surface_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_concrete_size: assertion 'default_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local systemd[1]: Starting System Suspend...
Jul 26 23:54:55 manjaro-ws.local kernel: audit: type=1130 audit(1658859895.492:678): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=keyboard-resume comm="systemd" exe="/usr/lib/systemd/sy>
Jul 26 23:54:55 manjaro-ws.local systemd[1]: Reached target Sleep.
Jul 26 23:54:55 manjaro-ws.local audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=keyboard-resume comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? ter>
Jul 26 23:54:55 manjaro-ws.local systemd[1]: Finished Powercycle the keyboard on system resume.
Jul 26 23:54:55 manjaro-ws.local gnome-shell[2724]: Removing a network device that was not added
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_surface: assertion 'surface_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_concrete_size: assertion 'default_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_surface: assertion 'surface_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_concrete_size: assertion 'default_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_surface: assertion 'surface_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_concrete_size: assertion 'default_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_surface: assertion 'surface_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local evolution[4553]: _gtk_css_image_get_concrete_size: assertion 'default_width > 0' failed
Jul 26 23:54:55 manjaro-ws.local rtkit-daemon[2151]: Supervising 7 threads of 4 processes of 1 users.
Jul 26 23:54:55 manjaro-ws.local rtkit-daemon[2151]: Successfully made thread 226035 of process 2755 owned by '1000' RT at priority 5.
Jul 26 23:54:55 manjaro-ws.local NetworkManager[1986]: <info>  [1658859895.1521] device (tun0): state change: activated -> unmanaged (reason 'unmanaged', sys-iface-state: 'removed')
Jul 26 23:54:55 manjaro-ws.local nm-openvpn[214413]: Linux can't del IPv6 from iface tun0
Jul 26 23:54:55 manjaro-ws.local nm-openvpn[214413]: sitnl_send: rtnl: generic error (-1): Operation not permitted
Jul 26 23:54:55 manjaro-ws.local nm-openvpn[214413]: net_addr_v6_del: 2001:db8:123::2/64 dev tun0
Jul 26 23:54:55 manjaro-ws.local nm-openvpn[214413]: Linux can't del IP from iface tun0
Jul 26 23:54:55 manjaro-ws.local nm-openvpn[214413]: sitnl_send: rtnl: generic error (-1): Operation not permitted
Jul 26 23:54:55 manjaro-ws.local nm-openvpn[214413]: net_addr_v4_del: 100.120.210.218 dev tun0
Jul 26 23:54:55 manjaro-ws.local rtkit-daemon[2151]: Supervising 6 threads of 4 processes of 1 users.
Jul 26 23:54:53 manjaro-ws.local kernel: userif-6: sent link up event.
Jul 26 23:54:53 manjaro-ws.local vmnetBridge[1975]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jul 26 23:54:53 manjaro-ws.local vmnet-natd[2081]: RTM_NEWLINK: name:wlp5s0 index:3 flags:0x00001003
Jul 26 23:54:53 manjaro-ws.local wpa_supplicant[2089]: nl80211: deinit ifname=wlp5s0 disabled_11b_rates=0
Jul 26 23:54:53 manjaro-ws.local wpa_supplicant[2089]: wlp5s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 26 23:54:53 manjaro-ws.local wpa_supplicant[2089]: wlp5s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 26 23:54:53 manjaro-ws.local wpa_supplicant[2089]: nl80211: deinit ifname=p2p-dev-wlp5s0 disabled_11b_rates=0
Jul 26 23:54:53 manjaro-ws.local wpa_supplicant[2089]: p2p-dev-wlp5s0: CTRL-EVENT-DSCP-POLICY clear_all

try with different kernels - 5.15 and 5.10

The problem’s been occurring since about Jan-Feb. I believe we were on 5.16 at the time. It’s been the same on every kernel since.

I haven’t actually gone back & tried the LTS.

I’ll report back tomorrow.

So on 515 the system does resume however there are graphical glitches. The top bar in Gnome is completely blank & so is my Dash-to-Dock. I had to restart the display server to get everything functioning properly.

On the plus I found two posts on the Nvidia Support Forum where this issue has been identified & is being actively discussed.

TL;DR from the second post below:
“gnome-shell is trying to talk to the NVIDIA driver after it has already gone into suspend, so it can’t respond. Linux tries to freeze the task, but fails because gnome-shell is waiting for a response from the driver and can’t be frozen.”

thats unfortunate… and how about the 5.17 (soon to be EOL) and the 5.10

The 5.17 kernel for sure doesn’t work - same blank screen.

People on the Nvidia forum report issues with 5.10 as well.

Currently, I’ve enabled nvidia-{hibernate,suspend,resume}.service & added the following option to my /etc/modprobe.d/nvidia.conf

  1. NVreg_PreserveVideoMemoryAllocations=1
  2. NVreg_TemporaryFilePath=/var/tmp

I also went back to 5.18, I’ll update in the morning.

I have to keep my machine suspended for a long time since short suspends ( < 4 hrs) are event less.
I guessing here that waking the system & getting the nvidia driver to respond to gnome-shell within a certain time limit prevents a crash?!?

Made things worse. Monitor wouldn’t even turn on. “No signal detected”.

does those tweaks works with the 5.15 kernel?

@frost19k I have been having similar issues since swapping my AMD graphics card for an NVIDIA one. See this post for details.

I have recently found a way to reliably wake up from suspend and recover my desktop - turn on my monitors before waking up the machine. If I don’t turn on my monitors first, I get a blank screen with flashing cursor top-left and I have to restart my lightdm session.

This also means that I’m able to replicate the problem, i.e.

  • suspend
  • turn off monitors
  • wake from suspend
  • blank screen, flashing cursor top-left

Well that’s interesting! I’ll try it out tonight & let you know how it goes.