Modem on Fairphone 4 (SM7225)
Hi, I'm trying to get modemmanager to work on Fairphone 4 mainline (SoC is Snapdragon 750G, sm7225)
It's a dual SIM device so when not doing anything special mmcli says "state: failed" and "failed reason: sim-missing"
After following this guide https://wiki.postmarketos.org/wiki/User:TravMurav/Dual-Sim_QMI_draft it's looking ok
fairphone-fp4:~$ YOUR_AID=A0:00:00:00:87:10:02:FF:49:FF:05:89
fairphone-fp4:~$ sudo qmicli -d qrtr://0 --uim-change-provisioning-session="slot=1,activate=yes,session-type=primary-gw-provisioning,aid=$YOUR_AID"
[qrtr://0] Successfully changed provisioning session
fairphone-fp4:~$ mmcli -m 0
-----------------------------
General | path: /org/freedesktop/ModemManager1/Modem/0
| device id: 46e6d18484ff43e780268699ddc1ca2555ed07cc
-----------------------------
Hardware | manufacturer: QUALCOMM INCORPORATED
| model: 0
| firmware revision: MPSS.HI.2.0.1.c6-00447-BITRA_GEN_PACK-1 1 [Jun 08 2021 18:00:00]
| carrier config: default
| h/w revision: 10000
| equipment id: 355870090002350
-----------------------------
System | device: qcom-soc
| drivers: ipa, qrtr
| plugin: qcom-soc
| primary port: qrtr0
| ports: qrtr0 (qmi), rmnet_ipa0 (net)
-----------------------------
Status | lock: sim-pin2
| unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
| state: disabled
| power state: off
| signal quality: 0% (cached)
-----------------------------
Modes | supported: allowed: any; preferred: none
| current: allowed: any; preferred: none
-----------------------------
IP | supported: ipv4, ipv6, ipv4v6
-----------------------------
SIM | primary sim path: /org/freedesktop/ModemManager1/SIM/1
| sim slot paths: slot 1: /org/freedesktop/ModemManager1/SIM/0
| slot 2: none (active)
"state: disabled" and "power state: off" it is now. I think I'm supposed to enable the modem now with this command? But this fails:
$ sudo mmcli -m 0 -e
error: couldn't enable the modem: 'GDBus.Error:org.freedesktop.libqmi.Error.Protocol.DeviceNotReady: Couldn't set operating mode: QMI protocol error (52): 'DeviceNotReady''
Do you have an idea what is going on here?
ModemManager log (/usr/sbin/ModemManager --debug --log-level=DEBUG --log-file=modemmanager.log --log-timestamps
): https://pastebin.com/raw/ebTvgxzD (edit: pastebin's a bit weird right now, mirror: https://public.z3ntu.xyz/tmp/ebTvgxzD.txt)