09-09-2021, 06:57 PM
The https://wiki.pine64.org/wiki/Crust is a good start. It points to a rtcwake that you could use.
Example for a python app to wake you after 10 seconds and keep memory active:
import subprocess
[Your Code]
myProcess = subprocess.Popen(["rtcwake", "-m", "mem", "-s", "10", ""], stdout=subprocess.PIPE)
[More of your code]
rtcwake usually works but sometimes the Pine Phone gets into one of it's moods and stays asleep.
Side note: I find using man [command] to pull up a commands manpage to be very helpful when in Linux Land.
Example for a python app to wake you after 10 seconds and keep memory active:
import subprocess
[Your Code]
myProcess = subprocess.Popen(["rtcwake", "-m", "mem", "-s", "10", ""], stdout=subprocess.PIPE)
[More of your code]
rtcwake usually works but sometimes the Pine Phone gets into one of it's moods and stays asleep.
Side note: I find using man [command] to pull up a commands manpage to be very helpful when in Linux Land.