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
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 2,528 11-22-2023, 11:46 AM
Last Post: aLoop100o
  Unable to wake up from suspend xavi92 5 1,458 10-26-2023, 03:02 PM
Last Post: xavi92
  How to check if tow-boot is installed? jojuma 3 1,228 09-29-2023, 11:29 PM
Last Post: tllim
  Mobian boot failed with zstd message after upgrade. Mahgue 0 758 09-01-2023, 11:29 AM
Last Post: Mahgue
  Sound : notifications freelectro 6 2,321 06-07-2023, 01:03 AM
Last Post: freelectro
  4G data on default startup / boot dcinoz 1 945 04-29-2023, 11:24 PM
Last Post: dcinoz
  PinePhone won't boot after software update jb2000 2 1,522 03-17-2023, 07:26 AM
Last Post: Zebulon Walton
  Boot log analyses -> GPU no regulator (mali) found freelectro 0 1,052 03-06-2023, 12:06 PM
Last Post: freelectro
  boot gets stuck shortly after disk decryption vortex 8 4,382 02-13-2023, 02:11 AM
Last Post: sharase
  [solved] Black screen at boot time mdk 0 1,086 01-13-2023, 03:33 AM
Last Post: mdk

Forum Jump:


Users browsing this thread: 1 Guest(s)