Help: Pinebook Pro will not enter sleep [Manjaro 20.04]
#31
(09-04-2020, 11:04 AM)feoh Wrote:
(09-04-2020, 10:58 AM)tophneal Wrote:
(09-04-2020, 10:25 AM)feoh Wrote: Hi. I did a bunch of hunting around and couldn't find anything like this.

To be honest, the fact that I have to full shut down and cold boot this laptop really reduces its utility.

Could you please provide a link to what you're talking about? Or to anything that will let me shut the lid and not have my battery dead when I come back in the morning? Smile

Thanks in advance

https://github.com/mrfixit2001/updates_r...filesystem

you need trust, uboot, and idbloader. you can also use the last section of the update script to write it to you emmc.

Thanks a bunch for the reply. Much appreciated. I think I'll try the SleepMode=mem trick and see if that works, and if it doesn't I'll consider this approach. I'd want to get cozy enough with the various firmware utilities and the like that I'd be confident I could get back to a working state if something went wrong.
What is the SleepMode=mem trick and did it work for you?
  Reply
#32
>What is the SleepMode=mem trick and did it work for you?
in /etc/systemd/sleep.conf
Suspend 3 (sometimes called s3 or s2ram), so far, is the ONLY worthwhile sleep
All others are barely better than screen blanking
Usually ALSO need a bsp uboot, for that version of trust
manjaro was 1st to have a kernel that "worked",,tsy kernel
Elementary uses this kernel, updated uboot no good, have to change (to get s3)
Fedora 32 also works, haven't updated recently so???
xmix's kernel supposedly also works
NO OTHERS (that I know of) can do s3
FWIW,,,,,, if you have more info,, post,,, look for "suspend 3" in dmesg
(and NOT s2idle)
--edit--
BTW if you have nvme, don't bother, pcie driver won't suspend
Really smart to back up 1st 16m BEFORE an upgrade, just in case a new uboot is "not so good", sometimes gets installed 'behind your back'
(and remember,,, if you have a 'working' uboot on emmc, that is the 1 that will ALWAYS be used, whatever uboot is on SD will be ignored,,,
so if you install SD -> emmc, you may well have changed uboots without realizing)
  Reply
#33
(10-19-2020, 07:36 PM)wdt Wrote: >What is the SleepMode=mem trick and did it work for you?
in /etc/systemd/sleep.conf
Suspend 3 (sometimes called s3 or s2ram), so far, is the ONLY worthwhile sleep
All others are barely better than screen blanking
Usually ALSO need a bsp uboot, for that version of trust
manjaro was 1st to have a kernel that "worked",,tsy kernel
Elementary uses this kernel, updated uboot no good, have to change (to get s3)
Fedora 32  also works, haven't updated recently so???
xmix's kernel supposedly also works
NO OTHERS (that I know of) can do s3
FWIW,,,,,, if you have more info,, post,,, look for "suspend 3" in dmesg
(and NOT s2idle)
--edit--
BTW if you have nvme, don't bother, pcie driver won't suspend
Really smart to back up 1st 16m BEFORE an upgrade, just in case a new uboot is "not so good", sometimes gets installed 'behind your back'
I'm running Manjaro, if I understand you correctly it should be able to go into S3?

Here are the contents of /etc/systemd/sleep.conf, what do I need to change? I saw someone mention commenting out the SuspendState=freeze line...

