Does tow-boot allow periodic wake from suspension to check for notifications?
#3
Text messages are a bit different - the modem wakes the phone when they are received, so there's no need to poll. Periodic wakes have nothing to do with tow-boot (or any other bootloader) AFAIK, since the system is already booted. Wakes on RTC time can be scheduled, but mostly aren't at the moment. Something in the suspend process needs to be aware of when the phone next needs to wake (for alarm, polling stuff or whatever) and set the next wake time before the suspend happens. Once woken anything that needs to poll actually needs to do so without undue delay, while avoiding slowing things down if the phone has woken for a phone call, so there needs to be some awareness of the wake reason. Finally the suspending daemon needs to be aware of this and suspend again quickly once everything has been polled rather than waiting for a normal suspend timeout. So far as I know we have no APIs for any of this, or daemons that implement it.

https://gitlab.gnome.org/kailueke/wake-mobile is a proof of concept for the RTC wakes, and Birdie has taken the idea a bit further.

PmOS has an experimental daemon that can be used to schedule wakes, and patches to gnome-clocks so that wakes get set for alarms.
https://gitlab.com/seath1/waked
https://git.alpinelinux.org/aports/tree/...s?h=master

https://github.com/vkraven/rtcsyncwake-pinephone is something broadly similar with a kde leaning.

It's possible one of these could form the basis of something more general, but this will need work convincing various upstream projects to go with it if it's to be of any real use. You're either going to need apps to be aware of the API, or have a way that a separate daemon can prod them to poll, and be notified when they're done.
  Reply


Messages In This Thread
RE: Does tow-boot allow periodic wake from suspension to check for notifications? - by wibble - 05-24-2022, 08:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  troubleshooting sleep/wake button on trixie biketool 5 434 05-04-2025, 08:11 PM
Last Post: Kevin Kofler
  boot gets stuck shortly after disk decryption vortex 9 7,275 09-11-2024, 05:40 AM
Last Post: normangraves
  Unable to wake up from suspend xavi92 6 3,819 07-28-2024, 02:48 PM
Last Post: dchang0
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 5,387 11-22-2023, 11:46 AM
Last Post: aLoop100o
  How to check if tow-boot is installed? jojuma 3 2,400 09-29-2023, 11:29 PM
Last Post: tllim
  Mobian boot failed with zstd message after upgrade. Mahgue 0 1,274 09-01-2023, 11:29 AM
Last Post: Mahgue
  Sound : notifications freelectro 6 4,288 06-07-2023, 01:03 AM
Last Post: freelectro
  4G data on default startup / boot dcinoz 1 1,539 04-29-2023, 11:24 PM
Last Post: dcinoz
  PinePhone won't boot after software update jb2000 2 2,437 03-17-2023, 07:26 AM
Last Post: Zebulon Walton
  Boot log analyses -> GPU no regulator (mali) found freelectro 0 1,677 03-06-2023, 12:06 PM
Last Post: freelectro

Forum Jump:


Users browsing this thread: 1 Guest(s)