Hi folks, I am trying for couple of days now to put Lime1 to sleep and then wake it up, both by software and user interaction.
Problem description:
I am able to put board to sleep with any of the following commands:
rtcwake -m standby -s 10
echo "standby" > /sys/power/state
When device is on battery I can see it consuming ~0.7A while it works normally and once i execute one of the above commands it drops down to about ~0.25A leading me to conclusion that device has indeed in sleep.
Here is how I ran rtcwake to make sure RTC clock is up and running:
root@lime:/etc/systemd/system# hwclock -w
root@lime:/etc/systemd/system# hwclock
Mon 10 Sep 2018 08:21:03 PM UTC .218585 seconds
root@lime:/etc/systemd/system# hwclock
Mon 10 Sep 2018 08:21:09 PM UTC .338408 seconds
root@lime:/etc/systemd/system# sudo rtcwake -m standby -s 10
rtcwake: wakeup from "standby" using /dev/rtc0 at Mon Sep 10 20:21:39 2018
Once device is in sleep, I am not able to wake it up no matter what I do, only way to "recover" the device is to long press power button until it turns off (hard shutdown) (this happens with both rtcwake and /sys/power/state), then release and long press again to turn it on.
What have I tried:
I fiddled around with script.fex file to no avail. What I am using at the moment for pmu part is below (if you need other sections I can send them on, wanted to keep the post short...)
System information:
A20 processor on A10-OlinuXino-Lime Rev.E board without eMMC.
Downloaded and using "Desktop" image from https://www.armbian.com/olimex-lime/
U-Boot SPL 2017.11-armbian (Jan 25 2018 - 01:01:48)
root@lime:~# uname -a
Linux lime 3.4.113-sun7i #16 SMP PREEMPT Wed Jan 24 19:20:59 CET 2018 armv7l armv7l armv7l GNU/Linux
root@lime:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
Any idea what can I do to somehow wake up the device? Any other info I can provide?
Thanks for any help you can provide.