Autopoweroff is a daemon that is started at boot time, and which function is to run a command at a specific time, but only if some conditions are met.
Originally, this application would only shutdown the computer, thus its name, but now it can suspend, hibernate, or run any custom command provided by the user. Autopoweroff can run on the local computer and computers on the local network (will be useful on a home server) to configure the daemon, there is a convenient Python / GTK (Gnome) graphical user interface (GUI). Autopoweroff configuration requires administrator privileges (root). The computer will execute the command (suspend by default) if all the above conditions are met:
Any hosts that the computer is dependant on is not answering ping anymore.
No keyboard or mouse activity has been detected on the computer for a while.
The user has not disabled Autopoweroff.
Installation latest version into Linux Mint: 1. Download DEB file 2. Install and run from the menu May the Force be with you, Good Luck!!! https://github.com/deragon/autopoweroff