PinePhone Pro needs a little longer when resuming
Currently, eg25-manager waits 9 seconds for a modem to appear and then resets it. That may be correct for PinePhone, but for PinePhone Pro it somehow needs a little bit longer.
With my tests, eventually receiving a call after wakeup took ~40 seconds. After this patch it takes ~13s:
From dd64f656749fb16dbdd996486be493f4fdb05c69 Mon Sep 17 00:00:00 2001
From: marcin <marcin@ipv8.pl>
Date: Sat, 5 Mar 2022 23:14:53 +0100
Subject: [PATCH] suspend: increase timeout to get rid of resets
This makes wake from suspend to call time reduced from 40 to 13
seconds on PinePhone Pro.
---
src/suspend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/suspend.c b/src/suspend.c
index 9485598..d2e1649 100644
--- a/src/suspend.c
+++ b/src/suspend.c
@@ -277,7 +277,7 @@ void suspend_init(struct EG25Manager *manager, toml_table_t *config[])
if (manager->modem_boot_timeout == 0)
manager->modem_boot_timeout = 120;
if (manager->modem_recovery_timeout == 0)
- manager->modem_recovery_timeout = 9;
+ manager->modem_recovery_timeout = 13;
g_dbus_proxy_new_for_bus(G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START |
--
2.35.1
I'm not suggesting you necessarily apply this simple patch, just noting it works for me.
Btw. I use the community modem on 30.004.30.004 firmware.
Edited by marcin