]> git.ipfire.org Git - thirdparty/systemd.git/commit - docs/ENVIRONMENT.md
sleep: Always freeze user.slice
authorAdrian Vovk <adrianvovk@gmail.com>
Sat, 23 Dec 2023 22:03:42 +0000 (17:03 -0500)
committerAdrian Vovk <adrianvovk@gmail.com>
Tue, 5 Mar 2024 17:12:35 +0000 (12:12 -0500)
commit0b958bb3eeae61dd25a1f6735477ea239981b162
tree88bd54677d0a622355ea60bd5318c3d57f1d8824
parent7483708131b474d92c9207c8c6340b450b58cb94
sleep: Always freeze user.slice

Previously, we'd only freeze user.slice in the case of s2h, because we
didn't want the user session to resume while systemd was transitioning
from suspend to hibernate.

This commit extends this freezing behavior to all sleep modes.

We also have an environment variable to disable the freezing behavior
outright. This is a necessary workaround for someone that has hooks
in /usr/lib/systemd/system-sleep/ which communicate with some
process running under user.slice, or if someone is using the proprietary
NVIDIA driver which breaks when user.slice is frozen (issue #27559)

Fixes #27559
docs/ENVIRONMENT.md
man/systemd-suspend.service.xml
src/sleep/sleep.c