1SYSTEMD-SLEEP.CONF(5)         systemd-sleep.conf         SYSTEMD-SLEEP.CONF(5)
2
3
4

NAME

6       systemd-sleep.conf, sleep.conf.d - Suspend and hibernation
7       configuration file
8

SYNOPSIS

10       /etc/systemd/sleep.conf
11
12       /etc/systemd/sleep.conf.d/*.conf
13
14       /run/systemd/sleep.conf.d/*.conf
15
16       /usr/lib/systemd/sleep.conf.d/*.conf
17

DESCRIPTION

19       systemd supports four general power-saving modes:
20
21       suspend
22           a low-power state where execution of the OS is paused, and complete
23           power loss might result in lost data, and which is fast to enter
24           and exit. This corresponds to suspend, standby, or freeze states as
25           understood by the kernel.
26
27       hibernate
28           a low-power state where execution of the OS is paused, and complete
29           power loss does not result in lost data, and which might be slow to
30           enter and exit. This corresponds to the hibernation as understood
31           by the kernel.
32
33       hybrid-sleep
34           a low-power state where execution of the OS is paused, which might
35           be slow to enter, and on complete power loss does not result in
36           lost data but might be slower to exit in that case. This mode is
37           called suspend-to-both by the kernel.
38
39       suspend-then-hibernate
40           A low power state where the system is initially suspended (the
41           state is stored in RAM). If not interrupted within the delay
42           specified by HibernateDelaySec=, the system will be woken using an
43           RTC alarm and hibernated (the state is then stored on disk).
44
45       Settings in these files determine what strings will be written to
46       /sys/power/disk and /sys/power/state by systemd-sleep(8) when
47       systemd(1) attempts to suspend or hibernate the machine. See
48       systemd.syntax(5) for a general description of the syntax.
49

CONFIGURATION DIRECTORIES AND PRECEDENCE

51       The default configuration is defined during compilation, so a
52       configuration file is only needed when it is necessary to deviate from
53       those defaults. By default, the configuration file in /etc/systemd/
54       contains commented out entries showing the defaults as a guide to the
55       administrator. This file can be edited to create local overrides.
56
57       When packages need to customize the configuration, they can install
58       configuration snippets in /usr/lib/systemd/*.conf.d/ or
59       /usr/local/lib/systemd/*.conf.d/. Files in /etc/ are reserved for the
60       local administrator, who may use this logic to override the
61       configuration files installed by vendor packages. The main
62       configuration file is read before any of the configuration directories,
63       and has the lowest precedence; entries in a file in any configuration
64       directory override entries in the single configuration file. Files in
65       the *.conf.d/ configuration subdirectories are sorted by their filename
66       in lexicographic order, regardless of which of the subdirectories they
67       reside in. When multiple files specify the same option, for options
68       which accept just a single value, the entry in the file with the
69       lexicographically latest name takes precedence. For options which
70       accept a list of values, entries are collected as they occur in files
71       sorted lexicographically. It is recommended to prefix all filenames in
72       those subdirectories with a two-digit number and a dash, to simplify
73       the ordering of the files.
74
75       To disable a configuration file supplied by the vendor, the recommended
76       way is to place a symlink to /dev/null in the configuration directory
77       in /etc/, with the same filename as the vendor configuration file.
78

OPTIONS

80       The following options can be configured in the "[Sleep]" section of
81       /etc/systemd/sleep.conf or a sleep.conf.d file:
82
83       AllowSuspend=, AllowHibernation=, AllowSuspendThenHibernate=,
84       AllowHybridSleep=
85           By default any power-saving mode is advertised if possible (i.e.
86           the kernel supports that mode, the necessary resources are
87           available). Those switches can be used to disable specific modes.
88
89           If AllowHibernation=no or AllowSuspend=no is used, this implies
90           AllowSuspendThenHibernate=no and AllowHybridSleep=no, since those
91           methods use both suspend and hibernation internally.
92           AllowSuspendThenHibernate=yes and AllowHybridSleep=yes can be used
93           to override and enable those specific modes.
94
95       SuspendMode=, HibernateMode=, HybridSleepMode=
96           The string to be written to /sys/power/disk by, respectively,
97           systemd-suspend.service(8), systemd-hibernate.service(8), systemd-
98           hybrid-sleep.service(8), or systemd-suspend-then-
99           hibernate.service(8). More than one value can be specified by
100           separating multiple values with whitespace. They will be tried in
101           turn, until one is written without error. If neither succeeds, the
102           operation will be aborted.
103
104       SuspendState=, HibernateState=, HybridSleepState=
105           The string to be written to /sys/power/state by, respectively,
106           systemd-suspend.service(8), systemd-hibernate.service(8), systemd-
107           hybrid-sleep.service(8), or systemd-suspend-then-
108           hibernate.service(8). More than one value can be specified by
109           separating multiple values with whitespace. They will be tried in
110           turn, until one is written without error. If neither succeeds, the
111           operation will be aborted.
112
113       HibernateDelaySec=
114           The amount of time the system spends in suspend mode before the
115           system is automatically put into hibernate mode, when using
116           systemd-suspend-then-hibernate.service(8). Defaults to 2h.
117

EXAMPLE: FREEZE

119       Example: to exploit the “freeze” mode added in Linux 3.9, one can use
120       systemctl suspend with
121
122           [Sleep]
123           SuspendState=freeze
124

SEE ALSO

126       systemd-sleep(8), systemd-suspend.service(8), systemd-
127       hibernate.service(8), systemd-hybrid-sleep.service(8), systemd-suspend-
128       then-hibernate.service(8), systemd(1), systemd.directives(7)
129
130
131
132systemd 243                                              SYSTEMD-SLEEP.CONF(5)
Impressum