Power consumption and suspend to ram
#11
Quote:So it seems that suspend to disk isn't trivial on ARM.
as anything not done. ARM as an architecture brings zero complication to that.
Quote:And indeed it seems that suspend to ram / sleep is not putting the cpu to sleep...
then it's not suspend to ram. all S states do put all CPUs off. not idle, not deep sleep, not anything but full off.

and honestly, again, until Rockchip jumps ACPI, this won't change. because all these efforts (manjaro) are mimicking. for STR, a capable firmware is needed, on PCs, this is done by the BIOS,UEFI/ACPI and the OS. manjaro here, hardly would do anything. for hibernation, it could be made by the OS purely, but eh, you do see how it goes.
ANT - my hobby OS for x86 and ARM.
#12
Ok, so no real STR. But if others can get 7% battery loss in 24 hrs, and I get about 10x that, what can I do?
#13
Just tried again, 12 hrs and battery went from 91% to 37%, so a 54% drain in 12 hrs standby, not very usable...

I also tried charging with the supplied power adapter on the barrel port, instead of via the USB-C port - I figured it might actually have something wrongly configured, so I charged that way, then did a reboot off the charger. Alas, still very high battery drain for only half a day on suspend to ram.

I just checked the tablet (which doesn't get use since I now use the PBP), it was at 100% on the 15th, got a couple of hours of use and is now at 66%... Also ARM based, so much more should be possible,...
#14
If you have manjaro (and perhaps mrfixit's uboot)
https://forum.pine64.org/showthread.php?...48&page=19
, & page before and after may give some help
#15
use bsp uboot
use kernel 5.6+
configure /etc/systemd/sleep.conf with SuspendState=mem and disable hibernation.
#16
Ok, that's very helpful, thanks!

uname tells me I have kernel 5.7.0-1-MANJARO-ARM, and I installed bsp uboot: uboot-pinebookpro-bsp (1.5-7), which tells me this at the end of the installation:
A new U-Boot version needs to be flashed our install drive. Please use lsblk to determine your drive, before proceeding.
You can do this by running:
# dd if=/boot/idbloader.img of=/dev/mmcblkX seek=64 conv=notrunc
# dd if=/boot/uboot.img of=/dev/mmcblkX seek=16384 conv=notrunc
# dd if=/boot/trust.img of=/dev/mmcblkX seek=24576 conv=notrunc
Transaction successfully finished.

lsblk outputs this:
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk2 179:0 0 58.2G 0 disk
├─mmcblk2p1 179:1 0 213.6M 0 part /boot
└─mmcblk2p2 179:2 0 58G 0 part /
mmcblk2boot0 179:32 0 4M 1 disk
mmcblk2boot1 179:64 0 4M 1 disk
zram0 252:0 0 5.6G 0 disk [SWAP]

So I figure I should move on to this (as root):
# dd if=/boot/idbloader.img of=/dev/mmcblk2boot0 seek=64 conv=notrunc

which unfortunately results in this:
dd: writing to '/dev/mmcblk2boot0': Operation not permitted
1+0 records in
0+0 records out
0 bytes copied, 0.00123433 s, 0.0 kB/s

?
What am I missing?

I have read lots of pages, mostly to be sure which device to dd to... but this is unclear to me.
#17
Quote:# dd if=/boot/idbloader.img of=/dev/mmcblk2boot0 seek=64 conv=notrunc

You should dd to `/dev/mmcblk2` not `/dev/mmcblk2boot0`:

Code:
# dd if=/boot/idbloader.img of=/dev/mmcblk2 seek=64 conv=notrunc
# dd if=/boot/uboot.img of=/dev/mmcblk2 seek=16384 conv=notrunc
# dd if=/boot/trust.img of=/dev/mmcblk2 seek=24576 conv=notrunc
#18
also, i would use mrfixit bsp-based uboot. i have a script that does this for you in pbp-tools.
#19
Thanks a million, that helped. I just triggered the suspend and it managed to wake up again (after pressing the power button, not just opening the lid as it was before - which is perfectly fine with me).

Since it's late, I only did the correct dd commands as Jason mentioned.

xmixahlx, what would the mrfixit bsp-based uboot bring to the table that I don't have now? I'm on Manjaro, 3 week old pbp, software up to date. Thanks.


Edit: just checked, after 10 hours of sleep (the laptop, I got fewer), the battery went from 56% to 54%...!
:-D
#20
(06-20-2020, 03:20 PM)robt Wrote: Thanks a million, that helped. I just triggered the suspend and it managed to wake up again (after pressing the power button, not just opening the lid as it was before - which is perfectly fine with me).

Since it's late, I only did the correct dd commands as Jason mentioned.

xmixahlx, what would the mrfixit bsp-based uboot bring to the table that I don't have now? I'm on Manjaro, 3 week old pbp, software up to date. Thanks.


Edit: just checked, after 10 hours of sleep (the laptop, I got fewer), the battery went from 56% to 54%...!
:-D

Does sound work for you after waking up from suspend? Deep sleep is working for me, but I can't get sound working after a resume. Anyone else seeing this issue?


Possibly Related Threads…
Thread Author Replies Views Last Post
  Lockable-until-power-cycle persistent storage Melab 0 1,012 09-17-2023, 08:51 PM
Last Post: Melab
  power on Pinebook Pro mainboard without keyboard? papable 0 1,109 07-20-2023, 11:06 PM
Last Post: papable
  When does Pinebook Pro power LED go on? Bram 0 877 03-14-2023, 09:53 AM
Last Post: Bram
  Doesn’t power on after flashing emmc badguru 3 1,796 02-25-2023, 09:00 PM
Last Post: badguru
Heart Now better battery life or power management? KC9UDX 5 3,098 09-09-2022, 08:13 PM
Last Post: KC9UDX
  high battery drain on suspend/poweroff wiz 5 6,027 02-10-2022, 11:52 AM
Last Post: wdt
  Replacement Power Cord recommendation? nathanielwheeler 3 3,833 01-23-2021, 06:43 PM
Last Post: KC9UDX
  power light blinking during charge when pbpro is off Idaho 0 2,036 01-04-2021, 10:53 AM
Last Post: Idaho
  Taming the power switch? ab1jx 4 5,479 11-30-2020, 10:57 PM
Last Post: rimaille
Exclamation Seemingly lost power permanently now /cry jimsurvak 2 3,501 11-16-2020, 06:22 PM
Last Post: jimsurvak

Forum Jump:


Users browsing this thread: 2 Guest(s)