42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov<!--*-nxml-*-->
12b42c76672a66c2d4ea7212c14f8f1b5a62b78dTom Gundersen<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov This file is part of systemd.
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov Copyright 2014 Ivan Shapovalov
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov systemd is free software; you can redistribute it and/or modify it
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov under the terms of the GNU Lesser General Public License as published by
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov the Free Software Foundation; either version 2.1 of the License, or
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov (at your option) any later version.
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov systemd is distributed in the hope that it will be useful, but
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov WITHOUT ANY WARRANTY; without even the implied warranty of
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov Lesser General Public License for more details.
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov You should have received a copy of the GNU Lesser General Public License
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov along with systemd; If not, see <http://www.gnu.org/licenses/>.
42483a747489ff46aed3588b78bf4b9480dbeaf7Ivan Shapovalov<refentry id="systemd-hibernate-resume@.service">
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <title>systemd-hibernate-resume@.service</title>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <productname>systemd</productname>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <email>intelfx100@gmail.com</email>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <refentrytitle>systemd-hibernate-resume@.service</refentrytitle>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <refname>systemd-hibernate-resume@.service</refname>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <refname>systemd-hibernate-resume</refname>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <refpurpose>Resume from hibernation</refpurpose>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <refsynopsisdiv>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <para><filename>systemd-hibernate-resume@.service</filename></para>
12b42c76672a66c2d4ea7212c14f8f1b5a62b78dTom Gundersen <para><filename>/usr/lib/systemd/systemd-hibernate-resume</filename></para>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek </refsynopsisdiv>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <para><filename>systemd-hibernate-resume@.service</filename>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek initiates the resume from hibernation. It is instantiated with the
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek device to resume from as the template argument.</para>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <para><filename>systemd-hibernate-resume</filename> only supports
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek the in-kernel hibernation implementation, known as
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <ulink url="https://www.kernel.org/doc/Documentation/power/swsusp.txt">swsusp</ulink>.
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek Internally, it works by writing the major:minor of specified
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek device node to <filename>/sys/power/resume</filename>.</para>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <para>Failing to initiate a resume is not an error condition. It
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek may mean that there was no resume image (e. g. if the system has
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek been simply powered off and not hibernated). In such case, the
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek boot is ordinarily continued.</para>
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek <citerefentry><refentrytitle>systemd-hibernate-resume-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>