PINE64
no wakeup from deep-sleep - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: no wakeup from deep-sleep (/showthread.php?tid=16932)



no wakeup from deep-sleep - jsch - 06-28-2022

Hello

On one out of ten occasions the phone does not wake up from deep sleep. This started one week ago. Is this a known issue (which has a workaround/cure)?
Hardware: OG-PP
OS: Bookworm

Pressing the power button (short), call the phone number, plug in power supply, nothing wakes the system up again.
Only a hard reboot (pressing the power button long) brings it bake to life.

last log entries:
Code:
Jun 28 23:16:56 mobian systemd[1]: Reached target Sleep.
Jun 28 23:16:56 mobian systemd[1]: Starting System Suspend...
Jun 28 23:16:56 mobian systemd-sleep[4075]: Entering sleep state 'suspend'...
Jun 28 23:16:56 mobian kernel: PM: suspend entry (deep)



RE: no wakeup from deep-sleep - treebeard - 06-28-2022

(06-28-2022, 03:53 PM)jsch Wrote: Hello

On one out of ten occasions the phone does not wake up from deep sleep. This started one week ago. Is this a known issue (which has a workaround/cure)?
Hardware: OG-PP
OS: Bookworm

Pressing the power button (short), call the phone number, plug in power supply, nothing wakes the system up again.
Only a hard reboot (pressing the power button long) brings it bake to life.

I see that same thing once in a while and don't have a clue to the cause.  About 1/3 of the forced reboots result in the phone starting with the clock at Jan 26 2022 @ 17:35.  I've no idea where that timestamp comes from.


RE: no wakeup from deep-sleep - biketool - 07-01-2022

bookworm stable or unstable?

I also deal with having to hold power off 10sec to reboot quite often to get out of deep sleep, system lockups, as well as finding my phone waiting at the unlock EMMC screen(from apparent reboot).

If my issue is memory errors(3gb RAM/32gb EMMC system board) I wish there were an app to tweak CPU, memory, and GPU clock speeds/voltages; maybe even an automagical SD card image to determing fastest safe speeds vs error crashes.


RE: no wakeup from deep-sleep - jsch - 07-02-2022

I have installed the image from staging (5.15.50) yesterday. Since the new kernel is installed, the phone did not had wake-up issues.
According to https://packages.mobian.org/ this version already made it's path from staging to bookworm stable.


RE: no wakeup from deep-sleep - jsch - 07-02-2022

It was working fine one day (w/ 5.15.50), but now it happened twice within a few hours. So the issue is not solved w/ 5.15.50.


RE: no wakeup from deep-sleep - jsch - 07-10-2022

It did not even help downgrading the kernel (to a version which was active when I didn't face the issue) or removing some software (which was installed the last weeks), hence it seemed to be caused by something different.
Once I removed the micro-SD card (system is installed on eMMC) the issue didn't happen again. 23 resumes could be triggered since last reboot.

Can someone facing the same issue (no wake-up after suspend) confirm this approach is working?


RE: no wakeup from deep-sleep - treebeard - 07-10-2022

(07-10-2022, 08:23 AM)jsch Wrote: It did not even help downgrading the kernel (to a version which was active when I didn't face the issue) or removing some software (which was installed the last weeks), hence it seemed to be caused by something different.
Once I removed the micro-SD card (system is installed on eMMC) the issue didn't happen again. 23 resumes could be triggered since last reboot.

Can someone facing the same issue (no wake-up after suspend) confirm this approach is working?

I rarely have an SD card inserted, yet have the problem.  I've recently upgraded the modem firmware from the original Quectel v01.001.01.001 to Biktorgj's stuff + ADSP v01.002 and that didn't help (not that I expected it to).  I don't recall when this issue started for me but my earliest recorded instance is Feb 2022.  I've been on Bookworm (with full-disk encryption) since Sep '21 and do a dist-upgrade every 2-3 weeks.


RE: no wakeup from deep-sleep - treebeard - 08-06-2022

For what it's worth, I've reviewed many failure-to-wake issues in various gitlabs and saw several reports of people letting the phone sit for 5-15 minutes after it failed to wake, and on retry it did sometimes wake. Something to try, if you can wait.


RE: no wakeup from deep-sleep - jsch - 09-05-2022

Some of the events I recorded as "no wake from sleep" could also be caused by the system shutting down unexpected, especially after a phone call. According to https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2482 it is no longer required to have wys installed (if you have callaudiod installed and if your phone is a pinephone(pro) ).



Install callaudiod (and library), it is most probably already installed.


Code:
sudo apt-get install callaudiod libcallaudio-0-1




Disable wys (it can't be removed due to dependencies). If it's only disabled/masked as user mobian, then it will show up w/ user root again.



Code:
systemctl --user disable wys
systemctl --user mask wys

sudo systemctl --user disable wys
sudo systemctl --user mask wys




After a reboot, verify that there is really no wys service active.




Code:
pgrep wys
This should return no output.







In addition to that, I upgraded my kernel to 5.15.63 (now it's 5.15.64). One of the official patches for 5.15.63 holds a fix for zram issue, maybe that's the culprit regarding the deep sleeps?