mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
c58493c00a
Suspend to Hibernate is a new sleep method that invokes suspend for a predefined period of time before automatically waking up and hibernating the system. It's similar to HybridSleep however there isn't a performance impact on every suspend cycle. It's intended to use with systems that may have a higher power drain in their supported suspend states to prevent battery and data loss over an extended suspend cycle. Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
20 lines
575 B
SYSTEMD
20 lines
575 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1+
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Suspend; Idle into hibernate
|
|
Documentation=man:systemd-suspend.service(8)
|
|
DefaultDependencies=no
|
|
Requires=sleep.target
|
|
After=sleep.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=@rootlibexecdir@/systemd-sleep suspend-to-hibernate
|