Systemd-suspend.service: Failed with result 'exit-code'

[i3hunor@HunorT480 ~]$ systemctl status suspend.target 
○ suspend.target - Suspend
     Loaded: loaded (/usr/lib/systemd/system/suspend.target; static)
     Active: inactive (dead) since Tue 2024-05-07 20:15:58 CEST; 12h ago
       Docs: man:systemd.special(7)

May 07 20:15:58 HunorT480 systemd[1]: Reached target Suspend.
May 07 20:15:58 HunorT480 systemd[1]: Stopped target Suspend.
May 08 09:10:16 HunorT480 systemd[1]: Dependency failed for Suspend.
May 08 09:10:16 HunorT480 systemd[1]: suspend.target: Job suspend.target/start failed with re>
May 08 09:11:08 HunorT480 systemd[1]: Dependency failed for Suspend.
May 08 09:11:08 HunorT480 systemd[1]: suspend.target: Job suspend.target/start failed with re>

[i3hunor@HunorT480 ~]$ systemctl status suspend-then-hibernate.target 
○ suspend-then-hibernate.target - Suspend; Hibernate if not used for a period of time
     Loaded: loaded (/usr/lib/systemd/system/suspend-then-hibernate.target; static)
     Active: inactive (dead)
       Docs: man:systemd.special(7)
May 08 09:11:07 HunorT480 kernel: OOM killer enabled.
May 08 09:11:07 HunorT480 kernel: Restarting tasks ... done.
May 08 09:11:07 HunorT480 rtkit-daemon[2429]: The canary thread is apparently starving. Taking action.
May 08 09:11:07 HunorT480 rtkit-daemon[2429]: Demoting known real-time threads.
May 08 09:11:07 HunorT480 rtkit-daemon[2429]: Demoted 0 threads.
May 08 09:11:07 HunorT480 kernel: thermal thermal_zone5: failed to read out thermal zone (-61)
May 08 09:11:07 HunorT480 systemd-sleep[3052327]: Failed to put system to sleep. System resumed again: Device or resource busy
May 08 09:11:07 HunorT480 kernel: PM: suspend exit
May 08 09:11:08 HunorT480 betterlockscreen[3052287]: [*] Running postlock...
May 08 09:11:08 HunorT480 systemd[1]: betterlockscreen@i3hunor.service: Deactivated successfully.
May 08 09:11:08 HunorT480 systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE
May 08 09:11:08 HunorT480 systemd[1]: systemd-suspend.service: Failed with result 'exit-code'.
May 08 09:11:08 HunorT480 systemd[1]: Failed to start System Suspend.
May 08 09:11:08 HunorT480 systemd[1]: Dependency failed for Suspend.
May 08 09:11:08 HunorT480 systemd[1]: suspend.target: Job suspend.target/start failed with result 'dependency'.
May 08 09:11:08 HunorT480 systemd[1]: systemd-suspend.service: Consumed 2.579s CPU time.
May 08 09:11:08 HunorT480 systemd-logind[698]: Operation 'suspend' finished.
May 08 09:11:08 HunorT480 ModemManager[736]: <msg> [sleep-monitor-systemd] system is resuming
May 08 09:11:08 HunorT480 NetworkManager[14592]: <info>  [1715152268.3231] manager: sleep: wake requested (sleeping: yes  enabled: yes)
May 08 09:11:08 HunorT480 NetworkManager[14592]: <info>  [1715152268.3233] device (enp0s31f6): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
May 08 09:11:08 HunorT480 systemd[1]: Stopped target Sleep.
May 08 09:11:08 HunorT480 systemd[1]: Starting Intel Undervolt Service...
May 08 09:11:08 HunorT480 intel-undervolt[3052492]: CPU (0): -129.88 mV
May 08 09:11:08 HunorT480 intel-undervolt[3052492]: GPU (1): -89.84 mV
May 08 09:11:08 HunorT480 intel-undervolt[3052492]: CPU Cache (2): -75.20 mV
May 08 09:11:08 HunorT480 intel-undervolt[3052492]: System Agent (3): -49.80 mV
May 08 09:11:08 HunorT480 intel-undervolt[3052492]: Analog I/O (4): -49.80 mV

Sometimes it goes to sleep and sometimes it is not.

What kernel are you using? Sometimes this is resolved by using an older kernel. Try a LTS version.

1 Like

As mentioned by @mbb, sometimes an older kernel works.

I, myself, had suspend issues, but they aren’t present with kernel 6.1. which is an LTS version. And since it’ll be maintained for a long time still, I’d recommend that.

To install it, tun the following in the terminal:

sudo mhwd-kernel --install linux61

And reboot into it:

All available kernels installed on your system will be presented upon booting up. GNU GRUB is visible with a couple of options. Choose “Advanced Options for Manjaro Linux” by using the arrow keys on your keyboard and then ↵ Enter.

On the next screen (as illustrated) are backup copies of each kernel version installed (which will also be automatically removed if or when a kernel version is deleted). To select a kernel, simply use the arrow keys to highlight the desired version, and then press ↵ Enter.

Manjaro Kernels - Manjaro

If it’s working properly, don’t neglect to remove the current one, the one with the problems.

4 Likes

