Power Managment: Suspend on WP7606

Hey,

I want to get my system into suspend mode. I stopped devMode and unplugged the usb cable.
The system then goes to supsend mode and only uses ~3mA. However it goes up to ~50mA every couple of seconds and then goes back to sleep. When it wakes up I get several of these kind of messages:
[ 4651.232216] Freezing of tasks aborted after 0.006 seconds
[ 4651.283368] Freezing of tasks aborted after 0.007 seconds
[ 4651.330270] Freezing of tasks aborted after 0.005 seconds
[ 4652.018113] Freezing of tasks aborted after 0.634 seconds

Checking /sys/kernel/debug/wakeup_sources and /sys/power/wake-lock both are empty.
What could be causing this frequent wake-up and how can I disable it?

Best regards,
Nico

1 Like

Does it relate to netwkork?
You can monitor current with radio off

Hey,

the wakeups still appear when I turn radio off.
When using dmesg I see a lot of the following:
[ 455.256808] Freezing of tasks aborted after 0.201 seconds
[ 455.261302] Restarting kernel threads … done.
[ 455.262551] Restarting tasks … done.
[ 455.282248] sierra_pm_resume
[ 455.282659] Abort: Pending Wakeup Sources: [timerfd]
I am not running any of my own apps. When I stop legato the wakeups don´t appear anymore and the system stays in supsend mode.

Can you stop the app one by one?

Which fw are you using?
Are you using mangoh red board?

I am using legato version 19.11.2 with a custom board.
By stopping the app one by one you mean stopping each running application after another?
I tried that but then the system reboots at one point.

do you see such issue in FW R13.3?

I saw this sometimes in FW R13.3, but not quite often

root@swi-mdm9x28-wp:~# [   65.061983] sierra_pm_resume, total sleep time = 121, startup_timer expired
[   66.822216] Freezing of tasks aborted after 0.337 seconds
[   66.909486] Freezing of tasks aborted after 0.007 seconds
[   67.004943] Freezing of tasks aborted after 0.003 seconds
[   67.097850] Freezing of tasks aborted after 0.007 seconds
[   67.187983] Freezing of tasks aborted after 0.007 seconds
[   67.350532] Freezing of tasks aborted after 0.073 seconds
[   68.132900] Freezing of tasks aborted after 0.689 seconds
[   68.238362] Freezing of tasks aborted after 0.010 seconds
[   69.111928] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[   71.155262] Freezing of tasks aborted after 2.834 seconds
[   71.498380] Freezing of tasks aborted after 0.259 seconds
[   71.708221] Freezing of tasks aborted after 0.118 seconds
[   71.868889] Freezing of tasks aborted after 0.080 seconds
[   72.041243] usb 1-1.1: device descriptor read/64, error -32
[   72.198000] Freezing of tasks aborted after 0.239 seconds
[   72.233702] usb 1-1.1: device descriptor read/64, error -32
[   73.059792] Freezing of tasks aborted after 0.770 seconds
[   73.370075] usb 1-1.1: device not accepting address 9, error -32
[   73.870806] usb 1-1.1: device not accepting address 10, error -32
[   73.877302] usb 1-1-port1: unable to enumerate USB device

Yes I see similar logs. Do you know what is causing this?

