Manjaro ARM 19.12 Official Release - PineBook Pro
(02-16-2020, 04:09 AM)geih Wrote: Hi all,

I'm running Manjaro (latest version, kernel 5.5.0-3.1) but S3 sleep was not working out of the box (used s2idle; dmesg was showing "PM: suspend entry (s2idle)").
Finally, I could get it running with the following steps:
  • adding "mem_sleep_default=deep" to the kernel command line (in /boot/boot.txt and then running mkscr); can be checked with:
Code:
[root@pinebookpro ~]# cat /sys/power/mem_sleep
 s2idle [deep]
  • changing the systemd-sleep settings in /etc/systemd/sleep.conf from "SuspendState=freeze" to "SuspendState=mem" (active after reboot or "systemctl daemon-reload")
Now, my system is using S3 sleep ("PM: suspend entry (deep)" in dmesg).

This is great, thank you for sharing!

Could you tell me where to add 'mem_sleep_default=deep' in boot.txt?

Code:
# After modifying, run ./mkscr

# MAC address (use spaces instead of colons)
setenv macaddr da 19 c8 7a 6d f4

part uuid ${devtype} ${devnum}:${bootpart} uuid
setenv bootargs console=ttyS2,1500000n8 root=PARTUUID=${uuid} rw rootwait bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash append video=eDP-1:1920x1080@60
setenv fdtfile rockchip/rk3399-pinebook-pro.dtb

if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/Image; then
 if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then
   fdt addr ${fdt_addr_r}
   fdt resize
   fdt set /ethernet@fe300000 local-mac-address "[${macaddr}]"
   if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img; then
     # This upstream Uboot doesn't support compresses cpio initrd, use kernel option to
     # load initramfs
     setenv bootargs ${bootargs} initrd=${ramdisk_addr_r},20M ramdisk_size=10M
   fi;
   booti ${kernel_addr_r} - ${fdt_addr_r};
 fi;
fi
I'm guessing at the very end after the end of the if but I prefer to check with you before I messed up with my installation.
My sleep function wasn't working either, but noticed after the last one or two updates... And I forgot to shut down before closing the case.... It resumes just fine, has has since!
Dennis Hoshield
PBPro/ANSI/Manjaro
(02-16-2020, 09:37 AM)hectorzg Wrote: Could you tell me where to add 'mem_sleep_default=deep' in boot.txt?
I added it to the end of line 7, the one which begins with "setenv bootargs console=ttyS2..."
(02-16-2020, 04:09 AM)geih Wrote: ...
Finally, I could get it running with the following steps:
  • adding "mem_sleep_default=deep" to the kernel command line (in /boot/boot.txt and then running mkscr); can be checked with:
Code:
[root@pinebookpro ~]# cat /sys/power/mem_sleep
 s2idle [deep]
  • changing the systemd-sleep settings in /etc/systemd/sleep.conf from "SuspendState=freeze" to "SuspendState=mem" (active after  reboot or "systemctl daemon-reload")
Now, my system is using S3 sleep ("PM: suspend entry (deep)" in dmesg).

Thanks geih! I only did the second of your two items and that changed it for me so that barely any power is used during sleep, whereas before, it seemed like barely any was being saved.
@pine73
Hey your Inbox is disabled so I cant reply to you through your PM.
I hope you must have resolved the deep sleep issue by follow the above post.

The Measurement during our test was ~40mA in S3 so in 50hrs you should only have around 1-2% of power drain.
We had made some changes to the suspend config so for those you cannot get suspend in s3 deepsleep then please update the system with `sudo pacman -Syyuu`
Thanks.
Manjaro ARM Team.
Devices: Pinebook Pro & PinePhone.
iirc suspend config is via systemd in the pinebookpro-post-install repo/package.
(02-17-2020, 02:46 AM)spikerguy Wrote: @pine73
Hey your Inbox is disabled so I cant reply to you through your PM.
I hope you must have resolved the deep sleep issue by follow the above post.

The Measurement during our test was ~40mA in S3 so in 50hrs you should only have around 1-2% of power drain.
We had made some changes to the suspend config so for those you cannot get suspend in s3 deepsleep then please update the system with `sudo pacman -Syyuu`
Thanks.

@geih , Thank you for the info on adjusting the sleep settings.  Got that implemented -- testing now.

@spikerguy , Thank you for staying on top of this topic! Much appreciated (and I fixed my PM!).
Hello guys,

After following @geih directions I have S3 sleep working only when I type 'systemctl suspend', hit fn+Esc or even when I click start > leave > sleep but when I close the lid it does the previous sleeping function that consumes a lot of battery charge.

