SIM fails to unlock on slot 2, works fine on slot 1 on OnePlus 6 with pmOS
Following https://wiki.postmarketos.org/wiki/OnePlus_6_(oneplus-enchilada)#Modem_bugs instructions by @calebccff, seems to be different from #669
I got two SIMs to work fine on OnePlus 6 with postmarketOS v22.12 Phosh (build 20230319-0258-postmarketOS-v22.12-phosh-22.2-oneplus-enchilada ), when loaded separately. One SIM is coopvoce (Italy) and the other is a Telia prepaid (Finland).
When using slot 2, however, odd failures happen: the OS just doesn't properly start (usually it stops showing anything after the screen turns black right after the postmarketOS logo shows up on boot), or GNOME crashes, or the network gets stuck to unconnected, or the PIN unlock screen keeps asking for PIN and claiming there are forever 3 attempts left, with no indication of a failed PIN.
This is the status when running fine:
[qrtr://0] Successfully got card status
Provisioning applications:
Primary GW: slot '1', application '1'
Primary 1X: session doesn't exist
Secondary GW: session doesn't exist
Secondary 1X: session doesn't exist
Slot [1]:
Card state: 'present'
UPIN state: 'not-initialized'
UPIN retries: '0'
UPUK retries: '0'
Application [1]:
Application type: 'usim (2)'
Application state: 'ready'
Application ID:
A0:00:00:00:87:10:02:FF:FF:F0:01:89:00:00:01:FF
Personalization state: 'ready'
UPIN replaces PIN1: 'no'
PIN1 state: 'enabled-verified'
PIN1 retries: '3'
PUK1 retries: '10'
PIN2 state: 'enabled-not-verified'
PIN2 retries: '3'
PUK2 retries: '10'
Slot [2]:
Card state: 'error: no-atr-received (3)'
UPIN state: 'not-initialized'
UPIN retries: '0'
UPUK retries: '0'
And the dmesg (lightly redacted) from normal operations earlier on: 2023-03-27_dmesg.txt.bz2
This is the status when failing to unlock on slot 2:
[qrtr://0] Successfully got card status
Provisioning applications:
Primary GW: slot '2', application '1'
Primary 1X: session doesn't exist
Secondary GW: session doesn't exist
Secondary 1X: session doesn't exist
Slot [1]:
Card state: 'error: no-atr-received (3)'
UPIN state: 'not-initialized'
UPIN retries: '0'
UPUK retries: '0'
Slot [2]:
Card state: 'present'
UPIN state: 'not-initialized'
UPIN retries: '0'
UPUK retries: '0'
Application [1]:
Application type: 'usim (2)'
Application state: 'pin1-or-upin-pin-required'
Application ID:
A0:00:00:00:87:10:02:FF:FF:F0:01:89:00:00:01:FF
Personalization state: 'unknown'
UPIN replaces PIN1: 'no'
PIN1 state: 'enabled-not-verified'
PIN1 retries: '3'
PUK1 retries: '10'
PIN2 state: 'enabled-not-verified'
PIN2 retries: '3'
PUK2 retries: '10'
In this specific case, I rebooted after having stopped the modemmanager service, I shut down the phone, I inserted the SIM in slot 2, I booted again. I waited a bit (20 seconds?) after the pmOS logo and then I managed to login. I followed the manual steps as per instructions and I was asked for PIN, but the SIM wasn't unlocked and it kept asking the PIN again. Logs: 2023-03-27_mm2.log.bz2