Cannot resume laptop after suspend, dell inspiron 5515

Dell inspiron 5515, ryzen 5 5500U, vega7 integrated graphics
opensuse tumbleweed 5.18.11-1-default
gnome 42.3

If suspended for a bit, laptop cannot resume. I have to press power button for long time after which light on caps lock begins flashing and after very long time, the device boots up (hard boot).

parts of the log:


Jul 2311:04:28localhost.localdomain systemd[1]: Reached target Sleep.
Jul 2311:04:28localhost.localdomain systemd[1]: Starting System Suspend...
Jul 2311:04:28localhost.localdomain systemd-sleep[6061]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend
Jul 2311:04:28localhost.localdomain systemd-sleep[6059]: Entering sleep state 'suspend'...
Jul 2311:04:28localhost.localdomain kernel: PM: suspend entry (s2idle)
Jul 2311:04:28localhost.localdomain kernel: Filesystems sync: 0.022 seconds


Jul 2311:05:10localhost.localdomain nscd[892]: 892 checking for monitored file `/etc/services': No such file or directory
Jul 2311:05:11localhost.localdomain bluetoothd[1390]: Controller resume with wake event 0x0
Jul 2311:05:11localhost.localdomain systemd-sleep[6059]: Failed to put system to sleep. System resumed again: Device or resource busy
Jul 2311:05:11localhost.localdomain kernel: PM: suspend exit
Jul 2311:05:11localhost.localdomain systemd-sleep[6105]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend
Jul 2311:05:11localhost.localdomain systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/**FAILURE**
Jul 2311:05:11localhost.localdomain systemd[1]: systemd-suspend.service: Failed with result 'exit-code'.
Jul 2311:05:11localhost.localdomain systemd[1]: Failed to start System Suspend.
Jul 2311:05:11localhost.localdomain systemd[1]: Dependency failed for Suspend.
Jul 2311:05:11localhost.localdomain systemd[1]: suspend.target: Job suspend.target/start failed with result 'dependency'.
Jul 2311:05:11localhost.localdomain systemd[1]: systemd-suspend.service: Consumed 2.495s CPU time.
Jul 2311:05:11localhost.localdomain systemd-logind[922]: Operation 'sleep' finished.
Jul 2311:05:11localhost.localdomain systemd[1]: Stopped target Sleep.
Jul 2311:05:11localhost.localdomain ModemManager[940]: <info>  [sleep-monitor] system is resuming


Jul 2311:51:36localhost.localdomain systemd[1]: Reached target Sleep.
Jul 2311:51:36localhost.localdomain systemd[1]: Starting System Suspend...
Jul 2311:51:36localhost.localdomain systemd-sleep[16604]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend
Jul 2311:51:36localhost.localdomain systemd-sleep[16602]: Entering sleep state 'suspend'...
Jul 2311:51:36localhost.localdomain kernel: PM: suspend entry (s2idle)
Jul 2311:51:36localhost.localdomain kernel: Filesystems sync: 0.017 seconds
-- Boot f404d0a8d6ba44989a23c67acefcc2ab --
Jul 2312:33:58 localhost kernel: Linux version 5.18.11-1-default (geeko@buildhost) (gcc (SUSE Linux) 12.1.120220629 [revision 7811663964aa7e31c3939b859bbfa2e16919639f], GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.38.20220525-6) #1 SMP PREEMPT_DYNAMIC Fri Jul 1505:36:11 UTC 2022 (4fcb983)
Jul 2312:33:58 localhost kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.18.11-1-default root=UUID=72d0f658-60e8-4b2d-a244-ec252644fac4 splash=silent quiet security=apparmor mitigations=auto
Jul 2312:33:58 localhost kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jul 2312:33:58 localhost kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jul 2312:33:58 localhost kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Jul 2312:33:58 localhost kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
Jul 2312:33:58 localhost kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
Jul 2312:33:58 localhost kernel: signal: max sigframe size: 1776
Jul 2312:33:58 localhost kernel: BIOS-provided physical RAM map:

I’ve attached two logs.
The one in which laptop resumes normally:

resume success

resume fail
part 1: https://www.toptal.com/developers/hastebin/bilusavaja.yaml
part 2: https://www.toptal.com/developers/hastebin/tadosepuke.yaml

Laptop’s full detail



System:
  Kernel: 5.18.11-1-default arch: x86_64 bits: 64 compiler: gcc v: 12.1.1 Console: pty pts/0
    DM: GDM v: 42.0 Distro: openSUSE Tumbleweed 20220719
Machine:
  Type: Laptop System: Dell product: Inspiron 5515 v: 1.10.0 serial: <filter> Chassis: type: 10
    v: 1.10.0 serial: <filter>
  Mobo: Dell model: 0WCD6Y v: A00 serial: <filter> UEFI: Dell v: 1.10.0 date: 04/13/2022
Battery:
  ID-1: BAT0 charge: 42.1 Wh (78.0%) condition: 54.0/54.0 Wh (100.0%) volts: 16.0 min: 15.0
    model: SMP-COS3.66 DELL XDY9K14 type: Li-poly serial: <filter> status: discharging
CPU:
  Info: 6-core model: AMD Ryzen 5 5500U with Radeon Graphics bits: 64 type: MT MCP smt: enabled
    arch: Zen 2 rev: 1 cache: L1: 384 KiB L2: 3 MiB L3: 8 MiB
  Speed (MHz): avg: 1516 high: 2100 min/max: 1400/4056 boost: enabled volts: 1.2 V
    ext-clock: 100 MHz cores: 1: 1400 2: 1400 3: 1400 4: 1400 5: 2100 6: 1400 7: 1400 8: 2100
    9: 1400 10: 1400 11: 1400 12: 1400 bogomips: 50304
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Lucienne vendor: Dell driver: amdgpu v: kernel arch: GCN 5.1 pcie: speed: 8 GT/s
    lanes: 16 ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 03:00.0 chip-ID: 1002:164c
    class-ID: 0300
  Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 3-1:2
    chip-ID: 0c45:6725 class-ID: 0e02
  Display: server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.3 compositor: gnome-shell driver:
    gpu: amdgpu note:  X driver n/a tty: 190x45
  Monitor-1: eDP-1 model: BOE Display 0x0928 res: 1920x1080 dpi: 142
    size: 344x194mm (13.54x7.64") diag: 395mm (15.5") modes: max: 1920x1080 min: 640x480
  Message: GL data unavailable in console for root.
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Dell driver: snd_hda_intel v: kernel
    pcie: speed: 8 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Dell driver: snd_rn_pci_acp3x
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 03:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Dell driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 03:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.18.11-1-default running: yes
  Sound Server-2: PipeWire v: 0.3.55 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-3:3 chip-ID: 8087:0029
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 238.47 GiB used: 10.46 GiB (4.4%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC711 NVMe 256GB size: 238.47 GiB speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 41002131 temp: 32.9 C scheme: GPT
Partition:
  ID-1: / size: 237.97 GiB used: 10.4 GiB (4.4%) fs: btrfs dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 508 MiB used: 67.6 MiB (13.3%) fs: vfat dev: /dev/nvme0n1p1
  ID-3: /home size: 237.97 GiB used: 10.4 GiB (4.4%) fs: btrfs dev: /dev/nvme0n1p2
  ID-4: /opt size: 237.97 GiB used: 10.4 GiB (4.4%) fs: btrfs dev: /dev/nvme0n1p2
  ID-5: /var size: 237.97 GiB used: 10.4 GiB (4.4%) fs: btrfs dev: /dev/nvme0n1p2
Swap:
  ID-1: swap-1 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram1
  ID-3: swap-3 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram2
  ID-4: swap-4 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram3
  ID-5: swap-5 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram4
  ID-6: swap-6 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram5
  ID-7: swap-7 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram6
  ID-8: swap-8 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram7
  ID-9: swap-9 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram8
  ID-10: swap-10 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram9
  ID-11: swap-11 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram10
  ID-12: swap-12 type: zram size: 607.1 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram11
Sensors:
  System Temperatures: cpu: 38.0 C mobo: 37.0 C gpu: amdgpu temp: 43.0 C
  Fan Speeds (RPM): cpu: 0
Repos:
  Packages: N/A note: see --pkg
  No active zypp repos in: /etc/zypp/repos.d/openSUSE-20220719-0.repo
  Active zypp repos in: /etc/zypp/repos.d/packman.repo
    1: packman ~ https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/
  Active zypp repos in: /etc/zypp/repos.d/repo-debug.repo
    1: repo-debug ~ http://download.opensuse.org/debug/tumbleweed/repo/oss/
  Active zypp repos in: /etc/zypp/repos.d/repo-non-oss.repo
    1: repo-non-oss ~ http://download.opensuse.org/tumbleweed/repo/non-oss/
  Active zypp repos in: /etc/zypp/repos.d/repo-oss.repo
    1: repo-oss ~ http://download.opensuse.org/tumbleweed/repo/oss/
  Active zypp repos in: /etc/zypp/repos.d/repo-source.repo
    1: repo-source ~ http://download.opensuse.org/source/tumbleweed/repo/oss/
  Active zypp repos in: /etc/zypp/repos.d/repo-update.repo
    1: repo-update ~ http://download.opensuse.org/update/tumbleweed/
  Active zypp repos in: /etc/zypp/repos.d/vscode.repo
    1: vscode ~ https://packages.microsoft.com/yumrepos/vscode
Info:
  Processes: 369 Uptime: 1h 24m wakeups: 7025 Memory: 7.11 GiB used: 4.07 GiB (57.2%)
  Init: systemd v: 251 default: graphical Compilers: gcc: 12.1.1 alt: 12 Shell: Bash (sudo)
  v: 5.1.16 running-in: pty pts/0 inxi: 3.3.19