Phone doesn't ring when running open source modem firmware

I'm using Mobian with Biktor's open source modem firmware. It's working very well, with the exception of one thing. The phone does not ring or wake up on incoming calls.

This is because the open source firmware requires the modem to report RING on all interfaces, with the AT command AT+QURCCFG="urcport","all", which has to be sent every time the modem is set up.

eg25-manager however, sends AT+QURCCFG="urcport","usbat" by default, which seems to be enough for the proprietary firmware to work, but not for this.

To fix this, one has to change /usr/share/eg25-manager/pine64,pinephone-1.*.toml. They all contain the following line:

{ cmd = "QURCCFG", subcmd = "urcport", expect = "\"usbat\"" },

This line has to be changed to:

{ cmd = "QURCCFG", subcmd = "urcport", expect = "\"all\"" },

And then the service must be restarted by running sudo systemctl restart eg25-manager.service (or the phone rebooted).

Perhaps somebody could test whether this causes regressions with the default, proprietary, modem firmware. If not, I would suggest to change this line so both firmwares can work properly. Otherwise, we should probably check if we can in any way detect which firmware is being used and send the right command accordingly.

I would expect that eventually most users would want to switch to the open source firmware, as being open source is kind of the point of the PinePhone.