I've looked online and played with /etc/systemd/logind.conf and /etc/systemd/sleep.conf , even changing it from KDE's Energy saving settings hasn't fix this.

I also tried reinstalling 'community/pinebookpro-post-install 20200202-1' but it didn't help.

Edit: I found out that when I close the laptop it goes to suspend and the screen turns off but after a couple of seconds it wakes up and shows the lockscreen, so it stays on wasting the battery with the lid closed.

I'm not sure what is causing this.
I've been struggling for quite some time to fix the S3 sleep with no luck.

I did fresh install, updated the system, updated with "pacman -Syyuu", reflashed u-boot as suggested by pacman, made sure "/etc/systemd/sleep.conf" sleep is set to "mem" instead of "freeze", checked the "/sys/power/mem_sleep" if its set to deep sleep, ensured that the kernel image contains the latest updates (CONFIG_ROCKCHIP_SIP, CONFIG_ROCKCHIP_SUSPEND_MODE), but no, whenever I put the laptop to sleep, it never wakes up, even using "rtcwake" to wake-up after some time, it doesn't work.

The deep sleep state is totally busted for me, no matter what I try. Followed everything people here say it should be done, but nop, nothing works, except the freeze sleep state.
(02-17-2020, 07:28 PM)xNix Wrote: I've been struggling for quite some time to fix the S3 sleep with no luck.

I did fresh install, updated the system, updated with "pacman -Syyuu", reflashed u-boot as suggested by pacman, made sure "/etc/systemd/sleep.conf" sleep is set to "mem" instead of "freeze", checked the "/sys/power/mem_sleep" if its set to deep sleep, ensured that the kernel image contains the latest updates (CONFIG_ROCKCHIP_SIP, CONFIG_ROCKCHIP_SUSPEND_MODE), but no, whenever I put the laptop to sleep, it never wakes up, even using "rtcwake" to wake-up after some time, it doesn't work.

The deep sleep state is totally busted for me, no matter what I try. Followed everything people here say it should be done, but nop, nothing works, except the freeze sleep state.

 @spikerguy  , @geih , I am in the same boat as @xNix . Followed all the recommendations, but still losing power in Suspend to the rate of 6% per hour. (+-)

Here's the "dmesg | grep suspend"

[12917.186214] PM: suspend entry (deep)

[12917.202835] dwmmc_rockchip fe310000.dwmmc: pre_suspend failed for non-removable host: -38
[12917.210256] printk: Suspending console(s) (use no_console_suspend to debug)
[12917.586553] vdd_log: Entering suspend 3, enabling forcibly, was on
[12917.655712] vbus_5vout: Entering suspend 3, disabling forcibly, was off
[12917.655731] vcc5v0_otg: Entering suspend 3, disabling forcibly, was on
[12917.655754] vcc3v3_panel: Entering suspend 3, disabling forcibly, was on
[12917.655768] vcc3v0_sd: Entering suspend 3, disabling forcibly, was on
[12917.655795] vcc5v0_usb: Entering suspend 3, disabling forcibly, was on
[12919.909163] PM: suspend exit

Here's "cat /sys/power/mem_sleep"
s2idle [deep]

ANY IDEAS what's going on?

Cheers!


Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgrading Armbian from v24.2.1 gnome, breaks pinebook pro Sb2024 0 107 11-10-2024, 02:50 PM
Last Post: Sb2024
  Pinebook pro won't boot after bootloader installation jwensouls 4 936 08-21-2024, 04:17 AM
Last Post: KC9UDX
  Official Debian support moonwalkers 64 64,263 07-08-2024, 01:40 PM
Last Post: Humid Stylus
  [Pinebook Pro/Mobian/XFCE4] can fix touch or screen in greeter not both SynthGal 0 401 05-31-2024, 09:42 AM
Last Post: SynthGal
  Debian on Pinebook Pro u974615 7 2,891 03-31-2024, 10:11 AM
Last Post: u974615
  Manjaro Sway Theme Broken Eighty8 1 796 03-08-2024, 08:41 AM
Last Post: tophneal
  Pinebook Pro upgrading from the factory image yamsoup 12 4,108 02-22-2024, 04:02 PM
Last Post: tllim
Question Manjaro with Full Disk Encryption and GRUB dumetrulo 1 2,316 02-02-2024, 02:45 AM
Last Post: frankkinney
  Manjaro network problem late 2023 acruhl 1 824 01-19-2024, 11:32 PM
Last Post: Kevin Kofler
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 3,219 12-13-2023, 07:22 PM
Last Post: trillobite

Forum Jump:


Users browsing this thread: 46 Guest(s)