Laptop does not resume after suspend from battery

Hey,

I am currently having problems with my ASUS Zenbook UX3410UA when trying to resume from suspension while on battery.
Fundamentals:

  • I am working with a swapfile, not a swap partition. It is the size of my RAM + 2GB, it’s working fine on power.
  • Suspend works fine while on AC
  • Running Kernel 5.15.0-1 (Standard)
  • Suspend used to work fine on Ubuntu 21.10

I’ve tried to troubleshoot different possibilities and solutions, these were my findings:

  • echo mem > /sys/power/state resumes to frozen Desktop (screen turning on, remains black or desktop is frozen completely also showing that the command never finished)
  • CAPS Lock is not blinking (specific to kernel panics on some Intel CPU)
  • ACPI module is installed so ACPI calls should be made correctly
  • dmesg results in the following for the suspension:
[  607.196852] PM: suspend entry (deep)
[  607.204033] Filesystems sync: 0.007 seconds
[  607.205569] Freezing user space processes ... (elapsed 0.004 seconds) done.
[  607.209703] OOM killer disabled.
[  607.209705] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  607.211193] printk: Suspending console(s) (use no_console_suspend to debug)
[  607.233294] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  607.238441] sd 0:0:0:0: [sda] Stopping disk
[  607.400592] ACPI: EC: interrupt blocked
[  607.443559] ACPI: PM: Preparing to enter system sleep state S3
[  607.446243] ACPI: EC: event blocked
[  607.446245] ACPI: EC: EC stopped
[  607.446246] ACPI: PM: Saving platform NVS memory
[  607.446254] Disabling non-boot CPUs ...
[  607.448677] smpboot: CPU 1 is now offline
[  607.451797] smpboot: CPU 2 is now offline
[  607.454574] smpboot: CPU 3 is now offline
[  607.457734] ACPI: PM: Low-level resume complete
[  607.457826] ACPI: EC: EC started
[  607.457827] ACPI: PM: Restoring platform NVS memory
[  607.460325] Enabling non-boot CPUs ...
[  607.460469] x86: Booting SMP configuration:
[  607.460469] smpboot: Booting Node 0 Processor 1 APIC 0x2
[  607.463058] CPU1 is up
[  607.463186] smpboot: Booting Node 0 Processor 2 APIC 0x1
[  607.463969] CPU2 is up
[  607.464123] smpboot: Booting Node 0 Processor 3 APIC 0x3
[  607.464816] CPU3 is up
[  607.465988] ACPI: PM: Waking up from system sleep state S3
[  607.475371] ACPI: EC: interrupt unblocked
[  607.526197] ACPI: EC: event unblocked
[  607.526764] usb usb1: root hub lost power or was reset
[  607.526769] usb usb2: root hub lost power or was reset
[  607.528329] i915 0000:00:02.0: [drm] [ENCODER:94:DDI A/PHY A] is disabled/in DSI mode with an ungated DDI clock, gate it
[  607.528336] i915 0000:00:02.0: [drm] [ENCODER:102:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI clock, gate it
[  607.528341] i915 0000:00:02.0: [drm] [ENCODER:118:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
[  607.530041] sd 0:0:0:0: [sda] Starting disk
[  607.624606] nvme nvme0: 4/0/0 default/read/poll queues
[  607.809175] usb 2-4: Disable of device-initiated U1 failed.
[  607.809212] usb 2-4: Disable of device-initiated U2 failed.
[  607.840935] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  607.842580] ata1.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
[  607.842589] ata1.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
[  607.842594] ata1.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
[  607.845656] ata1.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
[  607.845664] ata1.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
[  607.845669] ata1.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
[  607.847134] ata1.00: configured for UDMA/133
[  607.857243] ahci 0000:00:17.0: port does not support device sleep
[  607.933193] usb 2-4: reset SuperSpeed USB device number 2 using xhci_hcd
[  608.072762] usb 1-8: reset full-speed USB device number 8 using xhci_hcd
[  608.336196] usb 1-4: reset high-speed USB device number 5 using xhci_hcd
[  608.599419] usb 1-6: reset high-speed USB device number 6 using xhci_hcd
[  608.862683] usb 1-2: reset full-speed USB device number 13 using xhci_hcd
[  609.076350] usb 2-4.3: reset SuperSpeed USB device number 3 using xhci_hcd
[  609.096673] r8152 2-4.3:1.0: skip request firmware
[  609.114063] r8152 2-4.3:1.0: load rtl8153b-2 v1 10/23/19 successfully
[  609.189528] usb 1-4.4: reset high-speed USB device number 9 using xhci_hcd
[  609.399430] usb 1-4.2: reset high-speed USB device number 7 using xhci_hcd
[  609.896208] usb 1-4.4.2: reset low-speed USB device number 10 using xhci_hcd
[  611.856368] usb 1-4.4.3: reset full-speed USB device number 11 using xhci_hcd
[  612.140437] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[  612.141856] Bluetooth: hci0: Bootloader revision 0.0 build 2 week 52 2014
[  612.143332] OOM killer enabled.
[  612.143336] Restarting tasks ... 
[  612.148983] Bluetooth: hci0: Device revision is 5
[  612.149003] Bluetooth: hci0: Secure boot is enabled
[  612.149007] Bluetooth: hci0: OTP lock is enabled
[  612.149012] Bluetooth: hci0: API lock is enabled
[  612.149015] Bluetooth: hci0: Debug lock is disabled
[  612.149018] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[  612.149550] Bluetooth: hci0: Found device firmware: intel/ibt-11-5.sfi
[  612.156852] done.
[  612.185331] audit: type=1131 audit(1635876531.723:220): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  612.189098] PM: suspend exit
[  612.305644] audit: type=1130 audit(1635876531.843:221): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  612.561468] audit: type=1130 audit(1635876532.100:222): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  612.561478] audit: type=1131 audit(1635876532.100:223): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  612.687478] audit: type=1130 audit(1635876532.226:224): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  613.729844] Bluetooth: hci0: Waiting for firmware download to complete
[  613.729847] Bluetooth: hci0: Firmware loaded in 1543251 usecs
[  613.729877] Bluetooth: hci0: Waiting for device to boot
[  613.740911] Bluetooth: hci0: Device booted in 10789 usecs
[  613.740994] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-11-5.ddc
[  613.744916] Bluetooth: hci0: Applying Intel DDC parameters completed
[  613.745897] Bluetooth: hci0: Reading supported features failed (-16)
[  613.746959] Bluetooth: hci0: Firmware revision 0.0 build 10 week 41 2018
[  614.908483] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s20f0u4u3: link becomes ready
[  614.908869] r8152 2-4.3:1.0 enp0s20f0u4u3: carrier on
[  616.136088] wlp2s0: authenticate with c8:0e:14:26:54:3d
[  616.149796] wlp2s0: send auth to c8:0e:14:26:54:3d (try 1/3)
[  616.158589] wlp2s0: authenticated
[  616.159117] wlp2s0: associate with c8:0e:14:26:54:3d (try 1/3)
[  616.165262] wlp2s0: RX AssocResp from c8:0e:14:26:54:3d (capab=0x1031 status=0 aid=17)
[  616.169241] wlp2s0: associated
[  616.169337] wlp2s0: Limiting TX power to 20 (20 - 0) dBm as advertised by c8:0e:14:26:54:3d
[  616.263511] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[  617.312776] audit: type=1131 audit(1635876536.853:225): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  619.961126] [UFW BLOCK] IN=enp0s20f0u4u3 OUT= MAC=01:00:5e:00:00:01:dc:15:c8:b3:73:13:08:00 SRC=192.168.178.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0x00 TTL=1 ID=58381 DF PROTO=2 
[  620.058018] [UFW BLOCK] IN=wlp2s0 OUT= MAC=01:00:5e:00:00:01:dc:15:c8:b3:73:13:08:00 SRC=192.168.178.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0x00 TTL=1 ID=58381 DF PROTO=2 
[  620.668096] audit: type=1100 audit(1635876540.206:226): pid=4387 uid=0 auid=1000 ses=1 subj==unconfined msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="hansm" exe="/usr/lib/gdm-session-worker" hostname=hanstop addr=? terminal=/dev/tty1 res=success'
[  620.672907] audit: type=1101 audit(1635876540.213:227): pid=4387 uid=0 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_access,pam_unix,pam_permit,pam_time acct="hansm" exe="/usr/lib/gdm-session-worker" hostname=hanstop addr=? terminal=/dev/tty1 res=success'
[  620.675873] audit: type=1110 audit(1635876540.216:228): pid=4387 uid=0 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="hansm" exe="/usr/lib/gdm-session-worker" hostname=hanstop addr=? terminal=/dev/tty1 res=success'
[  623.014400] audit: type=1131 audit(1635876542.553:229): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  625.012470] audit: type=1131 audit(1635876544.550:230): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  625.129449] audit: type=1334 audit(1635876544.670:231): prog-id=0 op=UNLOAD
[  627.018320] audit: type=1100 audit(1635876546.556:232): pid=4499 uid=1000 auid=1000 ses=2 subj==unconfined msg='op=PAM:authentication grantors=pam_unix acct="hansm" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[  627.022120] audit: type=1101 audit(1635876546.560:233): pid=4499 uid=1000 auid=1000 ses=2 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="hansm" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[  627.022929] audit: type=1110 audit(1635876546.563:234): pid=4499 uid=1000 auid=1000 ses=2 subj==unconfined msg='op=PAM:setcred grantors=pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[  627.030933] audit: type=1105 audit(1635876546.570:235): pid=4499 uid=1000 auid=1000 ses=2 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[  630.835856] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  630.841065] sd 0:0:0:0: [sda] Stopping disk

