* Felix Natter <fnat...@gmx.net> [24-12/07=Sa 20:27 +0100]: > [...] no significant load during the last hour [...]
The system doesn't keep track of load for a full hour, but it does for fifteen minutes. uptime|awk '{print $NF}' is load average for the past 15 minutes. > [...] no gui interaction [...] (especially with VNC [...]) [...] That's a lot harder. Theoretically `w` shows idle time, but I'm not sure you can trust it with layers of GUI interaction. Full original post: > I am looking for an automatic suspend-to-ram (I know "sudo systemctl > suspend" ;-)) solution for workstations: I would like the system to > suspend if and only if: > > - there is no gui interaction from any user (especially with VNC > sessions) AND > > - there is no significant load during the last hour (in order to account > for backup jobs) > > I am using the mate desktop, if that makes any difference. > Of course the desktop must be locked before suspension. > > Maybe systemd can support this in coop with the DE? > > I think Windows can do it, but Windows does not allow multiple users > logged in at the same time, so it is an easier task. > > Am I asking too much?