Conversation

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

5
2
0

friendly reminder the computer is fucking awesome sometimes

0
1
0

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

2
1
0

i would like to try and add a feature that enables something like lazy tasks that only get executed when certain conditions are met

0
1
0

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

0
1
0

πŸ³οΈβ€πŸŒˆπŸŽƒπŸ‡§πŸ‡·LuanaπŸ‡§πŸ‡·πŸŽƒπŸ³οΈβ€πŸŒˆ

@doskel wait WHAT

1
1
0

@doskel @luana 😭 so cruel

oh my god systemd timers let you configure them to automatically wake the machine when they're going to be executed ...

0
2
0

@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

0
2
0

πŸ³οΈβ€πŸŒˆπŸŽƒπŸ‡§πŸ‡·LuanaπŸ‡§πŸ‡·πŸŽƒπŸ³οΈβ€πŸŒˆ

@doskel ohhh ok when it’s suspended, not powered off

0
1
0