Hi all, I’m trying to resolve an issue with my laptop not going to sleep correctly. I notice that when I pull it out of the bag, it’s hot and the screen is on even with the lid closed. I have been trying to diagnose the issue myself but am unable to figure out why. Looking into journalctl shows that systemd-udevd is failing to “freeze”, and this causes the suspend to fail. This happens on loop seemingly.
System:
Host: my-xps Kernel: 5.15.74-3-MANJARO arch: x86_64 bits: 64
compiler: gcc v: 12.2.0 parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
root=UUID=e6478cf9-42a1-4a10-8e50-b6ff1ccd288e rw quiet apparmor=1
security=apparmor udev.log_priority=3 mem_sleep_default=deep
Desktop: Cinnamon v: 5.4.12 tk: GTK v: 3.24.34 vt: 7 dm: LightDM v: 1.32.0
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: Dell product: XPS 9320 v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Dell model: 0V0059 v: A00 serial: <superuser required> UEFI: Dell
v: 1.8.1 date: 09/14/2022
Battery:
ID-1: BAT0 charge: 11.3 Wh (20.7%) condition: 54.6/54.4 Wh (100.4%)
volts: 11.8 min: 11.6 model: SMP DELL J7H5M24 type: Li-poly serial: 1036
status: charging
CPU:
Info: model: 12th Gen Intel Core i7-1260P bits: 64 type: MST AMCP
arch: Alder Lake level: v3 note: check built: 2021+ process: Intel 7 (10nm
ESF) family: 6 model-id: 0x9A (154) stepping: 3 microcode: 0x421
Topology: cpus: 1x cores: 12 mt: 4 tpc: 2 st: 8 threads: 16 smt: enabled
cache: L1: 1.1 MiB desc: d-8x32 KiB, 4x48 KiB; i-4x32 KiB, 8x64 KiB
L2: 9 MiB desc: 4x1.2 MiB, 2x2 MiB L3: 18 MiB desc: 1x18 MiB
Speed (MHz): avg: 659 high: 923 min/max: 400/4700:3400 scaling:
driver: intel_pstate governor: powersave cores: 1: 643 2: 883 3: 645 4: 801
5: 684 6: 714 7: 428 8: 587 9: 483 10: 649 11: 533 12: 726 13: 923 14: 580
15: 723 16: 553 bogomips: 79888
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
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: retbleed 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 status: Vulnerable: eIBRS with unprivileged eBPF
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel Alder Lake-P Integrated Graphics vendor: Dell driver: i915
v: kernel arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports:
active: DP-3,eDP-1 empty: DP-1,DP-2,DP-4 bus-ID: 0000:00:02.0
chip-ID: 8086:46a6 class-ID: 0300
Device-2: Microsoft LifeCam Cinema type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 3-3.1.4:14 chip-ID: 045e:075d
class-ID: 0102
Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: modesetting
dri: iris gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 5760x2160 s-dpi: 96 s-size: 1524x571mm (60.00x22.48")
s-diag: 1627mm (64.07")
Monitor-1: DP-3 pos: top-right model: LG (GoldStar) HDR 4K serial: 97996
built: 2019 res: 3840x2160 hz: 60 dpi: 163 gamma: 1.2
size: 600x340mm (23.62x13.39") diag: 690mm (27.2") ratio: 16:9 modes:
max: 3840x2160 min: 640x480
Monitor-2: eDP-1 pos: primary,bottom-l model: Sharp 0x1547 built: 2021
res: 1920x1200 hz: 60 dpi: 169 gamma: 1.2 size: 288x180mm (11.34x7.09")
diag: 340mm (13.4") ratio: 16:10 modes: 1920x1200
Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
Device-1: Intel vendor: Dell driver: N/A bus-ID: 3-3.1.4:14
chip-ID: 045e:075d class-ID: 0102
Device-2: Intel Alder Lake PCH-P High Definition Audio vendor: Dell
driver: sof-audio-pci-intel-tgl
alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 0000:00:1f.3
chip-ID: 8086:51c8 class-ID: 0401
Device-3: Microsoft LifeCam Cinema type: USB
driver: snd-usb-audio,uvcvideo
Sound API: ALSA v: k5.15.74-3-MANJARO running: yes
Sound Server-1: JACK v: 1.9.21 running: no
Sound Server-2: PulseAudio v: 16.1 running: yes
Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 0000:00:14.3 chip-ID: 8086:51f0 class-ID: 0280
IF: wlp0s20f3 state: up mac: 8c:f8:c5:b8:c0:c2
Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
bus-ID: 2-3.4:3 chip-ID: 0bda:8153 class-ID: 0000 serial: 000001
IF: enp0s13f0u3u4 state: up speed: 1000 Mbps duplex: full
mac: a0:ce:c8:54:45:bd
Bluetooth:
Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 3-10:6
chip-ID: 8087:0033 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
RAID:
Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:467f rev: class-ID: 0104
Drives:
Local Storage: total: 953.87 GiB used: 46.37 GiB (4.9%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: PM9A1 NVMe 1024GB
size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 type: SSD serial: S6H2NX0T530505 rev: 36308229 temp: 49.9 C
scheme: GPT
Partition:
ID-1: / raw-size: 400 GiB size: 392.65 GiB (98.16%) used: 46.28 GiB (11.8%)
fs: ext4 dev: /dev/nvme0n1p7 maj-min: 259:7
ID-2: /boot/efi raw-size: 240 MiB size: 236 MiB (98.33%) used: 91.6 MiB
(38.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: file size: 20 GiB used: 0 KiB (0.0%) priority: -2
file: /swapfile
Use of uninitialized value $unit in concatenation (.) or string at /usr/bin/inxi line 24087.
Use of uninitialized value $value in concatenation (.) or string at /usr/bin/inxi line 24087.
Sensors:
Src: /sys System Temperatures: cpu: 52.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 391 Uptime: 21m wakeups: 63 Memory: 15.24 GiB used: 2.6 GiB
(17.0%) Init: systemd v: 251 default: graphical tool: systemctl Compilers:
gcc: 12.2.0 clang: 14.0.6 Packages: 1166 pm: pacman pkgs: 1163 libs: 299
tools: pamac,yay pm: flatpak pkgs: 0 pm: snap pkgs: 3 Shell: Zsh v: 5.9
running-in: gnome-terminal inxi: 3.3.22
Suspicious journalctl output:
Nov 16 13:28:05 david-xps kernel: PM: suspend entry (s2idle)
Nov 16 13:28:05 david-xps kernel: Filesystems sync: 0.017 seconds
Nov 16 13:28:05 david-xps wpa_supplicant[1280]: wlp0s20f3: CTRL-EVENT-DSCP-POLICY clear_all
Nov 16 13:28:05 david-xps wpa_supplicant[1280]: nl80211: deinit ifname=wlp0s20f3 disabled_11b_rates=0
Nov 16 13:28:25 david-xps kernel: Freezing user space processes ...
Nov 16 13:28:25 david-xps kernel: Freezing of tasks failed after 20.002 seconds (1 tasks refusing to freeze, wq_busy=0):
Nov 16 13:28:25 david-xps kernel: task:systemd-udevd state:D stack: 0 pid: 467 ppid: 408 flags:0x00004226
Nov 16 13:28:25 david-xps kernel: Call Trace:
Nov 16 13:28:25 david-xps kernel: <TASK>
Nov 16 13:28:25 david-xps kernel: __schedule+0x382/0x1570
Nov 16 13:28:25 david-xps kernel: ? idr_alloc_cyclic+0x52/0xc0
Nov 16 13:28:25 david-xps kernel: schedule+0x6a/0x110
Nov 16 13:28:25 david-xps kernel: rpm_resume+0x221/0x860
Nov 16 13:28:25 david-xps kernel: ? do_wait_intr_irq+0xb0/0xb0
Nov 16 13:28:25 david-xps kernel: rpm_resume+0x345/0x860
Nov 16 13:28:25 david-xps kernel: __pm_runtime_resume+0x47/0x80
Nov 16 13:28:25 david-xps kernel: __driver_probe_device+0x5c/0x190
Nov 16 13:28:25 david-xps kernel: driver_probe_device+0x1f/0xa0
Nov 16 13:28:25 david-xps kernel: __driver_attach+0xe2/0x1d0
Nov 16 13:28:25 david-xps kernel: ? __device_attach_driver+0x130/0x130
Nov 16 13:28:25 david-xps kernel: bus_for_each_dev+0x84/0xd0
Nov 16 13:28:25 david-xps kernel: bus_add_driver+0x149/0x210
Nov 16 13:28:25 david-xps kernel: driver_register+0x89/0xf0
Nov 16 13:28:25 david-xps kernel: ? 0xffffffffc0f9e000
Nov 16 13:28:25 david-xps kernel: do_one_initcall+0x56/0x220
Nov 16 13:28:25 david-xps kernel: do_init_module+0x4a/0x250
Nov 16 13:28:25 david-xps kernel: load_module+0x273c/0x2800
Nov 16 13:28:25 david-xps kernel: ? __do_sys_init_module+0x138/0x1c0
Nov 16 13:28:25 david-xps kernel: __do_sys_init_module+0x138/0x1c0
Nov 16 13:28:25 david-xps kernel: do_syscall_64+0x58/0x90
Nov 16 13:28:25 david-xps kernel: ? exc_page_fault+0x71/0x180
Nov 16 13:28:25 david-xps kernel: entry_SYSCALL_64_after_hwframe+0x61/0xcb
Nov 16 13:28:25 david-xps kernel: RIP: 0033:0x7f034cb46eae
Nov 16 13:28:25 david-xps kernel: RSP: 002b:00007fffa8d087f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
Nov 16 13:28:25 david-xps kernel: RAX: ffffffffffffffda RBX: 0000558a816e6580 RCX: 00007f034cb46eae
Nov 16 13:28:25 david-xps kernel: RDX: 00007f034cc92343 RSI: 000000000001a348 RDI: 0000558a818fc0e0
Nov 16 13:28:25 david-xps kernel: RBP: 00007f034cc92343 R08: 0000558a81617730 R09: 00007fffa8d049e8
Nov 16 13:28:25 david-xps kernel: R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000020000
Nov 16 13:28:25 david-xps kernel: R13: 0000558a816da7a0 R14: 0000558a816e6580 R15: 0000558a816e58b0
Nov 16 13:28:25 david-xps kernel: </TASK>
Nov 16 13:28:25 david-xps kernel:
Nov 16 13:28:25 david-xps kernel: OOM killer enabled.
I enabled debug level udevd output and noticed this output in journalctl after the above log:
Nov 16 13:28:25 david-xps kernel: Restarting tasks ... done.
Nov 16 13:28:25 david-xps systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Nov 16 13:28:25 david-xps audit[1]: SERVICE_STOP 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'
Nov 16 13:28:25 david-xps systemd-udevd[408]: thermal_zone1: Device is queued (SEQNUM=17384, ACTION=change)
Nov 16 13:28:25 david-xps systemd-udevd[408]: Validate module index
Nov 16 13:28:25 david-xps systemd-udevd[408]: Check if link configuration needs reloading.
Nov 16 13:28:25 david-xps systemd-udevd[408]: thermal_zone1: Device ready for processing (SEQNUM=17384, ACTION=change)
...
I also notice battery polling that occurs occasionally during sleep. I can't seem to figure out why udev is causing suspend to fail. What steps should I take to figure out which rule or process is causing the issue?