• Lucy :3
    link
    fedilink
    3420 days ago

    Though you still have to suspend by yourself when you’re done.

    Does

    ExecPost=systemctl suspend
    

    work ?

    • Björn TantauOP
      link
      fedilink
      3620 days ago

      Probably.

      But what if the timer triggered during normal operation? Then your computer would suddenly suspend on its own and you wouldn’t know why.

      I’ve already made a feature request to only run when the system is suspended.

      Until then I’ll look at when the system woke up and if that was less than a minute ago turn off the display and suspend after everything is done.

      • Björn TantauOP
        link
        fedilink
        420 days ago

        Yes, do that a minute after everything else started but run the services themselves with systemd-inhibit (another nice thing I didn’t know exists) so that it only goes back to sleep when the last service is done.