summaryrefslogtreecommitdiff
path: root/src/login/logind-action.h
diff options
context:
space:
mode:
authorMario Limonciello <superm1@gmail.com>2018-03-08 21:17:33 +0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-08 14:17:33 +0100
commitc58493c00af97146d3b6c24da9c0371978124703 (patch)
treeeef8dce2e68194b33df3faec0631bee8543a175b /src/login/logind-action.h
parentfc17f194ded93b51899aa0bbd4e66870d975fe5a (diff)
downloadsystemd-c58493c00af97146d3b6c24da9c0371978124703.tar.gz
Introduce suspend-to-hibernate (#8274)
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>
Diffstat (limited to 'src/login/logind-action.h')
-rw-r--r--src/login/logind-action.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind-action.h b/src/login/logind-action.h
index 8c31ec42be..1ee8c812ff 100644
--- a/src/login/logind-action.h
+++ b/src/login/logind-action.h
@@ -29,6 +29,7 @@ typedef enum HandleAction {
HANDLE_SUSPEND,
HANDLE_HIBERNATE,
HANDLE_HYBRID_SLEEP,
+ HANDLE_SUSPEND_TO_HIBERNATE,
HANDLE_LOCK,
_HANDLE_ACTION_MAX,
_HANDLE_ACTION_INVALID = -1