PineBook Pro seems to go to deep sleep, but doesn't wake up
#1
Hello,

is sleep supposed to work on the manjaro arm image?

I have installed the latest Manjaro KDE for PineBook pro 22.06 (5.18 kernel) and am using tow-boot 2021.10-004.

I have tried external mice, pressing all keys, the power button, touchpad etc. but the only thing that makes the pbp turn on again is holding the power button to completely turn it off and pressing it again to turn it on. Am I supposed to install anything (like patches) or change the config?


if anyone has any ideas on how to fix sleep, I would appreciate it.


output from

Quote:journalctl | grep suspend
Code:
avg 09 18:00:28 nik-pc systemd-sleep[8619]: Entering sleep state 'suspend'...
avg 09 18:00:28 nik-pc kernel: PM: suspend entry (deep)
avg 09 19:12:35 nik-pc systemd-sleep[6152]: Entering sleep state 'suspend'...
avg 09 19:12:35 nik-pc kernel: PM: suspend entry (deep)
avg 09 19:24:39 nik-pc systemd-sleep[1343]: Entering sleep state 'suspend'...
avg 09 19:24:39 nik-pc kernel: PM: suspend entry (deep)
avg 09 20:09:25 nik-pc systemd-sleep[1595]: Entering sleep state 'suspend'...
avg 09 20:09:25 nik-pc kernel: PM: suspend entry (deep)
avg 09 20:20:49 nik-pc systemd-sleep[1808]: Entering sleep state 'suspend'...
avg 09 20:20:49 nik-pc kernel: PM: suspend entry (deep)
avg 09 20:23:50 nik-pc systemd-sleep[1136]: Entering sleep state 'suspend'...
avg 09 20:23:50 nik-pc kernel: PM: suspend entry (deep)
avg 09 20:37:46 nik-pc sudo[1058]:     nikd : TTY=pts/0 ; PWD=/home/nikd ; USER=root ; COMMAND=/bin/systemctl suspend
avg 09 20:37:47 nik-pc systemd-sleep[1082]: Entering sleep state 'suspend'...
avg 09 20:37:47 nik-pc kernel: PM: suspend entry (deep)
avg 09 20:47:23 nik-pc kernel: PM: suspend entry (deep)
this is my /etc/systemd/sleep.conf

Code:
[Sleep]
AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
SuspendState=mem
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=180min
  Reply
#2
My experience,,, about 1/3 - 1/2 distos seem to enter sleep,
but never wake up. So you actually have NO idea if it is working
So, clearly a defective sleep
BTW, many screen magnets are in wrong place, must be set to ignore
(and power set to ask, all in systemsettings5)
My sleep,,, tap power, wait 2s, right arrow to sleep, enter
To wake, tap power
I suspect your problem is the kernel version, I don't think later ones have sleep patch
It (kernel) must have pinebookpro OR PBP in name,,late 5.6, 5.7 or 5.8
I think the last has been dropped
Let me know if any later version works
BTW, your sleep.conf looks right
  Reply
#3
I installed the current Manjaro image today. Same problem: Fn-Escape makes it go to sleep, but nothing wakes it up.

Hard to restart it, too. I think it involves holding power for 5 secs or so, and later another press?

```
$ uname -a
Linux pinebookpro 6.1.2-1-MANJARO-ARM #1 SMP PREEMPT ...
```

The manual said to use "GENERIC" image, as pinebookpro image of manjaro is no longer available, so that's what I did.

DietPi distro was even worse: no sound, no function keys, no backlight control.

Man, this pinebook pro is neigh unusable.
  Reply
#4
I had the same problem when I installed tow-boot to the SPI flash.  Suspend/resume would work fine with the Manjaro image on the eMMC but would fail to resume after tow-boot was installed.  I don't know why (I came here to ask about a similar situation), but zeroing out the SPI flash worked for me.
  Reply
#5
I had the same issue and was able to resolve by unplugging the battery from the board temporarily.
  Reply
#6
(04-19-2023, 03:42 PM)mensingma Wrote: I had the same issue and was able to resolve by unplugging the battery from the board temporarily.

