gnome-clocks waking the phone via a waking daemon (POC)
#1
Hi,
I've heard that gnome is working on letting gnome-clocks wake up the phone but didn't find anything in that regard.

So i experimented a little bit myself and got it to work with a little dirty hack. I don't really know a lot about the gnome ecosystem, vala, dbus, flatpack etc. so it really is a mess  Big Grin but kinda working.

I first tried to write directly to /sys/class/rtc/rtc0/wakealarm from gnome-clocks when an alarm is changed but it outright refused to. Even with chmod-ing that file. I don't really know why but my guess it's b/c of some flatpack specific stuff.

So i wrote a small external program "waked" which let's other programs register alarms via dbus to wake up the system. It's just a little experiment and still relies on /sys/class/rtc/rtc0/wakealarm being chmodded but better then nothing. Running waked as root didn't work because then the dbus sessions didn't play nicely.

Then i slapped some spaghetti to gnome-clocks to register it's alarms in waked. Really messy, just a poc.

You can find the result here: https://gitlab.com/seath1
waked needs sdbus-cpp to build

What do you think, could that be a step in the right direction? I'm a bit surprised I couldn't find something existing to schedule rtc wakeups other than systemd timers which afaik doesn't let users add their own timers.
  Reply


Messages In This Thread
gnome-clocks waking the phone via a waking daemon (POC) - by seath - 02-27-2021, 09:49 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,644 09-09-2023, 09:49 AM
Last Post: WhiteHexagon
  Article: NuttX RTOS for PinePhone: Phone Calls and Text Messages lupyuen 2 1,447 05-03-2023, 05:03 PM
Last Post: lupyuen
  [Stupid Question] Where is the phone camera software?! newusername 5 2,962 10-10-2022, 03:58 AM
Last Post: newusername
Question New user/phone here - initial update issues sexywheat 2 1,739 06-29-2022, 04:27 PM
Last Post: sexywheat
  Which apps can I run on this phone? poppyhodler 2 2,314 06-07-2022, 12:18 PM
Last Post: jenniferjohn12
  Phone Operation which SW Realease (mute funtion)? scrwbigtek 0 853 05-25-2022, 07:35 AM
Last Post: scrwbigtek
Photo GNOME Display Orientation Unregistered Guest 0 762 05-20-2022, 06:09 AM
Last Post: Unregistered Guest
  Keyboard Case Power Management Daemon estokes 2 2,087 04-16-2022, 04:15 PM
Last Post: estokes
  Jami on the Pine phone ? bcnaz 7 5,719 04-03-2022, 12:10 PM
Last Post: Fish
  First time pine phone user Matt73 3 2,539 03-10-2022, 02:04 AM
Last Post: Matt73

Forum Jump:


Users browsing this thread: 1 Guest(s)