PINE64

Full Version: PineBook Pro seems to go to deep sleep, but doesn't wake up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
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
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.
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.
I had the same issue and was able to resolve by unplugging the battery from the board temporarily.
(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 :-)
(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.
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.
(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
(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.
Pages: 1 2