![Android 13.x IMX8MQ evk 上的 USB 从挂起状态唤醒](https://linux22.com/image/225842/Android%2013.x%20IMX8MQ%20evk%20%E4%B8%8A%E7%9A%84%20USB%20%E4%BB%8E%E6%8C%82%E8%B5%B7%E7%8A%B6%E6%80%81%E5%94%A4%E9%86%92.png)
我无法在 IMX8MQ evk 上使用 Android 的 USB 唤醒功能。
我正在使用以下设置:
-Imx8mq EVK
-Android 13
-Kernel 5.15.71-dirty
-GSM modem is attached via USB
我在 adb shell 中设置了以下配置
$echo auto > /sys/bus/usb/devices/1-1/power/control
$echo enabled > /sys/bus/usb/devices/1-1/power/wakeup
然后我使用以下命令来暂停Android
$ echo freeze > sys/power/state
这会使 Android 进入挂起状态,但如果我在调制解调器上发送短信或呼叫,则 Android 不会唤醒。我必须使用 imx8mq 板上的开/关按钮将其唤醒。
dmesg 日志显示
[ 261.447647] [ T2070] PM: suspend entry (s2idle)
[ 261.492072] [ T2070] Filesystems sync: 0.039 seconds
[ 261.497027] [ T2070] Freezing user space processes ... (elapsed 0.003 seconds) done.
[ 261.508140] [ T2070] OOM killer disabled.
[ 261.512084] [ T2070] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
[ 261.527000] [ T2070] [drm] Reg val is 0x0080
[ 261.635878] [ T2070] [drm] hdmi phy shutdown complete
[ 261.688235] [ T143] android_work: sent uevent USB_STATE=DISCONNECTED
[ 332.909844] [ C0] PM: pm_system_irq_wakeup: 37 triggered 30370000.snvs:snvs-powerkey
[ 332.931925] [ T2070] [drm] Pixel clock: 148500 KHz, character clock: 148500, bpc is 8-bit, fmt 1
[ 332.940661] [ T2070] [drm] VCO frequency is 5940000 KHz
[ 332.995653] [ T2070] [drm] Mode: 1920x1080p148500
[ 333.039877] [ T2070] [drm] Pixel clock: 148500 KHz, character clock: 148500, bpc is 8-bit, fmt 1
[ 333.048594] [ T2070] [drm] VCO frequency is 5940000 KHz
[ 333.131966] [ T2070] [drm] No vendor infoframe
[ 333.374189] [ T2070] OOM killer enabled.
[ 333.378069] [ T2070] Restarting tasks ... done.
[ 333.386479] [ T2070] Resume caused by IRQ 37, 30370000.snvs:snvs-powerkey
[ 333.390998] [ T419] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400000 fc=4000000 cc=32 chg=au
[ 333.393671] [ T2070] PM: suspend exit
[ 333.526105] [ T143] android_work: did not send uevent (0 0 0000000000000000)
[ 333.526243] [ T552] read descriptors
[ 333.538834] [ T552] read strings
[ 334.389181] [ T1] init: Untracked pid 2070 exited with status 0
[ 334.396626] [ T1] init: Untracked pid 2070 did not have an associated service entry and will not be reaped
[ 334.498085] [ T20] android_work: sent uevent USB_STATE=CONNECTED
[ 334.649956] [ T20] android_work: sent uevent USB_STATE=CONFIGURED
USB 枚举
[ 53.799900] [ T20] usb 1-1.3: new high-speed USB device number 5 using xhci-hcd
[ 53.909564] [ T20] usb 1-1.3: New USB device found, idVendor=1546, idProduct=1342, bcdDevice= 0.00
[ 53.918672] [ T20] usb 1-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 54.099461] [ T20] option 1-1.3:1.0: GSM modem (1-port) converter detected
[ 54.107372] [ T20] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 54.117025] [ T20] option 1-1.3:1.1: GSM modem (1-port) converter detected
[ 54.125232] [ T20] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 54.134651] [ T20] option 1-1.3:1.2: GSM modem (1-port) converter detected
[ 54.142854] [ T20] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[ 54.152350] [ T20] option 1-1.3:1.3: GSM modem (1-port) converter detected
[ 54.160511] [ T20] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[ 54.194934] [ T20] qmi_wwan 1-1.3:1.4: cdc-wdm0: USB WDM device
[ 54.208145] [ T20] qmi_wwan 1-1.3:1.4 wwan0: register 'qmi_wwan' at usb-xhci-hcd.0.auto-1.3, WWAN/QMI device, 02:4f:9d:5b:0b:f3
我想知道我在这里做错了什么以及我应该如何调查这个问题。