System freezing for 2-3 seconds every 2 minutes after resume from Suspend or Locked Screen

I’m a recent Manjaro convert (from Ubuntu / PopOS). Loving it so far except for one annoying issue that I can’t seem to resolve despite trying other solutions I have found.

After I log back into an XFCE session following resuming from either suspend or even just a locked screen, the whole laptop is freezing for 2-3 seconds.

In these 2-3 second periods, no input is accepted and things such as video playback pause. It is the same behavior whether the laptop is plugged in or on battery power.

What could be causing this?

Here is the output of:

inxi --admin --verbosity=7 --filter --no-host --width
free --human
for szFile in /proc/*/status ; do
   awk '/VmSwap|Name/{printf $2 "\t" $3}END{ print "" }' "$szFile"
done | sort --key 2 --numeric --reverse |  head --lines=20

System:
  Kernel: 5.10.42-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=be05bae9-9227-4ba4-9331-907d401f94ea rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm4 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: LENOVO product: 20TK001JUS v: ThinkPad X1 Extreme Gen 3 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: LENOVO model: 20TK001JUS v: SDK0T08861 WIN serial: <filter> 
  UEFI: LENOVO v: N2VET30W (1.15 ) date: 04/15/2021 
Battery:
  ID-1: BAT0 charge: 63.2 Wh (88.5%) condition: 71.4/80.0 Wh (89.2%) 
  volts: 16.4 min: 15.4 model: Celxpert 5B10X19050 type: Li-poly 
  serial: <filter> status: Discharging cycles: 185 
Memory:
  RAM: total: 31 GiB used: 17.65 GiB (56.9%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 8-Core model: Intel Core i9-10885H bits: 64 type: MT MCP 
  arch: Comet Lake family: 6 model-id: A5 (165) stepping: 2 microcode: E6 
  cache: L2: 16 MiB bogomips: 76816 
  Speed: 800 MHz min/max: 800/5300 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 13: 800 
  14: 800 15: 800 16: 800 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_capabilities 
  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 ibrs_enhanced ida intel_pt invpcid 
  invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr 
  nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge 
  pku pln pni popcnt pse pse36 pts rdrand rdseed rdtscp rep_good sdbg sep smap 
  smep smx 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 status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  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: Enhanced IBRS, IBPB: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics vendor: Lenovo driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:9bc4 class-ID: 0300 
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Lenovo 
  driver: nvidia v: 465.31 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 
  chip-ID: 10de:1f95 class-ID: 0300 
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 1-8:2 
  chip-ID: 04f2:b6cb class-ID: fe01 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting,nvidia 
  alternate: fbdev,intel,nouveau,nv,vesa display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3") 
  s-diag: 583mm (23") 
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6") 
  diag: 395mm (15.5") 
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.1.2 
  direct render: Yes 
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Lenovo driver: sof-audio-pci 
  alternate: snd_hda_intel,snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3 
  chip-ID: 8086:06c8 class-ID: 0401 
  Sound Server-1: ALSA v: k5.10.42-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.30 running: no 
Network:
  Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi v: kernel 
  port: 4000 bus-ID: 00:14.3 chip-ID: 8086:06f0 class-ID: 0280 
  IF: wlp0s20f3 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  IF-ID-1: br-e5733e6b6a36 state: down mac: <filter> 
  IP v4: <filter> scope: global broadcast: <filter> 
  IF-ID-2: docker0 state: down mac: <filter> 
  IP v4: <filter> scope: global broadcast: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-14:8 
  chip-ID: 8087:0026 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends 
Logical:
  Permissions: Unable to run lvs. Root privileges required. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 953.87 GiB used: 248.5 GiB (26.1%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLB1T0HBLR-000L7 
  size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 rotation: SSD serial: <filter> rev: 5M2QEXF7 temp: 39.9 C 
  scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 359.24 GiB size: 352.54 GiB (98.13%) 
  used: 14.51 GiB (4.1%) fs: ext4 dev: /dev/nvme0n1p3 maj-min: 259:3 
  label: N/A uuid: be05bae9-9227-4ba4-9331-907d401f94ea 
  ID-2: /boot/efi raw-size: 498 MiB size: 497 MiB (99.80%) 
  used: 296 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A 
  uuid: 5804-DF56 
  ID-3: /home raw-size: 586.13 GiB size: 575.87 GiB (98.25%) 
  used: 233.99 GiB (40.6%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5 
  label: N/A uuid: 1af26a92-2dda-48af-8eae-d95e843a93ac 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p4 maj-min: 259:4 label: N/A 
  uuid: e5a334f7-f6b8-43ac-8f5c-c1fc0d4077be 
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 4 GiB fs: <superuser required> 
  label: N/A uuid: 4858-10A4 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-8:2 info: Chicony Integrated Camera type: Video driver: uvcvideo 
  interfaces: 5 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 04f2:b6cb 
  class-ID: fe01 serial: <filter> 
  Device-2: 1-9:3 info: Synaptics Prometheus MIS Touch Fingerprint Reader 
  type: <vendor specific> driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s 
  power: 100mA chip-ID: 06cb:00bd class-ID: ff00 serial: <filter> 
  Device-3: 1-14:8 info: Intel type: Bluetooth driver: btusb interfaces: 2 
  rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0026 class-ID: e001 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 10 rev: 3.1 
  speed: 10 Gb/s chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 49.0 C mobo: 48.0 C 
  Fan Speeds (RPM): cpu: 2780 fan-2: 2526 
Info:
  Processes: 537 Uptime: 10h 03m wakeups: 28 Init: systemd v: 248 
  tool: systemctl Compilers: gcc: 11.1.0 Packages: 1150 pacman: 1102 lib: 297 
  flatpak: 32 snap: 16 Shell: Bash v: 5.1.8 running-in: xfce4-terminal 
  inxi: 3.3.04 
           total        used        free      shared  buff/cache   available
Mem:            30Gi        15Gi       7.5Gi       2.0Gi       8.4Gi        13Gi
Swap:          4.0Gi          0B       4.0Gi
zypak-sandbox	0	kB
zswap-shrink	
zswap1	
zswap1	
ZoomLauncher	0	kB
zoom	0	kB
Xorg	0	kB
xiccd	0	kB
xfwm4	0	kB
xfsettingsd	0	kB
xfdesktop	0	kB
xfconfd	0	kB
xfce4-terminal	0	kB
xfce4-session	0	kB
xfce4-power-man	0	kB
xfce4-panel	0	kB
xfce4-notifyd	0	kB
xfce4-notes	0	kB
xfce4-display-s	0	kB
xfce4-clipman	0	kB
1 Like

So it’s not swap, nor a lack of memory. :thinking:

Just after you get back from sleep, can you provide a:

journalctl --system --priority=3 --boot=0 | tail --lines=35

please because it looks like you have hybrid sleep enabled…

Also, cloud you provide a blkid as you’re missing the resume= in your GRUB_CMDLINE_LINUX_DEFAULT.

:thinking:

Here’s the journalctl output:

`journalctl --system --priority=3 --boot=0 | tail --lines=35
-- Journal begins at Thu 2021-05-20 00:34:19 EDT, ends at Mon 2021-07-05 23:49:09 EDT. --
Jul 03 23:20:29 peter-20tk001jus kernel: 
Jul 03 23:20:31 peter-20tk001jus wpa_supplicant[987]: nl80211: kernel reports: Attribute failed policy validation
Jul 03 23:20:31 peter-20tk001jus wpa_supplicant[987]: Failed to create interface p2p-dev-wlp0s20f3: -22 (Invalid argument)
Jul 03 23:20:31 peter-20tk001jus wpa_supplicant[987]: nl80211: Failed to create a P2P Device interface p2p-dev-wlp0s20f3
Jul 03 23:20:40 peter-20tk001jus lightdm[1683]: gkr-pam: unable to locate daemon control file
Jul 04 23:23:13 peter-20tk001jus wpa_supplicant[987]: nl80211: kernel reports: Attribute failed policy validation
Jul 04 23:23:13 peter-20tk001jus wpa_supplicant[987]: Failed to create interface p2p-dev-wlp0s20f3: -22 (Invalid argument)
Jul 04 23:23:13 peter-20tk001jus wpa_supplicant[987]: nl80211: Failed to create a P2P Device interface p2p-dev-wlp0s20f3
Jul 04 23:23:19 peter-20tk001jus lightdm[4922]: gkr-pam: unable to locate daemon control file
Jul 04 23:27:03 peter-20tk001jus wpa_supplicant[987]: nl80211: kernel reports: Attribute failed policy validation
Jul 04 23:27:03 peter-20tk001jus wpa_supplicant[987]: Failed to create interface p2p-dev-wlp0s20f3: -22 (Invalid argument)
Jul 04 23:27:03 peter-20tk001jus wpa_supplicant[987]: nl80211: Failed to create a P2P Device interface p2p-dev-wlp0s20f3
Jul 04 23:27:09 peter-20tk001jus lightdm[5492]: gkr-pam: unable to locate daemon control file
Jul 05 17:31:22 peter-20tk001jus wpa_supplicant[987]: nl80211: kernel reports: Attribute failed policy validation
Jul 05 17:31:22 peter-20tk001jus wpa_supplicant[987]: Failed to create interface p2p-dev-wlp0s20f3: -22 (Invalid argument)
Jul 05 17:31:22 peter-20tk001jus wpa_supplicant[987]: nl80211: Failed to create a P2P Device interface p2p-dev-wlp0s20f3
Jul 05 23:47:19 peter-20tk001jus lightdm[8691]: gkr-pam: unable to locate daemon control file
Jul 05 23:48:52 peter-20tk001jus wpa_supplicant[987]: nl80211: kernel reports: Attribute failed policy validation
Jul 05 23:48:52 peter-20tk001jus wpa_supplicant[987]: Failed to create interface p2p-dev-wlp0s20f3: -22 (Invalid argument)
Jul 05 23:48:52 peter-20tk001jus wpa_supplicant[987]: nl80211: Failed to create a P2P Device interface p2p-dev-wlp0s20f3
Jul 05 23:48:58 peter-20tk001jus lightdm[9317]: gkr-pam: unable to locate daemon control file

`
Here’s the blkid output:

`/dev/loop1: TYPE="squashfs"
/dev/loop19: TYPE="squashfs"
/dev/nvme0n1p5: UUID="1af26a92-2dda-48af-8eae-d95e843a93ac" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="8807fd7d-e20c-410f-abcc-63c005193b3c"
/dev/nvme0n1p3: UUID="be05bae9-9227-4ba4-9331-907d401f94ea" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="c490906d-8fe8-514d-9b4b-bdf37693d21d"
/dev/nvme0n1p1: UUID="5804-DF56" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="f2a082e7-0011-4527-8f7a-acd993e87408"
/dev/nvme0n1p4: UUID="e5a334f7-f6b8-43ac-8f5c-c1fc0d4077be" TYPE="swap" PARTUUID="9ed003d0-214c-465b-86a3-5de9767fdf34"
/dev/nvme0n1p2: UUID="4858-10A4" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="recovery" PARTUUID="19b0bc83-15f3-4058-8f03-330bca16f15e"
/dev/loop17: TYPE="squashfs"
/dev/loop8: TYPE="squashfs"
/dev/loop15: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop13: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop0: TYPE="squashfs"
/dev/loop18: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop16: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/loop14: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"

`

  1. Add a resume=UUID=e5a334f7-f6b8-43ac-8f5c-c1fc0d4077be to your GRUB_CMDLINE_LINUX_DEFAULT and execute:

    sudo update-grub
    sudo mkinitcpio --preset linux510
    
  2. then reboot and see if the problem persists. If it does, please provide a

    journalctl --system --priority=3 --boot=0 | tail --lines=100
    

    because 35 lines is not relevant to your problem (do it as fast as possible after the freeze).

:crossed_fingers:

Thanks for your help thus far, @Fabby! So it is still happening but I think I have isolated the conditions in which it occurs.

  1. I have 2 external monitors - 1 is plugged in the HDMI port, the other is plugged in via a USB-C to HDMI connector.

  2. If I disconnect the USB-C to HDMI connector connected monitor at any point, then suspend or lock the session, then resume this seems to be the trigger for the behavior.

Is there some kind of command to safely remove the connection to avoid this happening?

Thanks!

  • What’s the brand / model
  • Is it externally powered?
  • Is it certified Linux compatible?
  • What happens if you go direct USB-C?

It’s an Anker PowerExpand+ (Anker |  PowerExpand+ USB C to HDMI Adapter)

It is not externally powered.

and… I’m not seeing it listed as linux compatible, so it sounds like that might be my problem :frowning: I honestly, didn’t even think to check on this since it seemed like such a mundane device.

Direct USB-C with other devices seems to be fine.

If I would have had a nickel for every display converter that caused problems on Linux, I’d be a millionaire, billionaire

Well… You get the point: use native connections only!

:sob:

I’ve marked this answer as the solution to your question as it is by far the best answer you’ll get.

However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or :heart: or :+1: if you agree)

:innocent:
P.S. In the future, please don’t forget to come back and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.