From 23033217de26fb91734fed3b999173f151195040 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 1 Dec 2023 12:45:12 +0000 Subject: base-manager: add support to put modem in low power mode during suspend Based on an earlier approach from Jack Song and Nero Zhang, see https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1050 --- src/mm-context.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/mm-context.c') diff --git a/src/mm-context.c b/src/mm-context.c index 65db5172..94b6e915 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -238,6 +238,7 @@ static gboolean test_no_udev; #if defined WITH_SUSPEND_RESUME static gboolean test_no_suspend_resume; static gboolean test_quick_suspend_resume; +static gboolean test_radio_off_suspend_resume; #endif #if defined WITH_QRTR static gboolean test_no_qrtr; @@ -285,6 +286,11 @@ static const GOptionEntry test_entries[] = { "Enable quick suspend/resume support for modems which stay on during host suspension", NULL }, + { + "test-radio-off-suspend-resume", 0, 0, G_OPTION_ARG_NONE, &test_radio_off_suspend_resume, + "Enable support to turn radio off during suspend/resume", + NULL +}, #endif #if defined WITH_QRTR { @@ -358,11 +364,18 @@ mm_context_get_test_no_suspend_resume (void) { return test_no_suspend_resume; } + gboolean mm_context_get_test_quick_suspend_resume (void) { return test_quick_suspend_resume; } + +gboolean +mm_context_get_test_radio_off_suspend_resume (void) +{ + return test_radio_off_suspend_resume; +} #endif #if defined WITH_QRTR -- cgit v1.2.3-70-g09d2