Uname a output: 5.15.154-1-MANJARO

Can you please provide more info on your system?

inxi -Faxz

1 Like
System:
  Kernel: 5.15.154-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=cc7be21e-d9d4-4881-841a-b047d2a1253a rw quiet
    udev.log_priority=3 intel_pstate=disable acpi_backlight=intel
  Desktop: i3 v: 4.23 with: polybar tools:
    avail: i3lock,light-locker,xss-lock vt: 7 dm: 1: LightDM v: 1.32.0 2: SDDM
    note: stopped Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20L6S1LV2F v: ThinkPad T480
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20L6S1LV2F v: SDK0J40697 WIN
    serial: <superuser required>
    part-nu: LENOVO_MT_20L6_BU_Think_FM_ThinkPad T480
    uuid: <superuser required> UEFI: LENOVO v: N24ET72W (1.47 )
    date: 01/03/2023
Battery:
  ID-1: BAT0 charge: 16.0 Wh (87.4%) condition: 18.3/23.9 Wh (76.5%)
    volts: 11.9 min: 11.4 model: LGC 01AV489 type: Li-poly serial: <filter>
    status: not charging cycles: 455
  ID-2: BAT1 charge: 55.8 Wh (81.3%) condition: 68.6/71.3 Wh (96.3%)
    power: 9.1 W volts: 12.0 min: 10.8 model: SANYO 01AV427 type: Li-ion
    serial: <filter> status: discharging cycles: 104
CPU:
  Info: model: Intel Core i5-8350U bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 8 level: v3 note: check built: 2017 process: Intel 14nm family: 6
    model-id: 0x8E (142) stepping: 0xA (10) microcode: 0xF4
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 865 high: 878 min/max: 400/1901 boost: disabled scaling:
    driver: acpi-cpufreq governor: conservative cores: 1: 878 2: 872 3: 876
    4: 874 5: 857 6: 872 7: 845 8: 853 bogomips: 30409
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  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: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: IBRS
  Type: spec_rstack_overflow 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: IBRS; IBPB: conditional; STIBP: conditional;
    RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:5917
    class-ID: 0300
  Device-2: Chicony Integrated Camera (1280x720@30) driver: uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-8:3
    chip-ID: 04f2:b604 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.12 compositor: Picom v: git-89c2c
    driver: X: loaded: intel dri: i965 gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP1 model: LG Display 0x0521 built: 2016
    res: 1920x1080 hz: 60 dpi: 157 gamma: 1.2 size: 310x170mm (12.2x6.69")
    diag: 355mm (14") ratio: 16:9 modes: 1920x1080
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo ThinkPad T480
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  API: ALSA v: k5.15.154-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.3 status: off tools: pw-cli
  Server-3: PulseAudio v: 17.0 status: active with: 1: pulseaudio-alsa
    type: plugin 2: pulseaudio-jack type: module
    tools: pacat,pactl,pamixer,pavucontrol
Network:
  Device-1: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15d7 class-ID: 0200
  IF: enp0s31f6 state: up speed: 100 Mbps duplex: full mac: <filter>
  Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:24fd
    class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  Info: services: mld, NetworkManager, systemd-timesyncd, wpa_supplicant
Drives:
  Local Storage: total: 238.47 GiB used: 61.45 GiB (25.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKKF256G8L
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: L15P temp: 33.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 118.93 GiB size: 116.5 GiB (97.96%)
    used: 61.43 GiB (52.7%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p5
    maj-min: 259:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 25.4 MiB (26.4%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: file size: 8 GiB used: 385.4 MiB (4.7%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 45.0 C pch: 42.0 C mobo: N/A
  Fan Speeds (rpm): fan-1: 0
Info:
  Memory: total: 8 GiB note: est. available: 7.51 GiB used: 4.03 GiB (53.6%)
  Processes: 304 Power: uptime: 11d 3h 32m states: freeze,mem,disk
    suspend: deep avail: s2idle wakeups: 34 fails: 25 hibernate: platform
    avail: shutdown, reboot, suspend, test_resume image: 2.99 GiB
    services: thermald,upowerd Init: systemd v: 255 default: graphical
    tool: systemctl
  Packages: pm: pacman pkgs: 1615 libs: 433 tools: pamac,yay Compilers:
    clang: 16.0.6 gcc: 13.2.1 Shell: Bash v: 5.2.26 running-in: kitty
    inxi: 3.3.34

I’m not able to pinpoint the problem. You have messages saying dependency for suspend.target failed. Well, the dependency of this service is suspend.service (you can check it with systemctl list-depencies suspend.target). So, maybe the log systemctl status suspend.service will tell you something more.

On the other hand, you should try kernel 6.1, as Mirdarthos suggested. Your hardware, while not very recent, isn’t very old either. So, maybe 6.1 will work better (maybe it has some feature lacking from 5.15).

Finally, I can see you’re using intel-undervolt. you may want to stop this service and test suspend. In a similar way, you can try to establish a condition for suspend to fail (specific application you used or were using, for example).

1 Like

Do you have a network mount or another disk connected?

2 Likes

Yes, i have a Google Drive mounted via rclone

I will try this.
Now im currently on a testflight with @mithrial suggestion. I unmounted the drive and it is currently working just fine.

1 Like