oh my god systemd timers let you configure them to automatically wake the machine when they're going to be executed
so i can configure it so that, every midnight, my laptop could wake up to execute a sync job
and by using StartCondition arguments i could make it only run the sync job if certain conditions were met, like being charging and on a network
i could also try having it wake the system and require network.target to be available instead of some awkward shell command! it's awesome
i would like to try and add a feature that enables something like lazy tasks that only get executed when certain conditions are met
and in order to prevent userspace taking up too much time, you could have it wake up the main system but not the specific userspace or user session "slice" (just a cgroup afaik) but leave init running and such
@doskel wait WHAT
@noisytoot in practice, set WakeSystem=true in a timer file. in hardware, it uses the same mechanism as rtcwake, which i believe is acpi tricks
@luana https://www.man7.org/linux/man-pages/man5/systemd.timer.5.html
WakeSystem=true and it Just Works
@doskel ohhh ok when itβs suspended, not powered off