PinePhone Pro modem disapear after resuming
Describe your issue
What's the expected behaviour?
No modem reset
What's the current behaviour?
Modem seems to be reset after suspend/resume
How to reproduce your issue?
Let the phone suspend and resume it
What device are you using?
pine64-pinephonepro
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v22.06
-
v21.12
(supported until 2022-07-12) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway)
Other
-
No environment ("none" in pmbootstrap) -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
fbkeyboard -
i3wm -
Sxmo (Xorg/Dwm) -
console UI -
framebufferphone
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)
2022-07-09
Additional information
The modem run on ADSP Version 30.006.30.006 and pinephone_modem_sdk 0.6.7
dmesg logs
[ 1115.196591] PM: suspend entry (s2idle)
[ 1115.247647] Filesystems sync: 0.051 seconds
[ 1115.248357] Freezing user space processes ... (elapsed 0.003 seconds) done.
[ 1115.252157] OOM killer disabled.
[ 1115.252163] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 1115.253904] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1115.392750] rk818-bat: suspend: dl=80 rl=100 c=418 v=4276 cap=2708 at=0 ch=1 st=cc cv
[ 1116.291249] rk818-bat: resume: dl=80 rl=101 c=367 v=4276 rv=4276 cap=2728 dt=193 at=0 ch=1 st=cc cv
[ 1116.294576] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] Not connected. Disabling cdn
[ 1116.396242] OOM killer enabled.
[ 1116.396253] Restarting tasks ... done.
[ 1116.400250] PM: suspend exit
[ 1116.445428] dw-mipi-dsi-rockchip ff960000.mipi: mode set
[ 1116.445808] panel-himax-hx8394 ff960000.mipi.0: prepare
[ 1116.634091] dw-mipi-dsi-rockchip ff960000.mipi: pre enable
[ 1116.634149] dw-mipi-dsi-rockchip ff960000.mipi: dw_mipi_dsi_phy_init / dw_mipi_dsi_rockchip_config: 00006258 => set=ffff0000
[ 1116.675088] dw-mipi-dsi-rockchip ff960000.mipi: mode 0
[ 1116.675167] dw-mipi-dsi-rockchip ff960000.mipi: enable
[ 1116.675181] dw-mipi-dsi-rockchip ff960000.mipi: mode 1
[ 1116.675200] panel-himax-hx8394 ff960000.mipi.0: enable
[ 1117.089662] panel-himax-hx8394 ff960000.mipi.0: disable
[ 1117.141884] dw-mipi-dsi-rockchip ff960000.mipi: disable
[ 1117.141895] dw-mipi-dsi-rockchip ff960000.mipi: post disable
[ 1117.141900] dw-mipi-dsi-rockchip ff960000.mipi: mode 0
[ 1117.141912] panel-himax-hx8394 ff960000.mipi.0: unprepare
[ 1117.360764] rk818-bat: changed: dsoc=81, rsoc=100, v=4276, ov=4194 c=364, cap=2708, f=2708, st=cc cv, hotdie=0
[ 1117.360810] rk818-bat: dl=66, rl=100, v=4276, halt=0, halt_n=2, max=0, init=0, sw=0, calib=0, below0=0, force=0
[ 1118.460950] dw-mipi-dsi-rockchip ff960000.mipi: mode set
[ 1118.461311] panel-himax-hx8394 ff960000.mipi.0: prepare
[ 1118.650017] dw-mipi-dsi-rockchip ff960000.mipi: pre enable
[ 1118.650066] dw-mipi-dsi-rockchip ff960000.mipi: dw_mipi_dsi_phy_init / dw_mipi_dsi_rockchip_config: 00006258 => set=ffff0000
[ 1118.690961] dw-mipi-dsi-rockchip ff960000.mipi: mode 0
[ 1118.691027] dw-mipi-dsi-rockchip ff960000.mipi: enable
[ 1118.691037] dw-mipi-dsi-rockchip ff960000.mipi: mode 1
[ 1118.691051] panel-himax-hx8394 ff960000.mipi.0: enable
[ 1126.013483] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 1126.013659] option 2-1:1.0: device disconnected
[ 1126.014866] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 1126.015032] option 2-1:1.1: device disconnected
[ 1126.023374] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 1126.023569] option 2-1:1.2: device disconnected
[ 1126.026416] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[ 1126.026601] option 2-1:1.3: device disconnected
[ 1126.035765] qmi_wwan 2-1:1.4 wwan0: unregister 'qmi_wwan' usb-fe3c0000.usb-1, WWAN/QMI device
[ 1126.075147] option 2-1:1.0: GSM modem (1-port) converter detected
[ 1126.075757] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 1126.076289] option 2-1:1.1: GSM modem (1-port) converter detected
[ 1126.076815] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 1126.077404] option 2-1:1.2: GSM modem (1-port) converter detected
[ 1126.077915] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 1126.078502] option 2-1:1.3: GSM modem (1-port) converter detected
[ 1126.079058] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 1126.081357] qmi_wwan 2-1:1.4: cdc-wdm0: USB WDM device
[ 1126.082914] qmi_wwan 2-1:1.4 wwan0: register 'qmi_wwan' at usb-fe3c0000.usb-1, WWAN/QMI device, da:6b:8d:a6:9e:63
[ 1163.760809] rk818-bat: changed: dsoc=82, rsoc=100, v=4277, ov=4194 c=352, cap=2708, f=2708, st=cc cv, hotdie=0
[ 1163.760855] rk818-bat: dl=66, rl=100, v=4276, halt=0, halt_n=2, max=0, init=0, sw=0, calib=0, below0=0, force=0
Each suspend/resume a new modem ID and bearer is created:
mmcli -m any
pine64-pinephonepro:~# mmcli -m any
error: couldn't find modem
pine64-pinephonepro:~# mmcli -m any
-----------------------------------
General | path: /org/freedesktop/ModemManager1/Modem/4
| device id: [Redacted]
-----------------------------------
Hardware | manufacturer: QUALCOMM INCORPORATED
| model: QUECTEL Mobile Broadband Module
| firmware revision: EG25GGBR07A08M2G
| carrier config: [Redacted]
| carrier config revision: [Redacted]
| h/w revision: 10000
| supported: gsm-umts, lte
| current: gsm-umts, lte
| equipment id: [Redacted]
-----------------------------------
System | device: /sys/devices/platform/fe3c0000.usb/usb2/2-1
| drivers: option, qmi_wwan
| plugin: quectel
| primary port: cdc-wdm0
| ports: cdc-wdm0 (qmi), ttyUSB0 (qcdm), ttyUSB1 (gps),
| ttyUSB2 (at), wwan0 (net)
-----------------------------------
Numbers | own: [Redacted]
-----------------------------------
Status | lock: sim-pin2
| unlock retries: sim-pin (5), sim-puk (10), sim-pin2 (5), sim-puk2 (10)
| state: registered
| power state: on
| access tech: lte
| signal quality: 49% (cached)
-----------------------------------
Modes | supported: allowed: 2g; preferred: none
| allowed: 3g; preferred: none
| allowed: 4g; preferred: none
| allowed: 2g, 3g; preferred: 3g
| allowed: 2g, 3g; preferred: 2g
| allowed: 2g, 4g; preferred: 4g
| allowed: 2g, 4g; preferred: 2g
| allowed: 3g, 4g; preferred: 4g
| allowed: 3g, 4g; preferred: 3g
| allowed: 2g, 3g, 4g; preferred: 4g
| allowed: 2g, 3g, 4g; preferred: 3g
| allowed: 2g, 3g, 4g; preferred: 2g
| current: allowed: 2g, 3g, 4g; preferred: 4g
-----------------------------------
Bands | supported: egsm, dcs, pcs, g850, utran-1, utran-4, utran-6, utran-5,
| utran-8, utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5,
| eutran-7, eutran-8, eutran-12, eutran-13, eutran-18, eutran-19,
| eutran-20, eutran-25, eutran-26, eutran-28, eutran-38, eutran-39,
| eutran-40, eutran-41, utran-19
| current: egsm, dcs, pcs, g850, utran-1, utran-4, utran-6, utran-5,
| utran-8, utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5,
| eutran-7, eutran-8, eutran-12, eutran-13, eutran-18, eutran-19,
| eutran-20, eutran-25, eutran-26, eutran-28, eutran-38, eutran-39,
| eutran-40, eutran-41, utran-19
-----------------------------------
IP | supported: ipv4, ipv6, ipv4v6
-----------------------------------
3GPP | imei: [Redacted]
| enabled locks: fixed-dialing
| operator id: [Redacted]
| operator name: [Redacted]
| registration: home
-----------------------------------
3GPP EPS | ue mode of operation: csps-1
| initial bearer path: /org/freedesktop/ModemManager1/Bearer/2
| initial bearer apn: ltemobile.apn
| initial bearer ip type: ipv4v6
-----------------------------------
SIM | primary sim path: /org/freedesktop/ModemManager1/SIM/2
| sim slot paths: slot 1: /org/freedesktop/ModemManager1/SIM/2 (active)
| slot 2: none