And the output of inxi --admin --verbosity=7 --filter --no-host --width is:

System:
  Kernel: 5.15.0-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
  root=UUID=f54f97ce-0481-4e33-991c-8c70989bbb74 rw quiet splash apparmor=1
  security=apparmor udev.log_priority=3
  Desktop: GNOME 40.5 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 40.1
  Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: UX410UAK v: 1.0 serial: <filter>
  Mobo: ASUSTeK model: UX410UAK v: 1.0 serial: <filter>
  UEFI: American Megatrends v: UX410UAK.308 date: 11/08/2017
Battery:
  ID-1: BAT0 charge: 36.1 Wh (96.5%) condition: 37.4/48.3 Wh (77.4%)
  volts: 11.4 min: 11.4 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
  status: Discharging cycles: 695
Memory:
  RAM: total: 7.65 GiB used: 3.15 GiB (41.1%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP
  arch: Amber/Kaby Lake note: check family: 6 model-id: 8E (142) stepping: 9
  microcode: EA cache: L2: 3 MiB bogomips: 21607
  Speed: 900 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 900 2: 900 3: 900
  4: 900
  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 HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
  bus-ID: 00:02.0 chip-ID: 8086:5916 class-ID: 0300
  Device-2: Chicony USB2.0 HD UVC WebCam type: USB driver: uvcvideo
  bus-ID: 1-6:2 chip-ID: 04f2:b57a class-ID: 0e02 serial: <filter>
  Display: wayland server: X.org 1.20.13 compositor: gnome-shell driver:
  loaded: modesetting alternate: fbdev,vesa display-ID: 0
  resolution: <missing: xdpyinfo>
  OpenGL: renderer: Mesa Intel HD 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.15.0-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.38 running: no
Network:
  Device-1: Intel Wireless 8260 driver: iwlwifi v: kernel bus-ID: 02:00.0
  chip-ID: 8086:24f3 class-ID: 0280
  IF: wlp2s0 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: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 2.73 TiB used: 955.48 GiB (34.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: SA2000M81000G
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
  lanes: 4 type: SSD serial: <filter> rev: S5Z42105 temp: 24.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: SanDisk model: SDSSDH3 2T00
  size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
  type: SSD serial: <filter> rev: 20RL
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 784.92 GiB size: 771.52 GiB (98.29%)
  used: 295.73 GiB (38.3%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
  label: N/A uuid: f54f97ce-0481-4e33-991c-8c70989bbb74
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
  used: 29.5 MiB (30.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  label: N/A uuid: 12F9-AA0A
  ID-3: /mnt/6ED64665D6462E21 raw-size: 1.82 TiB size: 1.82 TiB (100.00%)
  used: 659.72 GiB (35.4%) fs: ntfs dev: /dev/sda1 maj-min: 8:1 label: N/A
  uuid: 6ED64665D6462E21
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 9.77 GiB used: 0 KiB (0.0%) priority: -2
  file: /swapfile
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
  label: N/A uuid: N/A
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 145.98 GiB fs: ntfs label: N/A
  uuid: 62700C0E700BE79D
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 515 MiB fs: ntfs label: N/A
  uuid: 9C8EABE18EABB266
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-6:2 info: Chicony USB2.0 HD UVC WebCam type: Video
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
  chip-ID: 04f2:b57a 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
  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: 36.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 2600
Info:
  Processes: 226 Uptime: 16m wakeups: 1 Init: systemd v: 249 tool: systemctl
  Compilers: gcc: 11.1.0 Packages: 1482 pacman: 1471 lib: 462 flatpak: 0
  snap: 11 Shell: Zsh v: 5.8 running-in: gnome-terminal inxi: 3.3.08

I suppose it is some power issue because it works on AC but not on battery.

Any help is greatly appreciated.

Hi @Fliwatt, and welcome!

While I may not be able to help you, I have to commend you for trying to solve it yourself first!

However, please see How to provide good information and if applicable, please see [HowTo] post screenshots and links

Hope you come right!

1 Like

Thanks, I have added the necessary information!

1 Like