chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd-sleep: add support for freeze and standby
[elogind.git]
/
src
/
login
/
logind-action.c
diff --git
a/src/login/logind-action.c
b/src/login/logind-action.c
index 4091e411b04cfae15faa5794f98cbb1e155be0cc..c930591023f0cfb06a78d8f6cb8d4aee30a14cf4 100644
(file)
--- a/
src/login/logind-action.c
+++ b/
src/login/logind-action.c
@@
-27,6
+27,7
@@
#include "special.h"
#include "dbus-common.h"
#include "logind-action.h"
#include "special.h"
#include "dbus-common.h"
#include "logind-action.h"
+#include "sleep-config.h"
int manager_handle_action(
Manager *m,
int manager_handle_action(
Manager *m,
@@
-74,11
+75,11
@@
int manager_handle_action(
}
if (handle == HANDLE_SUSPEND)
}
if (handle == HANDLE_SUSPEND)
- supported = can_sleep("
mem
") > 0;
+ supported = can_sleep("
suspend
") > 0;
else if (handle == HANDLE_HIBERNATE)
else if (handle == HANDLE_HIBERNATE)
- supported = can_sleep("
disk
") > 0;
+ supported = can_sleep("
hibernate
") > 0;
else if (handle == HANDLE_HYBRID_SLEEP)
else if (handle == HANDLE_HYBRID_SLEEP)
- supported = can_sleep("
disk") > 0 && can_sleep_disk("suspend
") > 0;
+ supported = can_sleep("
hybrid-sleep
") > 0;
else if (handle == HANDLE_KEXEC)
supported = access("/sbin/kexec", X_OK) >= 0;
else
else if (handle == HANDLE_KEXEC)
supported = access("/sbin/kexec", X_OK) >= 0;
else