From 3da84c207902b65b7b6a2de9c497966844f87dd9 Mon Sep 17 00:00:00 2001 From: Rukun Mao Date: Fri, 13 May 2022 20:43:32 +0000 Subject: suspend: add suspend/resume support with powerd on ChromeOS ModemManager handles suspend and resume signals sent from powerd Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/547 --- src/mm-context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mm-context.c') diff --git a/src/mm-context.c b/src/mm-context.c index 37793e5a..ecb409bb 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -231,7 +231,7 @@ static gchar *test_plugin_dir; #if defined WITH_UDEV static gboolean test_no_udev; #endif -#if defined WITH_SYSTEMD_SUSPEND_RESUME +#if defined WITH_SUSPEND_RESUME static gboolean test_no_suspend_resume; static gboolean test_quick_suspend_resume; #endif @@ -266,7 +266,7 @@ static const GOptionEntry test_entries[] = { NULL }, #endif -#if defined WITH_SYSTEMD_SUSPEND_RESUME +#if defined WITH_SUSPEND_RESUME { "test-no-suspend-resume", 0, 0, G_OPTION_ARG_NONE, &test_no_suspend_resume, "Disable suspend/resume support at runtime even if available", @@ -340,7 +340,7 @@ mm_context_get_test_no_udev (void) } #endif -#if defined WITH_SYSTEMD_SUSPEND_RESUME +#if defined WITH_SUSPEND_RESUME gboolean mm_context_get_test_no_suspend_resume (void) { -- cgit v1.2.3-70-g09d2