SIM card not appearing because SIM card takes too long to initialize
Describe your issue
What's the expected behaviour?
That the sim card shows up after boot and phosh prompts for the PIN entry dialog.
What's the current behaviour?
My sim card is a german card being used in another country so that might be a factor here.
The device boots and the sim card does not show up. mmcli -a any
does not show any SIM card.
sudo qmicli -d qrtr://0 --uim-get-card-status
shows: (Card state: 'present'),
In the end the solution for me was to edit: /etc/conf.d/msm-modem-uim-selection
And change: sim_wait_time=1
to sim_wait_time=30
To increase the maximum time to wait for SIM card to appear after starting the modem from 1 second to 30.
How to reproduce your issue?
Not sure. I am assuming that this does not happen with every device. And it could be related to the fact that the sim is roaming.
/etc/conf.d/msm-modem-uim-selection
comment also state that:
Some SIM cards or modem firmwares might take longer to initialize. :(
But I am willing to troubleshoot it if you want extra info. And I can also test lowering wait time from 30 to something like 10 seconds. As the sim with this edit does not take 30 seconds to appear, I just put that value out of caution.
Also I have no idea if this can be related to:
/cc @craftyguy since you asked for this ticket.
What device are you using?
OnePlus 6 (oneplus-enchilada)
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch)
And:
-
v22.12
-
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
20230322-0325-postmarketOS-edge-phosh-22.2-oneplus-enchilada
Additional information
SIM