1SYSTEMD-SUSPEND.SERVICE(8)  systemd-suspend.service SYSTEMD-SUSPEND.SERVICE(8)
2
3
4

NAME

6       systemd-suspend.service, systemd-hibernate.service, systemd-hybrid-
7       sleep.service, systemd-sleep - System sleep state logic
8

SYNOPSIS

10       systemd-suspend.service
11
12       systemd-hibernate.service
13
14       systemd-hybrid-sleep.service
15
16       /usr/lib/systemd/system-sleep
17

DESCRIPTION

19       systemd-suspend.service is a system service that is pulled in by
20       suspend.target and is responsible for the actual system suspend.
21       Similarly, systemd-hibernate.service is pulled in by hibernate.target
22       to execute the actual hibernation. Finally,
23       systemd-hybrid-sleep.service is pulled in by hybrid-sleep.target to
24       execute hybrid hibernation with system suspend.
25
26       Immediately before entering system suspend and/or hibernation
27       systemd-suspend.service (and the other mentioned units, respectively)
28       will run all executables in /usr/lib/systemd/system-sleep/ and pass two
29       arguments to them. The first argument will be "pre", the second either
30       "suspend", "hibernate", or "hybrid-sleep" depending on the chosen
31       action. Immediately after leaving system suspend and/or hibernation the
32       same executables are run, but the first argument is now "post". All
33       executables in this directory are executed in parallel, and execution
34       of the action is not continued until all executables have finished.
35
36       Note that scripts or binaries dropped in /usr/lib/systemd/system-sleep/
37       are intended for local use only and should be considered hacks. If
38       applications want to be notified of system suspend/hibernation and
39       resume, there are much nicer interfaces available.
40
41       Note that systemd-suspend.service, systemd-hibernate.service, and
42       systemd-hybrid-sleep.service should never be executed directly.
43       Instead, trigger system sleep states with a command such as "systemctl
44       suspend" or similar.
45
46       Internally, this service will echo a string like "mem" into
47       /sys/power/state, to trigger the actual system suspend. What exactly is
48       written where can be configured in the "[Sleep]" section of
49       /etc/systemd/sleep.conf or a sleep.conf.d file. See systemd-
50       sleep.conf(5).
51

OPTIONS

53       systemd-sleep understands the following commands:
54
55       -h, --help
56           Print a short help text and exit.
57
58       --version
59           Print a short version string and exit.
60
61       suspend, hibernate, hybrid-sleep
62           Suspend, hibernate, or put the system to hybrid sleep.
63

SEE ALSO

65       systemd-sleep.conf(5), systemd(1), systemctl(1), systemd.special(7),
66       systemd-halt.service(8)
67
68
69
70systemd 219                                         SYSTEMD-SUSPEND.SERVICE(8)
Impressum