Which Khadas SBC do you use?
VIM3 pro
Which system do you use? Android, Ubuntu, OOWOW or others?
Android 13.x.x
Which version of system do you use? Khadas official images, self built images, or others?
self built images with kernel version 5.10. and 6.1.
Please describe your issue below:
Hi, I am unable to use USB wake-up feature of Android on VIM3.
I am using the following setup:
-VIM3 pro
-Android 13
-Kernel 5.10 and 6.1 also
-GSM modem is attached via USB
I have set the following configurations in adb shell
$echo auto > /sys/bus/usb/devices/1-1/power/control
$echo enabled > /sys/bus/usb/devices/1-1/power/wakeup
$echo auto > /sys/bus/usb/devices/1-1.1/power/control //attached to the GSM modem
$echo enabled > /sys/bus/usb/devices/1-1.1/power/wakeup
Then I use the following command to suspend the Android
$ echo freeze > sys/power/state
This makes the Android go to suspended state but if I send SMS or Call on the modem then Android doesn’t wakeup. All the usb ports (1-1) are suspended. I have to reboot the board otherwise it does not respond.
I have performed the similar experiment on the Linux ubuntu 22.04 with kernel version 6.2 and 6.1, it works well on Linux. it does wake up on SMS, mouse movement and keyboard button press.
Post a console log of your issue below:
Here are the kernel logs of the experiment performed on Linux machine.
[71944.140876] PM: suspend entry (s2idle)
[71944.353336] Filesystems sync: 0.212 seconds
[71944.354323] Freezing user space processes ... (elapsed 0.003 seconds) done.
[71944.357936] OOM killer disabled.
[71944.357938] Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
[71944.358819] printk: Suspending console(s) (use no_console_suspend to debug)
[71944.362281] serial 00:01: disabled
[71944.362344] e1000e: EEE TX LPI TIMER: 00000011
[71944.390763] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[71944.462818] sd 0:0:0:0: [sda] Stopping disk
[71946.882903] intel_pch_thermal 0000:00:14.2: Wakeup event detected, abort cooling
[71946.925624] sd 0:0:0:0: [sda] Starting disk
[71946.929125] ACPI BIOS Error (bug): AE_AML_BUFFER_LIMIT, Field [DRQL] at bit offset/length 136/8 exceeds size of target Buffer (128 bits) (20220331/dsopcode-198)
[71946.929133] No Local Variables are initialized for Method [DSRS]
[71946.929135] Initialized Arguments for Method [DSRS]: (2 arguments defined for method invocation)
[71946.929136] Arg0: 00000000be38700b <Obj> Buffer(16) 47 01 F8 03 FF 03 00 08
[71946.929146] Arg1: 0000000097daaf3f <Obj> Integer 0000000000000000
[71946.929151] ACPI Error: Aborting method \_SB.PCI0.LPCB.SIO1.DSRS due to previous error (AE_AML_BUFFER_LIMIT) (20220331/psparse-529)
[71946.929159] ACPI Error: Aborting method \_SB.PCI0.LPCB.UAR1._SRS due to previous error (AE_AML_BUFFER_LIMIT) (20220331/psparse-529)
[71946.929166] serial 00:01: activation failed
[71946.929167] serial 00:01: PM: dpm_run_callback(): pnp_bus_resume+0x0/0xb0 returns -5
[71946.929173] serial 00:01: PM: failed to resume: error -5
[71947.239448] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[71947.239475] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[71947.239499] ata4: SATA link down (SStatus 4 SControl 300)
[71947.239522] ata3: SATA link down (SStatus 4 SControl 300)
[71947.249139] ata2.00: configured for UDMA/133
[71948.547453] ata1.00: configured for UDMA/133
[71948.584141] OOM killer enabled.
[71948.584146] Restarting tasks ... done.
[71948.590836] random: crng reseeded on system resumption
[71948.591084] video LNXVIDEO:00: Restoring backlight state
[71948.591089] PM: suspend exit
///////////////////////////
As android does not wakeup after freeze so I have reboot the VIM3 therefore unable to take the kernel log in the suspended state.