[...] no significant load during the last hour [...]
[...] no gui interaction [...] (especially with VNC [...]) [...]
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?
Dear Debian users,
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 think Windows can do it, but Windows does not allow multiple users
logged in at the same time, so it is an easier task.
- there is no significant load during the last hour (in order to
account for backup jobs)
Assuming this backup is started by an automated system under control of
the sysadmins, and not by the users themselves, it's probably easiest
to use some sort of "lock" that is set by the backup process itself (or
that you wrap around it).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 26:44:34 |
Calls: | 10,390 |
Calls today: | 1 |
Files: | 14,064 |
Messages: | 6,417,051 |