Kernel panic on suspend/hibernate

If I run systemctl suspend or systemctl hibernate, I encounter a kernel panic.

I found this discussion but there wasn’t a solution at the end. I would like to fix it. How should I proceed?

inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 5.13.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.13-x86_64
  root=UUID=0d86c603-749a-4229-89cd-ee0bb4367343 rw quiet apparmor=1
  security=apparmor resume=UUID=4070649a-698d-441f-83fd-b5d3373c12bf
  udev.log_priority=3
  Desktop: i3 4.19.1 info: i3bar vt: 1 dm: SDDM Distro: Manjaro Linux
  base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ZenBook S UX391UA v: 1.0
  serial: <filter>
  Mobo: ASUSTeK model: UX391UA v: 1.0 serial: <filter>
  UEFI: American Megatrends v: UX391UA.307 date: 04/27/2020
Battery:
  ID-1: BAT0 charge: 24.1 Wh (62.3%) condition: 38.7/50.0 Wh (77.3%)
  volts: 7.9 min: 7.9 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
  status: Charging cycles: 782
Memory:
  RAM: total: 7.62 GiB used: 2 GiB (26.2%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP
  arch: Kaby Lake note: check family: 6 model-id: 8E (142) stepping: A (10)
  microcode: EA cache: L2: 8 MiB bogomips: 32012
  Speed: 800 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800
  4: 800 5: 799 6: 800 7: 800 8: 800
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts
  rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1
  sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt
  xsaves xtopology xtpr
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
  mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
  IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
  bus-ID: 00:02.0 chip-ID: 8086:5917 class-ID: 0300
  Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
  bus-ID: 1-5:2 chip-ID: 13d3:56b9 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.20.13 compositor: picom v: git-dac85 driver:
  loaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
  s-diag: 582mm (22.9")
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 166 size: 293x165mm (11.5x6.5")
  diag: 336mm (13.2")
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.2.3
  direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
  chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.13.19-2-MANJARO running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: JACK v: 1.9.19 running: no
  Sound Server-4: PulseAudio v: 15.0 running: yes
  Sound Server-5: PipeWire v: 0.3.38 running: yes
Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel
  bus-ID: 01:00.0 chip-ID: 8086:24fd class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
  bus-ID: 1-8:3 chip-ID: 8087:0a2b class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 238.47 GiB used: 41.98 GiB (17.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: SD9SN8W256G1002
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
  type: SSD serial: <filter> rev: 3002 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 229.37 GiB size: 224.71 GiB (97.97%)
  used: 41.98 GiB (18.7%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A
  uuid: 0d86c603-749a-4229-89cd-ee0bb4367343
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
  used: 288 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: NO_LABEL
  uuid: E0EF-3CA8
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
  dev: /dev/sda3 maj-min: 8:3 label: swap
  uuid: 4070649a-698d-441f-83fd-b5d3373c12bf
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-5:2 info: IMC Networks USB2.0 HD UVC WebCam type: Video
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
  chip-ID: 13d3:56b9 class-ID: 0e02 serial: <filter>
  Device-2: 1-8:3 info: Intel Bluetooth wireless interface type: Bluetooth
  driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
  chip-ID: 8087:0a2b class-ID: e001
  Device-3: 1-9:4 info: Shenzhen Goodix Fingerprint Reader
  type: Abstract (modem),CDC-Data driver: cdc_acm interfaces: 2 rev: 2.0
  speed: 12 Mb/s power: 100mA chip-ID: 27c6:5201 class-ID: 0a00
  serial: <filter>
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 61.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 238 Uptime: 5m wakeups: 717 Init: systemd v: 249 tool: systemctl
  Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1360 lib: 377
  flatpak: 0 Shell: Zsh v: 5.8 running-in: konsole inxi: 3.3.08
journalctl --no-pager --no-hostname -b-1 -p3 (run right after the system rebooted)
-- Journal begins at Sun 2021-10-17 12:52:54 IST, ends at Thu 2021-11-11 13:12:22 IST. --
Nov 11 12:57:55 kernel: x86/cpu: SGX disabled by BIOS.
Some more details asked in that thread
dinskid@dinskid-zenbooksux391ua ~$ journalctl --no-pager --no-hostname -b-1 -p3                                   
-- Journal begins at Sun 2021-10-17 12:52:54 IST, ends at Thu 2021-11-11 13:12:22 IST. --
Nov 11 12:57:55 kernel: x86/cpu: SGX disabled by BIOS.
dinskid@dinskid-zenbooksux391ua ~$ cat /etc/fstab |grep swap                                                      
UUID=4070649a-698d-441f-83fd-b5d3373c12bf swap           swap    defaults,noatime 0 0
dinskid@dinskid-zenbooksux391ua ~$ cat /etc/default/grub |grep resume                                             
GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor resume=UUID=4070649a-698d-441f-83fd-b5d3373c12bf udev.log_priority=3"
dinskid@dinskid-zenbooksux391ua ~$ cat /proc/cmdline                                                              
BOOT_IMAGE=/boot/vmlinuz-5.13-x86_64 root=UUID=0d86c603-749a-4229-89cd-ee0bb4367343 rw quiet apparmor=1 security=apparmor resume=UUID=4070649a-698d-441f-83fd-b5d3373c12bf udev.log_priority=3
dinskid@dinskid-zenbooksux391ua ~$ journalctl -u systemd-hibernate.service --no-pager --no-hostname               
-- Journal begins at Sun 2021-10-17 12:52:54 IST, ends at Thu 2021-11-11 13:12:44 IST. --
Oct 29 21:48:55 systemd[1]: Starting Hibernate...
Oct 29 21:48:55 systemd-sleep[11319]: Entering sleep state 'hibernate'...
Oct 29 21:50:32 systemd-sleep[11319]: System returned from sleep state.
Oct 29 21:50:33 systemd[1]: systemd-hibernate.service: Deactivated successfully.
Oct 29 21:50:33 systemd[1]: Finished Hibernate.
Oct 29 21:50:33 systemd[1]: systemd-hibernate.service: Consumed 11.382s CPU time.
-- Boot 3be92d20f67645ecadcaa952d9008c65 --
Nov 11 11:35:41 systemd[1]: Starting Hibernate...
Nov 11 11:35:41 systemd-sleep[6481]: Entering sleep state 'hibernate'...
Nov 11 11:36:17 systemd-sleep[6481]: System returned from sleep state.
Nov 11 11:36:17 systemd[1]: systemd-hibernate.service: Deactivated successfully.
Nov 11 11:36:17 systemd[1]: Finished Hibernate.
Nov 11 11:36:17 systemd[1]: systemd-hibernate.service: Consumed 1.631s CPU time.
Nov 11 11:36:52 systemd[1]: Starting Hibernate...
Nov 11 11:36:52 systemd-sleep[6872]: Entering sleep state 'hibernate'...
Nov 11 11:38:16 systemd-sleep[6872]: System returned from sleep state.
Nov 11 11:38:16 systemd[1]: systemd-hibernate.service: Deactivated successfully.
Nov 11 11:38:16 systemd[1]: Finished Hibernate.
Nov 11 11:38:16 systemd[1]: systemd-hibernate.service: Consumed 1.669s CPU time.
-- Boot fd0aff27f08348b5bb971d985baa08ca --
Nov 11 12:05:34 systemd[1]: Starting Hibernate...
Nov 11 12:05:34 systemd-sleep[2919]: Entering sleep state 'hibernate'...
Nov 11 12:06:35 systemd-sleep[2919]: System returned from sleep state.
Nov 11 12:06:35 systemd[1]: systemd-hibernate.service: Deactivated successfully.
Nov 11 12:06:35 systemd[1]: Finished Hibernate.

Thank you.

The S3 sleeping state as defined by ACPI. Works by cutting off power to most parts of the machine aside from the RAM, which is required to restore the machine’s state. Because of the large power savings, it is advisable for laptops to automatically enter this mode when the computer is running on batteries and the lid is closed (or the user is inactive for some time).

I’m sorry, but I fail to understand what I must do from your reply. I understand what S3 state is. My issue is that whenever I suspend/hibernate, I encounter a kernel panic. I would like to fix that.