Help: Pinebook Pro will not enter sleep [Manjaro 20.04]
#11
(06-04-2020, 10:00 AM)tophneal Wrote:
(06-04-2020, 09:51 AM)sleepingsysadmin Wrote: When I configure for Deep suspend to ram (which is the ideal option) it does seem to go into deep suspend; but then I cannot unsuspend and similarly need to hold power button to shutdown.

To get s3 to work correctly, replace the mainline u-boot on your install with the BSP u-boot from mrfixit's v2 branch. There's a link in the wiki to the files.

I couldn't find the appropriate files; I found BSP in the repo which had me remove the old BSP and provided me 3 dd options to flash. Unfortunately, ended up unbootable.

I grabbed Armbian which includes BSP and S3 works right out of the gate.
  Reply
#12
(06-05-2020, 07:00 AM)sleepingsysadmin Wrote: I couldn't find the appropriate files; I found BSP in the repo which had me remove the old BSP and provided me 3 dd options to flash. Unfortunately, ended up unbootable.

I grabbed Armbian which includes BSP and S3 works right out of the gate.

Yes, you're supposed to write all 3 of those files.

Glad you got it, though! In case you want to hop distros down the line, or anyone else reading this thread wants BSP u-boot to utilize S3, here is a link to the section of the wiki with links to BSP u-boot files and scripts to flash them: https://wiki.pine64.org/index.php/Pinebo...root_drive
  Reply
#13
After upgrading idbloader.img, uboot.img and trust.img from https://github.com/mrfixit2001/updates_repo/tree/v2.0 my pinebook is still using s2idle

Code:
Jun 05 18:15:18 utin systemd-sleep[12816]: Suspending system...
Jun 05 18:15:18 utin kernel: PM: suspend entry (s2idle)
Jun 05 18:15:31 utin kernel: Filesystems sync: 0.009 seconds

s3 is correctly selected:


Code:
[root@utin ovv]# cat /sys/power/mem_sleep
s2idle [deep]


Is there a way to check I have the correct uboot version and / or anything else needed to enable S3 ?
  Reply
#14
It appears on manjaro KDE systemd is configured to force suspend to s2idle even if s3 is available

commenting this line in `/etc/systemd/sleep.conf` enable s3 for me


Code:
SuspendState=freeze
  Reply
#15
Just a couple of words of warning for others looking at this thread in the future:

- The mrfixit script to update the uboot does other things beyond flashing the uboot. It's probably a good idea to do this manually if you're using a non-mrfixit distro, like I was on Manjaro. After using mrfixit's script on my installation, I also ended up with an unbootable installation and had to start over from the SD.

These are the relevant commands from mrfixit's script. Worked for me but naturally YMMV so proceed with caution:


Code:
SYSPART=$(findmnt -n -o SOURCE /)
DEVID=$(echo $SYSPART | sed -e s+'p[0-9]$'+''+)
sudo dd if=Downloads/idbloader.img of=$DEVID bs=32k seek=1 conv=fsync
sudo dd if=Downloads/uboot.img of=$DEVID bs=64k seek=128 conv=fsync
sudo dd if=Downloads/trust.img of=$DEVID bs=64k seek=192 conv=fsync


Naturally you'll need the three img files mentioned which you can find in mrfixit's v2 branch.

- On a second note, after using his uboot s3 sleep works... sometimes. I've had all kinds of strange behavior. After sleeping I was once left without bluetooth or wifi (even after trying to sleep and wake multiple times) and I still occasionally get failures to sleep. I've been trying to narrow it down. The first failure to sleep I experienced was right after installing the synaptics driver for the touchpad. However, after uninstalling I still couldn't sleep. Afterwards I tried disabling wifi, bluetooth, etc and re-enabling one by one and it looks like it might be related to having bluetooth on and using a bluetooth mouse, but I'm not 100% sure yet.

Either way, proceed with caution and you shall have some form of sleep working which is better than nothing Smile
  Reply
#16
(06-05-2020, 07:04 AM)tophneal Wrote:
(06-05-2020, 07:00 AM)sleepingsysadmin Wrote: I couldn't find the appropriate files; I found BSP in the repo which had me remove the old BSP and provided me 3 dd options to flash. Unfortunately, ended up unbootable.

I grabbed Armbian which includes BSP and S3 works right out of the gate.

Yes, you're supposed to write all 3 of those files.

Glad you got it, though! In case you want to hop distros down the line, or anyone else reading this thread wants BSP u-boot to utilize S3, here is a link to the section of the wiki with links to BSP u-boot files and scripts to flash them: https://wiki.pine64.org/index.php/Pinebo...root_drive

I had new troubles with Armbian; not that unexpected.

Long story short, ended up bricking my pinebook pro going this route. Power button doesnt seem to do anything. unplugged battery for some time. Reset button on board doesnt do anything.

New problem Sad
  Reply
#17
Can you still boot from sd?
  Reply
#18
(06-07-2020, 03:34 PM)tophneal Wrote: Can you still boot from sd?

No, not sure what I did wrong. SD and USB both dont work. The green power light just never flicks on. My theory is SPI flash soft locked but then reset/recovery buttons also do nothing.
  Reply
#19
Try an "extra long press" (pwr button)
Due to a SD card mix-up, I had something like this, a few months ago
When I found the "secret" I went thru a few cycles (I couldn't believe my eyes!!)
20+ seconds, for my device ~22s,, I know, in print, it's supposed to be 15s
1st time do for 30s, to be sure (if it is too short, nothing happens)
  Reply
#20
(06-08-2020, 06:23 AM)sleepingsysadmin Wrote: No, not sure what I did wrong. SD and USB both dont work. The green power light just never flicks on. My theory is SPI flash soft locked but then reset/recovery buttons also do nothing.

It likely isn't SPI, unless you tried writing a bootloader to it. SPI is empty OOTB.

Luckily, your PBP probably isn't bricked, but there may be a problem with eMMC or install on it. Have you checked to make sure the eMMC is fully seated on the board? Sometimes, they can get jostled and unseated, causing sporadic issues in booting. You can also try to boot from an SD if you use the internal switch to disable the eMMC. If you can do that, you're certainly not bricked. Once booted through SD you can use the switch to enable the eMMC again, and use a few commands (in the wiki) to rebind the eMMC for writing.

If after restoring or reinstalling to the eMMC, if you'd like to use BSP uboot to get s3 sleep, I'd suggest using pcm720's u-boot with ArgleBargle's script, as outlined in the previously linked wiki section.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  An unofficial Debian Installer for Pinebook Pro danielt 430 151,493 6 hours ago
Last Post: ab1jx
  OpenMandriva to release ARM builds for PineBook Pro and Pi ludix 8 757 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,879 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,318 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,538 01-30-2021, 11:03 AM
Last Post: mara
Bug Manjaro - KDE/Plasma - Random Crash Anarethos 1 405 01-26-2021, 01:44 PM
Last Post: FFabian

Forum Jump:


Users browsing this thread: 1 Guest(s)