When a call is received during suspend, the modem will disappear immediately after the device wakes and before it rings. This is with 0.1.2, this did not occur with 0.1.1.
I'll try to capture some logging from eg25-manager when this happens over the next day or so when I have more time.
As mentioned during the discussion, it could be the resume timeout kicking in too early: on my phone running Mobian it works fine, but for some reason maybe probing the modem takes longer under some circumstances; we could then reach the timeout just as the modem is being brought up by MM and therefore reset it.
Calibrating this timeout is tricky: it must kick in at a point where we're sure MM should have re-probed the modem; but if it's too long, then we could miss a call.
In its current state, and based on my testing, it still allows the "incoming call" display to show for a couple seconds most of the time, so at least the user gets a (small) chance to answer the call, and (most importantly) it will be shown in the calls list. Making it longer would prevent that, and the user wouldn't even be aware of the missed call.
Anyway, a full eg25-manager log would help here (might also be an issue with MM vanishing D-bus as seen previously on @dylanvanassche 's device, so eg25-manager wouldn't get notified the modem has been brought back and then hit the timeout)
I'm experiencing the same issue, but even with 0.1.1. After waking up from any sleep (e.g. pressing the power button, or receiving a call), the modem gets reset, resulting in a hangup tone when I'm calling the phone. This is on PostmarketOS 20.05.1
Which distro and version of ModemManager are you using? Is it patched?
The ModemManager object '/org/freedesktop/ModemManager1/Modem/10' removed line should be printed before suspend. If MM has a custom patch disabling the suspend/resume management (as I suspect) then you're in "untested and likely to fail" territory.
@dusxmt did you upgrade the modem firmware? There was one report when we were testing this a while back of stability getting worse after upgrading the firmware...
@craftyguy Indeed, I'm now running EG25GGBR07A08M2G_01.003.01.003. However, I've tried several different firmware images, as well as a fresh install of pmOS on an SD card, and this behavior remains consistent.
@craftyguy Then I guess that's the problem: IIRC ModemManager needs patches to implement suspend/resume using elogind.
Hopefully 692f9134 should solve your problem (but then it won't detect all modem failures, and might even screw things up), but moving to an MM version with elogind support might be a better idea.
PS: I haven't tested this patch (no time this week-end)
I tried it out, it did actually resume and show a calling dialog screen, but I wasn't able to pick it up (there was a sequence of three high-pitched beeps (with consecutively rising pitch) at the calling phone when I tried, which I think signifies an error), and on second attempt it lost the modem anyways. So yeah, I don't think this is the right approach, modemmanager will probably need to be patched.
Okay, the "not being able to pick it up" issue is unrelated, I've noticed that it happens even during normal use (sometimes I can pick up the call, sometimes not), downgrading the modem's firmware to EG25GGBR07A08M2G_01.002.01.002 appears to make it more reliable (I haven't been able to reproduce it here yet).
I apologize. At the time of first writing a reply, I believed it was related, because of the very similar behavior to my problem, and a lack of any logs - so I provided mine.