]>
Commit | Line | Data |
---|---|---|
42483a74 IS |
1 | <?xml version="1.0"?> |
2 | <!--*-nxml-*--> | |
3a54a157 | 3 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
eea10b26 | 4 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
db9ecf05 | 5 | <!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
760e99bb | 6 | <refentry id="systemd-hibernate-resume.service" conditional='ENABLE_HIBERNATE'> |
42483a74 | 7 | |
798d3a52 | 8 | <refentryinfo> |
760e99bb | 9 | <title>systemd-hibernate-resume.service</title> |
798d3a52 | 10 | <productname>systemd</productname> |
798d3a52 | 11 | </refentryinfo> |
42483a74 | 12 | |
798d3a52 | 13 | <refmeta> |
760e99bb | 14 | <refentrytitle>systemd-hibernate-resume.service</refentrytitle> |
798d3a52 ZJS |
15 | <manvolnum>8</manvolnum> |
16 | </refmeta> | |
42483a74 | 17 | |
798d3a52 | 18 | <refnamediv> |
760e99bb | 19 | <refname>systemd-hibernate-resume.service</refname> |
dfad86b8 | 20 | <refname>systemd-hibernate-clear.service</refname> |
798d3a52 ZJS |
21 | <refname>systemd-hibernate-resume</refname> |
22 | <refpurpose>Resume from hibernation</refpurpose> | |
23 | </refnamediv> | |
42483a74 | 24 | |
798d3a52 | 25 | <refsynopsisdiv> |
760e99bb | 26 | <para><filename>systemd-hibernate-resume.service</filename></para> |
dfad86b8 | 27 | <para><filename>systemd-hibernate-clear.service</filename></para> |
12b42c76 | 28 | <para><filename>/usr/lib/systemd/systemd-hibernate-resume</filename></para> |
798d3a52 | 29 | </refsynopsisdiv> |
42483a74 | 30 | |
798d3a52 ZJS |
31 | <refsect1> |
32 | <title>Description</title> | |
42483a74 | 33 | |
760e99bb | 34 | <para><filename>systemd-hibernate-resume.service</filename> initiates the resume from hibernation.</para> |
42483a74 | 35 | |
bf63dadb | 36 | <para><command>systemd-hibernate-resume</command> only supports the in-kernel hibernation |
760e99bb | 37 | implementation, see <ulink url="https://docs.kernel.org/power/swsusp.html">Swap suspend</ulink>. |
edec55ea | 38 | Internally, it works by writing the major:minor of selected device node to |
760e99bb MY |
39 | <filename>/sys/power/resume</filename>, along with the offset in memory pages |
40 | (<filename>/sys/power/resume_offset</filename>) if supported.</para> | |
42483a74 | 41 | |
dfad86b8 MY |
42 | <para>The resume device node is either passed directly through arguments, or automatically acquired |
43 | from kernel command line options and/or <varname>HibernateLocation</varname> EFI variable. The latter | |
44 | will normally be cleared by <filename>systemd-hibernate-resume.service</filename> on resumption. | |
45 | If a stale variable is detected, it would be cleared by | |
46 | <filename>systemd-hibernate-clear.service</filename>.</para> | |
47 | ||
760e99bb MY |
48 | <para>Failing to initiate a resume is not an error condition. It may mean that there was |
49 | no resume image (e. g. if the system has been simply powered off and not hibernated). | |
50 | In such cases, the boot is ordinarily continued.</para> | |
798d3a52 | 51 | </refsect1> |
42483a74 | 52 | |
798d3a52 ZJS |
53 | <refsect1> |
54 | <title>See Also</title> | |
13a69c12 DT |
55 | <para><simplelist type="inline"> |
56 | <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> | |
57 | <member><citerefentry><refentrytitle>systemd-hibernate-resume-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> | |
58 | </simplelist></para> | |
798d3a52 | 59 | </refsect1> |
42483a74 IS |
60 | |
61 | </refentry> |