Pine phone CPU sleep
#4
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.
  Reply


Messages In This Thread
Pine phone CPU sleep - by katesfb - 09-08-2021, 04:47 AM
RE: Pine phone CPU sleep - by wibble - 09-08-2021, 08:53 AM
RE: Pine phone CPU sleep - by katesfb - 09-08-2021, 04:00 PM
RE: Pine phone CPU sleep - by NW_Dev - 09-09-2021, 06:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  My new phone stopped working. gunnygee 3 2,278 12-12-2024, 01:21 PM
Last Post: biketool
  Pine Phone in Australaa and Telstra tracyanne 2 1,375 12-06-2024, 02:42 AM
Last Post: tracyanne
  Can't complete update of manjaro: wwan0 stays disabled; no phone/text gilford 3 1,505 12-05-2024, 06:42 AM
Last Post: gilford
  2G, 3G still is in phone. Piotr Bujakowski 5 2,983 09-19-2024, 03:49 AM
Last Post: jennybaso
  Looking for the "non-phone" OS wakyct 7 4,835 03-14-2024, 03:51 AM
Last Post: MTXP
  Writing apps/programs for pine phone katesfb 7 8,454 03-11-2024, 10:42 PM
Last Post: Emelia525
  How To Access the Pine Phone Auxillary microSD Without Removing Card pinephoneuser22 2 2,363 01-09-2024, 07:02 PM
Last Post: britelite
  Pine company idea aular 9 5,034 12-07-2023, 12:32 AM
Last Post: KC9UDX
  Can the Pine Phone be serviced and updated remotely? profileyourcity 3 2,586 10-02-2023, 05:19 PM
Last Post: Zebulon Walton
  UBports on pine phone? robb777 16 10,305 09-01-2023, 04:26 AM
Last Post: gregb49

Forum Jump:


Users browsing this thread: 1 Guest(s)