06-06-2020, 06:59 PM
Ok so I've solved this (or well atleast figured out how to work around this issue). Essentially the core of the issue is that for whatever reason the USB devices provided by the EG25 modem don't register. However /dev/ttyS* devices are still available and making calls / texts via raw AT commands work. For Sxmo, since everything is based on modemmanager, I've just created a udev rule to have mm access the raw serial AT device instead of the USB device.
If anyone else gets stuck on this issue basically what you can do to get modemmanager back working is create the udev rule:
Add the above snippet to /etc/udev/rules.d/60-modemfix.rules and you should see your modem appearing again in mmcli.
Also, incoming dialing might be broken since I believe by default the EG25 uses a separate port for rings/texts; to resolve this issue you can run the raw AT command:
This will force the modem to ring/use the URC port the same as the primary serial device.
---
This fix isn't ideal and I still would like to figure out how to get USB modem devices back; seems like this may be a hardware or maybe a software issue (though if software there's probably only some quite low-level fix because multiple distros exhibit this problem, and this issue started spontaneously..); So I think the USB devices disappearing / breaking very well could be a PP hardware issue. I'm not entirely sure.
But atleast now I have calls and texts back on Sxmo on my (well.. probably somehow broken Pinephone) and can get back to improve the dialer UI
If anyone else gets stuck on this issue basically what you can do to get modemmanager back working is create the udev rule:
Code:
ACTION!="add|change|move|bind", GOTO="mm_whitelist_end"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_DEVICE_PROCESS}="1"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_TTY_BAUDRATE}="115200"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_TTY_FLOW_CONTROL}="none"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
LABEL="mm_whitelist_end"
Add the above snippet to /etc/udev/rules.d/60-modemfix.rules and you should see your modem appearing again in mmcli.
Also, incoming dialing might be broken since I believe by default the EG25 uses a separate port for rings/texts; to resolve this issue you can run the raw AT command:
Code:
AT+QURCCFG="urcport","uart1"
This will force the modem to ring/use the URC port the same as the primary serial device.
---
This fix isn't ideal and I still would like to figure out how to get USB modem devices back; seems like this may be a hardware or maybe a software issue (though if software there's probably only some quite low-level fix because multiple distros exhibit this problem, and this issue started spontaneously..); So I think the USB devices disappearing / breaking very well could be a PP hardware issue. I'm not entirely sure.
But atleast now I have calls and texts back on Sxmo on my (well.. probably somehow broken Pinephone) and can get back to improve the dialer UI