[PATCH][upower] linux: add Suspend to CriticalPowerAction

Alexander Couzens lynxis at fe80.eu
Mon Oct 17 02:01:36 UTC 2016


It's useful for setups which don't support hibernate.
---
 src/linux/up-backend.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c
index 2ba201a..d36ec21 100644
--- a/src/linux/up-backend.c
+++ b/src/linux/up-backend.c
@@ -389,6 +389,7 @@ up_backend_get_critical_action (UpBackend *backend)
 		const gchar *method;
 		const gchar *can_method;
 	} actions[] = {
+		{ "Suspend", "CanSuspend" },
 		{ "HybridSleep", "CanHybridSleep" },
 		{ "Hibernate", "CanHibernate" },
 		{ "PowerOff", NULL },
-- 
2.10.0



More information about the devkit-devel mailing list