[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
SuspendState=freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=180min
  Reply
#34
In mine,,, SuspendState=mem
Then poweroff, reboot, suspend, wake,,,, dmesg |grep suspend OR s2idle
there should be perhaps 8 lines for suspend, half will say suspend 3,, and NO lines for s2idle
manjaro has a bsp uboot, you may need to install it (uboot-pinebookpro-bsp)
_I_ generally use mrfixit's uboot
  Reply
#35
(10-19-2020, 08:37 PM)wdt Wrote: In mine,,, SuspendState=mem
Then poweroff, reboot, suspend, wake,,,, dmesg |grep suspend OR s2idle
there should be perhaps 8 lines for suspend, half will say suspend 3,, and NO lines for s2idle
manjaro has a bsp uboot, you may need to install it (uboot-pinebookpro-bsp)
_I_ generally use mrfixit's uboot

I'll give it a try, thank you.

I keep seeing this mrfixit all over these boards, but when I looked at the git page the last update was almost a year ago. Does it not matter if it doesn't get updated? Could running an old mrfixit uboot cause problems later on?
  Reply
#36
How old is the bios in your x86 box?
uboot is equivalent to rudimentary bios
  Reply
#37
(10-19-2020, 09:27 PM)wdt Wrote: How old is the bios in your x86 box?
uboot is equivalent to rudimentary bios

Ok, that makes sense. I thought it was like a bootloader for a traditional linux distro. Still very new to linux-on-ARM (but I'm loving it so far).
  Reply
#38
It is also a boot loader, again a bit rudimentary, searches in boot_target order
Is there something there? is there boot.scr or extlinux.conf in / or /boot or extlinux/?
(to account for 1 or 2 partition distros),, searching every partition (until it finds one, extlinux or boot.scr)
then read where to copy (to mem) dtb and Image, then transfer to kernel (Image)
Because of the sleep thing (ATF), something (of uboot) must still be resident
  Reply
#39
(10-19-2020, 06:15 PM)MeLikeyTacos Wrote:
(09-04-2020, 11:04 AM)feoh Wrote:
(09-04-2020, 10:58 AM)tophneal Wrote:
(09-04-2020, 10:25 AM)feoh Wrote: Hi. I did a bunch of hunting around and couldn't find anything like this.

To be honest, the fact that I have to full shut down and cold boot this laptop really reduces its utility.

Could you please provide a link to what you're talking about? Or to anything that will let me shut the lid and not have my battery dead when I come back in the morning? Smile

Thanks in advance

https://github.com/mrfixit2001/updates_r...filesystem

you need trust, uboot, and idbloader. you can also use the last section of the update script to write it to you emmc.

Thanks a bunch for the reply. Much appreciated. I think I'll try the SleepMode=mem trick and see if that works, and if it doesn't I'll consider this approach. I'd want to get cozy enough with the various firmware utilities and the like that I'd be confident I could get back to a working state if something went wrong.
What is the SleepMode=mem trick and did it work for you?

I was wrong. Ultimately it did not work and I ended up scrambling my emmc so hard I had to boot off of SD with the emmc switch turned off on the motherboard in order for it not to just go red LED on me and stay that way forever.

I got my system booting normally again by buying/installing t5he 128GB emmc and installing a fresh Manjaro to it.

I've just come to the conclusion that the Pinebook Pro is an experimental FLOSS project and can't be seen as an actual consumer ready laptop. I've been much happier since I did. With Manjaro booting from cold start in well under 2m, this has been a reasonable work-around, at least during the pandemic when I'm mostly house bound. We'll see how things change when I need to travel again.
  Reply
#40
(10-19-2020, 08:02 PM)MeLikeyTacos Wrote:
(10-19-2020, 07:36 PM)wdt Wrote: >What is the SleepMode=mem trick and did it work for you?
in /etc/systemd/sleep.conf
Suspend 3 (sometimes called s3 or s2ram), so far, is the ONLY worthwhile sleep
All others are barely better than screen blanking
Usually ALSO need a bsp uboot, for that version of trust
manjaro was 1st to have a kernel that "worked",,tsy kernel
Elementary uses this kernel, updated uboot no good, have to change (to get s3)
Fedora 32  also works, haven't updated recently so???
xmix's kernel supposedly also works
NO OTHERS (that I know of) can do s3
FWIW,,,,,, if you have more info,, post,,, look for "suspend 3" in dmesg
(and NOT s2idle)
--edit--
BTW if you have nvme, don't bother, pcie driver won't suspend
Really smart to back up 1st 16m BEFORE an upgrade, just in case a new uboot is "not so good", sometimes gets installed 'behind your back'
I'm running Manjaro, if I understand you correctly it should be able to go into S3?

Here are the contents of /etc/systemd/sleep.conf, what do I need to change? I saw someone mention commenting out the SuspendState=freeze line...

[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
SuspendState=freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=180min


You can only get S3 through writing bsp uboot (in the manjaro repos or mrfixits) mainline uboot only allows for S2.

If you write bsp to your emmc any OS from SD can then be set to also utilize S3, too. Battery still gets eaten if the booted OS is on SD, but it’s about half as much as S2 on the emmc.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  An unofficial Debian Installer for Pinebook Pro danielt 430 151,511 6 hours ago
Last Post: ab1jx
  OpenMandriva to release ARM builds for PineBook Pro and Pi ludix 8 760 Yesterday, 04:38 PM
Last Post: wdt
Heart PBP Arrives Tmmro, Manjaro 20.12 xfce, Seeking Install Notes/Tips/Tricks/Advice SpaceLord 3 120 02-25-2021, 05:37 PM
Last Post: pbpanon
  Manjaro ARM 20.04 spikerguy 65 32,881 02-23-2021, 03:22 PM
Last Post: markifi
Question Manjaro arm + sway - battery indicator broken mfashby 6 489 02-20-2021, 04:07 AM
Last Post: mfashby
  Manjaro Dim Display (Brightness 40%) After Every System Reboot runlinux.run 2 187 02-15-2021, 07:04 PM
Last Post: MtnSk8
  postmarketOS/Alpine edge image for the Pinebook Pro MartijnBraam 62 31,320 02-14-2021, 12:25 PM
Last Post: pmjohann
  Pinebook Pro wifi not working seyo-iv 1 188 02-01-2021, 11:00 AM
Last Post: seyo-iv
  slarm64 (unofficial slackware) Pinebook Pro RK3399 (aarch64) mara 25 3,539 01-30-2021, 11:03 AM
Last Post: mara
Bug Manjaro - KDE/Plasma - Random Crash Anarethos 1 406 01-26-2021, 01:44 PM
Last Post: FFabian

Forum Jump:


Users browsing this thread: 1 Guest(s)