by julienpalard · 4y ago · 0 comments
(Tested on my PinePhone on Mobian: it works!)
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
I wonder if waked writing directly to RTC doesn't break the kernel alarm functionality used by timerfd, but hopefully not https://gitlab.com/seath1/waked/-/blob/master/src/main.cpp#L...
But why not, it's FOSS. :)
But yes, I don't know why waked uses the dev node directly instead of using CLOCK_ALARM, and it's definitely possible it interferes with anything else going through the kernel using CLOCK_ALARM.