You are not logged in.

#1 2023-01-27 01:03:51

ljyip
Member
Registered: 2022-07-26
Posts: 17

When computer connected to external monitor, suspend core dumps.

I have a really weird thing going on in my laptop. Whenever my computer is connected to an external monitor, sleeping causes this in my journalctl:

Jan 26 18:56:19 laptop-mc3gnrnd systemd[1]: Starting Suspend; Hibernate if not used for a period of time...
Jan 26 18:56:19 laptop-mc3gnrnd systemd-sleep[27173]: Assertion 'capacity >= 0' failed at src/shared/sleep-config.c:58, function PTR_TO_CAPACITY(). Aborting.
Jan 26 18:56:19 laptop-mc3gnrnd audit[27173]: ANOM_ABEND auid=4294967295 uid=0 gid=0 ses=4294967295 pid=27173 comm="systemd-sleep" exe="/usr/lib/systemd/systemd-sleep" sig=6 res=1
Jan 26 18:56:19 laptop-mc3gnrnd audit: BPF prog-id=77 op=LOAD
Jan 26 18:56:19 laptop-mc3gnrnd audit: BPF prog-id=78 op=LOAD
Jan 26 18:56:19 laptop-mc3gnrnd audit: BPF prog-id=79 op=LOAD
Jan 26 18:56:19 laptop-mc3gnrnd systemd[1]: Started Process Core Dump (PID 27175/UID 0).
Jan 26 18:56:19 laptop-mc3gnrnd audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-27175-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 26 18:56:19 laptop-mc3gnrnd systemd-coredump[27176]: [?] Process 27173 (systemd-sleep) of user 0 dumped core.
                                                         
                                                         Stack trace of thread 27173:
                                                         #0  0x00007f05cfaa164c n/a (libc.so.6 + 0x8864c)
                                                         #1  0x00007f05cfa51938 raise (libc.so.6 + 0x38938)
                                                         #2  0x00007f05cfa3b53d abort (libc.so.6 + 0x2253d)
                                                         #3  0x00007f05cfc72468 n/a (libsystemd-shared-252.4-2.so + 0x72468)
                                                         #4  0x00007f05cfd393d0 get_total_suspend_interval (libsystemd-shared-252.4-2.so + 0x1393d0)
                                                         #5  0x000055e4761aec2e n/a (systemd-sleep + 0x3c2e)
                                                         #6  0x000055e4761ad3d2 n/a (systemd-sleep + 0x23d2)
                                                         #7  0x00007f05cfa3c290 n/a (libc.so.6 + 0x23290)
                                                         #8  0x00007f05cfa3c34a __libc_start_main (libc.so.6 + 0x2334a)
                                                         #9  0x000055e4761ad895 n/a (systemd-sleep + 0x2895)
                                                         ELF object binary architecture: AMD x86-64
Jan 26 18:56:19 laptop-mc3gnrnd systemd[1]: systemd-suspend-then-hibernate.service: Main process exited, code=dumped, status=6/ABRT
Jan 26 18:56:19 laptop-mc3gnrnd audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend-then-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jan 26 18:56:19 laptop-mc3gnrnd sway[24367]: 2023-01-26 18:56:19 - [Line 296] PrepareForSleep signal received 0
Jan 26 18:56:19 laptop-mc3gnrnd systemd[1]: systemd-suspend-then-hibernate.service: Failed with result 'core-dump'.
Jan 26 18:56:19 laptop-mc3gnrnd sway[24505]: 18:56:19.176 › System: resume or unlock
Jan 26 18:56:19 laptop-mc3gnrnd sway[24505]: 18:56:19.177 › Stretchly: resuming breaks
Jan 26 18:56:19 laptop-mc3gnrnd audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-27175-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 26 18:56:19 laptop-mc3gnrnd systemd[1]: Failed to start Suspend; Hibernate if not used for a period of time.
Jan 26 18:56:19 laptop-mc3gnrnd systemd[1]: Dependency failed for Suspend; Hibernate if not used for a period of time.
Jan 26 18:56:19 laptop-mc3gnrnd systemd[1]: suspend-then-hibernate.target: Job suspend-then-hibernate.target/start failed with result 'dependency'.

However, if not plugged into any external monitor, sleeping works fine.

Offline

#2 2023-01-27 06:44:49

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: When computer connected to external monitor, suspend core dumps.

Probably https://github.com/systemd/systemd/pull/26159 which was was backported to stable yesterday but there has been no new upstream release.  You could open a bug report on the Arch bugtracker and ask for the fix to be applied locally.
Edit:
Is it fixed in systemd 252.5-1?

Last edited by loqs (2023-01-30 22:41:44)

Offline

Board footer

Powered by FluxBB