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
This commit is contained in:
Rukun Mao
2022-06-09 08:32:13 +00:00
committed by Aleksander Morgado
parent ac06052b97
commit 3da84c2079
38 changed files with 253 additions and 49 deletions
+3 -3
View File
@@ -31,7 +31,7 @@
#include "mm-base-manager.h"
#include "mm-context.h"
#if defined WITH_SYSTEMD_SUSPEND_RESUME
#if defined WITH_SUSPEND_RESUME
# include "mm-sleep-monitor.h"
#endif
@@ -56,7 +56,7 @@ quit_cb (gpointer user_data)
return FALSE;
}
#if defined WITH_SYSTEMD_SUSPEND_RESUME
#if defined WITH_SUSPEND_RESUME
static void
sleeping_cb (MMSleepMonitor *sleep_monitor)
@@ -193,7 +193,7 @@ main (int argc, char *argv[])
name_lost_cb,
NULL,
NULL);
#if defined WITH_SYSTEMD_SUSPEND_RESUME
#if defined WITH_SUSPEND_RESUME
{
MMSleepMonitor *sleep_monitor;