loadavgd
Monitor CPU load and terminal activity, execute command when idle
...If the load is below a certain treshold and there is no input at any
(pseudo-) terminal for a given amount of time, an action is issued.
This action might be, for instance, "suspend". The D-Bus API of
systemd-logind is called to invoke an action. The daemon is configured
via a configuration file.