gnome-clocks waking the phone via a waking daemon (POC)
#3
Yes I saw the his app albeit just after I tried this approach.

Looks like he is using the systemd timer approach. Seems like hes escalating privileges with a helper utility.
In contrast I guess using a daemon could have the benefit of letting multiple programs schedule wake-ups in an unified manner.
For example the alarms from the clock and events from the calendar etc. maybe even build a system for permissions, which apps are allowed to wake up the phone in the long run.

For now I changed it to run as a service via systemd and use the system bus in dbus. I added PKGBUILDs to the repo to ease up the installation if someone wants to try.
The service needs to be started/enabled via

Code:
systemctl enable waked
# then reboot or
systemctl start waked
But be warned it's very janky.
1. That gnome-clocks version doesn't remove registered wake-ups when you delete or deactivate an alarm
2. waked atm only reschedules the next wake-up if called from outside. (Which that gnome-clocks version does minutely if running and at least one active alarm present when an alarm fires or gets changed otherwise)
3. waked forgets all registered alarm on reboot or if the service gets restarted one way or another
4. don't know if it plays nicely if systemd timers (or other stuff managing rtc wake-ups) are present.

Edit1: updated gnome-clocks-waked
  Reply


Messages In This Thread
RE: gnome-clocks waking the phone via a waking daemon (POC) - by seath - 02-28-2021, 09:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly lupyuen 64 15,574 09-09-2023, 09:49 AM
Last Post: WhiteHexagon
  Article: NuttX RTOS for PinePhone: Phone Calls and Text Messages lupyuen 2 1,443 05-03-2023, 05:03 PM
Last Post: lupyuen
  [Stupid Question] Where is the phone camera software?! newusername 5 2,947 10-10-2022, 03:58 AM
Last Post: newusername
Question New user/phone here - initial update issues sexywheat 2 1,735 06-29-2022, 04:27 PM
Last Post: sexywheat
  Which apps can I run on this phone? poppyhodler 2 2,304 06-07-2022, 12:18 PM
Last Post: jenniferjohn12
  Phone Operation which SW Realease (mute funtion)? scrwbigtek 0 852 05-25-2022, 07:35 AM
Last Post: scrwbigtek
Photo GNOME Display Orientation Unregistered Guest 0 761 05-20-2022, 06:09 AM
Last Post: Unregistered Guest
  Keyboard Case Power Management Daemon estokes 2 2,080 04-16-2022, 04:15 PM
Last Post: estokes
  Jami on the Pine phone ? bcnaz 7 5,704 04-03-2022, 12:10 PM
Last Post: Fish
  First time pine phone user Matt73 3 2,526 03-10-2022, 02:04 AM
Last Post: Matt73

Forum Jump:


Users browsing this thread: 1 Guest(s)