Can you clarify? What distro, what bootloader, what kernel? I am happy to use any distro that will sleep / wake reliably :-)
  Reply
#7
(04-21-2023, 03:45 PM)rik-shaw Wrote:
(04-19-2023, 03:42 PM)mensingma Wrote: I had the same issue and was able to resolve by unplugging the battery from the board temporarily.

Can you clarify? What distro, what bootloader, what kernel? I am happy to use any distro that will sleep / wake reliably :-)

That is finally the case for me with u-boot 2023.04 (ATF 2.8.0) and kernel 6.2 without any battery shenanigans. At least with eMMC, didn't try with NVMe.
  Reply
#8
Suspend seems to work for me on recent Armbian version, with XFCE desktop. I can go to menu -> Log Out -> Suspend and it seems to work. Subsequently pressing power button resumes.

In addition, closing lid seems to blank the screen, and opening it turns it back on. I don't think it is suspending in this case, but not sure.
Cheers,
TRS-80

What is Free Software and why is it so important for society?

Protocols, not Platforms

For the most Linux-y experience on your Linux phone, try SXMO!

Since 2023-04-01 I became Armbian Maintainer for PineBook Pro (no it's not April Fool's joke! Big Grin )
  Reply
#9
(04-26-2023, 02:49 AM)jpalus Wrote:
(04-21-2023, 03:45 PM)rik-shaw Wrote:
(04-19-2023, 03:42 PM)mensingma Wrote: I had the same issue and was able to resolve by unplugging the battery from the board temporarily.

Can you clarify? What distro, what bootloader, what kernel? I am happy to use any distro that will sleep / wake reliably :-)

That is finally the case for me with u-boot 2023.04 (ATF 2.8.0) and kernel 6.2 without any battery shenanigans. At least with eMMC, didn't try with NVMe.

Is this different from a standard u-boot installation? I'm trying to figure out if I should want to uninstall tow-boot and switch back to u-boot
  Reply
#10
(07-05-2023, 01:53 PM)kebab Wrote:
(04-26-2023, 02:49 AM)jpalus Wrote:
(04-21-2023, 03:45 PM)rik-shaw Wrote:
(04-19-2023, 03:42 PM)mensingma Wrote: I had the same issue and was able to resolve by unplugging the battery from the board temporarily.

Can you clarify? What distro, what bootloader, what kernel? I am happy to use any distro that will sleep / wake reliably :-)

That is finally the case for me with u-boot 2023.04 (ATF 2.8.0) and kernel 6.2 without any battery shenanigans. At least with eMMC, didn't try with NVMe.

Is this different from a standard u-boot installation? I'm trying to figure out if I should want to uninstall tow-boot and switch back to u-boot

I'm using "standard" mainline u-boot.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sleep and external display - Are there any options? chris88233 7 386 09-04-2023, 09:03 PM
Last Post: wdt
  Would a Pinebook Pro be good for a Linux newbie? cassado10 6 505 08-08-2023, 04:58 AM
Last Post: moobythegoldensock
  Install deepin OS on pinebook pro wangyukunshan 4 665 08-07-2023, 01:12 PM
Last Post: myself600
  Kali Linux for Pinebook Pro - stuck on the login screen owaspfap 0 289 07-13-2023, 05:21 PM
Last Post: owaspfap
  OpenCL on pinebook Pro Bram 2 503 06-30-2023, 08:50 PM
Last Post: scurrvy2020
  Kali Linux for Pinebook Pro Luke 100 141,921 05-03-2023, 06:10 AM
Last Post: dachalife
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 5 981 03-21-2023, 11:21 PM
Last Post: calinb
  slarm64 (unofficial slackware) Pinebook Pro RK3399 (aarch64) mara 41 33,845 03-18-2023, 04:39 AM
Last Post: mara
  With the help of a friend, I installed a beautiful deep os distribution, but I won't wangyukunshan 0 363 03-03-2023, 10:56 PM
Last Post: wangyukunshan
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 2 1,129 12-31-2022, 12:18 PM
Last Post: pine4546464

Forum Jump:


Users browsing this thread: 1 Guest(s)