top | item 32608456 (no title) julienpalard | 3 years ago True. There's a demo prooving it: https://wiki.mobian-project.org/doku.php?id=wake-mobile(Tested on my PinePhone on Mobian: it works!) discuss order hn newest megous|3 years ago Yep, all the alarm clock program really needs to do for this to work, is to setup a timerfd with CLOCK_REALTIME_ALARM flag set.Then timer firing will wake the system.That's pretty much it. Standard Linux feature across all systems that support system suspend and RTC wakeup.man timerfd_create Arnavion|3 years ago And for non-systemd systems like postmarketOS, there's waked that writes directly to the RTC dev node directly for the same effect. pmos also patches gnome-clocks to use waked. load replies (1)
megous|3 years ago Yep, all the alarm clock program really needs to do for this to work, is to setup a timerfd with CLOCK_REALTIME_ALARM flag set.Then timer firing will wake the system.That's pretty much it. Standard Linux feature across all systems that support system suspend and RTC wakeup.man timerfd_create Arnavion|3 years ago And for non-systemd systems like postmarketOS, there's waked that writes directly to the RTC dev node directly for the same effect. pmos also patches gnome-clocks to use waked. load replies (1)
Arnavion|3 years ago And for non-systemd systems like postmarketOS, there's waked that writes directly to the RTC dev node directly for the same effect. pmos also patches gnome-clocks to use waked. load replies (1)
megous|3 years ago
Then timer firing will wake the system.
That's pretty much it. Standard Linux feature across all systems that support system suspend and RTC wakeup.
man timerfd_create
Arnavion|3 years ago