Bring back modem automatically (and loss of mobile data connection)
Lately the modem has been disappearing very frequently on my PinePhone (4, 5 times a day or so; I'm using biktorgj's latest firmware). On Manjaro dev it's just gone and I have to restart eg25-manager to bring it back (edit: not always, sometimes it's brought back automatically without any intervention neccessary). I handle this with a systemd timer that checks every minute if the modem is there and if not, restarts eg25-manager.service. This works, but I always have to enter my SIM card's pin code before the modem is fully functional again which I of course can't do if I don't notice the modem disappearing, so I may be unreachable for a long time without noticing. I recently tried Arch Phosh and there the modem disappears at least as often as well, but is brought back automatically and immediately without the need to enter the pin code. I don't know how they do it, but maybe it's possible to implement this on Manjaro as well?
I also noticed that the mobile data connection is often broken after suspend (I believe it happens after suspend, but maybe it's connected to something else) and can only be recovered by restarting eg25-manager. On Arch it breaks often as well, but seems to be related to the modem disappearing (it doesn't work anymore after the modem is brought back automatically). Also on Arch restarting eg25-manager doesn't seem to have an effect on the modem state, I have to reboot the phone to get mobile data working again. There is a similar bug report in biktorgj's repo, but it seems unclear where the problem lies.