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
+11 -1
View File
@@ -399,7 +399,17 @@ nodist_ModemManager_SOURCES = $(DAEMON_ENUMS_GENERATED)
# Additional suspend/resume support via systemd
if WITH_SYSTEMD_SUSPEND_RESUME
ModemManager_SOURCES += mm-sleep-monitor.h mm-sleep-monitor.c
ModemManager_SOURCES += \
mm-sleep-monitor.h \
mm-sleep-monitor-systemd.c \
$(NULL)
endif
if WITH_POWERD_SUSPEND_RESUME
ModemManager_SOURCES += \
mm-sleep-monitor.h \
mm-sleep-monitor-powerd.c \
$(NULL)
endif
# Additional QMI support in ModemManager