diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-12-01 12:45:12 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-12-01 12:50:51 +0000 |
commit | 23033217de26fb91734fed3b999173f151195040 (patch) | |
tree | ab8ae8daad1bcf5e0cdace008d0c85eb711c920e /src/mm-context.c | |
parent | 5056936b468c3213ba759b8802eaad9abd5cfeab (diff) |
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
Diffstat (limited to 'src/mm-context.c')
-rw-r--r-- | src/mm-context.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 |