[  598.016201] Freezing of tasks aborted after 0.229 seconds
[  598.300882] usb 1-1: device descriptor read/64, error -110
[  598.465335] Freezing of tasks aborted after 0.407 seconds
[  599.197967] Freezing of tasks aborted after 0.692 seconds
[  599.331586] Freezing of tasks aborted after 0.093 seconds
[  601.399037] Freezing of tasks aborted after 2.027 seconds
[  601.701870] Freezing of tasks aborted after 0.264 seconds
[  601.771668] Freezing of tasks aborted after 0.025 seconds
[  601.877639] Freezing of tasks aborted after 0.065 seconds
[  601.918268] Freezing of tasks aborted after 0.003 seconds
[  601.954053] Freezing of tasks aborted after 0.007 seconds
[  602.067746] Freezing of tasks aborted after 0.073 seconds
[  602.246389] Freezing of tasks aborted after 0.141 seconds
[  602.519291] Freezing of tasks aborted after 0.233 seconds
[  602.743765] Freezing of tasks aborted after 0.156 seconds
[  604.810349] Freezing of tasks aborted after 2.017 seconds
[  605.260580] Freezing of tasks aborted after 0.409 seconds
[  605.643410] Freezing of tasks aborted after 0.341 seconds
[  605.780879] Freezing of tasks aborted after 0.095 seconds
[  606.049260] Freezing of tasks aborted after 0.226 seconds
[  606.490025] Freezing of tasks aborted after 0.402 seconds
[  606.714225] Freezing of tasks aborted after 0.186 seconds
[  607.353250] Freezing of tasks aborted after 0.597 seconds
[  609.310381] usb 1-1: device not accepting address 8, error -110
[  609.428251] Freezing of tasks aborted after 2.032 seconds
[  609.723771] Freezing of tasks aborted after 0.255 seconds
[  609.783670] Freezing of tasks aborted after 0.018 seconds
[  609.889301] Freezing of tasks aborted after 0.064 seconds
[  609.932191] Freezing of tasks aborted after 0.006 seconds
[  609.969757] Freezing of tasks aborted after 0.006 seconds
[  610.087100] Freezing of tasks aborted after 0.083 seconds
[  610.280665] Freezing of tasks aborted after 0.147 seconds
[  610.547620] Freezing of tasks aborted after 0.232 seconds
[  610.768442] Freezing of tasks aborted after 0.188 seconds
[  612.834118] Freezing of tasks aborted after 2.036 seconds
[  613.283735] Freezing of tasks aborted after 0.402 seconds
[  613.663181] Freezing of tasks aborted after 0.338 seconds
[  613.803121] Freezing of tasks aborted after 0.106 seconds
[  614.073505] Freezing of tasks aborted after 0.240 seconds
[  614.226563] Freezing of tasks aborted after 0.121 seconds
[  614.513640] Freezing of tasks aborted after 0.257 seconds
[  615.375350] Freezing of tasks aborted after 0.830 seconds
[  617.459966] Freezing of tasks aborted after 2.024 seconds
[  617.743730] Freezing of tasks aborted after 0.246 seconds
[  617.795813] Freezing of tasks aborted after 0.010 seconds
[  617.907610] Freezing of tasks aborted after 0.073 seconds
[  617.944207] Freezing of tasks aborted after 0.007 seconds
[  617.982596] Freezing of tasks aborted after 0.007 seconds
[  618.105451] Freezing of tasks aborted after 0.091 seconds
[  618.303000] Freezing of tasks aborted after 0.159 seconds
[  618.564667] Freezing of tasks aborted after 0.219 seconds
[  618.784901] Freezing of tasks aborted after 0.179 seconds
[  619.890756] usb 1-1: device not accepting address 9, error -110
[  619.896005] usb usb1-port1: unable to enumerate USB device

I don’t know, but at my side, I don’t see it output this frequently, just maybe first a few minutes.

on my side it goes to suspend after the message "
[ 619.896005] usb usb1-port1: unable to enumerate USB device"
comes and then wakes up after a couple of seconds. Only if I stop legato it stays in suspend mode.
I think it has something to do with timerfd that is being used by something from default legato. Could you figure out what is using this?

Did you see problem on fw r13.3?

I haven´t tried fw r13.3

Do you have any other suggestion? The thing is it is supposed to work on r19 as well, so it is not really a solution to roll back to r13.

if R13 still has problem on your board, but not seen on my board, then might be related hardware

Hi,

using R13 is unfortunately not an option and I don´t think it is hardware related since as soon as I turn off legato the suspend mode is working fine!

Can you tell me which of the following apps I can turn off?

[running] atAirVantage
[running] atQmiLinker
[running] atService
[running] audioService
[running] avcService
[running] cellNetService
[running] dataConnectionService
[running] devMode
[running] fwupdateService
[running] gpioService
[running] modemService
[running] portService
[running] positioningService
[running] powerMgr
[running] qmiAirVantage
[running] secStore
[running] spiService

I am trying to find out which of those apps is causing the system to wakeup, but I can´t just turn them off one by one, because the system reboots after some time when I stopped some apps. I guess there are some dependencies between certain apps, but I don´t find any information on it.

Thank you for your help,
Nico

You can check why the systrm reboots in logread