Skip to content

Conversation

@oreo639
Copy link
Member

@oreo639 oreo639 commented Jan 12, 2026

Testing the changes

  • I tested the changes in this PR: briefly

Previously systemd implemented SuspendMode , which elogind extended to allow configuring mem_sleep modes such as s2idle or deep:
https://github.com/elogind/elogind/blob/v252.9/src/shared/sleep-config.c#L145-L146
https://github.com/elogind/elogind/blob/v252.9/src/sleep/sleep.c#L252-L287

The SuspendMode option was removed from systemd: elogind/elogind@4d28207

elogind re-added the option now including default mem_sleep options: elogind/elogind@7707a30 elogind/elogind@b409f71

Previously (in elogind versions we didn't ship), s2idle would be preferred when available which causes issues on laptops where deep is the better option (and the kernel default), in 255.22 this was changed to prefer deep, which conversely causes issues on newer laptops which advertise support for deep despite s2idle being the better option (and the kernel default): elogind/elogind#285

Set the default sleep suspend mode to an empty list to skip modifying /sys/power/mem_sleep and preserve kernel defaults.

This should be fixed with elogind 257.x which drops SuspendMode configuration of mem_sleep in favor of systemd's newly added MemorySleepMode.

This is based on a similar patch in Chimera Linux (although modified to not remove the option outright): https://github.com/chimera-linux/cports/blob/9e7aff96579d41fcc1f411f88526ad7c132f8ec5/main/elogind/patches/sleep.patch

@oreo639 oreo639 force-pushed the elogind branch 3 times, most recently from 469f4af to 264763a Compare January 12, 2026 06:46
Also add missing config files to conf_files.
@oreo639 oreo639 merged commit 3dfb32f into void-linux:master Jan 13, 2026
8 checks passed
@oreo639 oreo639 deleted the elogind branch January 13, 2026 07:08
Copy link

@carlos2martinize carlos2martinize left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • [ ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants