Available checks¶
The following checks for activity are currently implemented. Each of the is described with its available configuration options and required optional dependencies.
Mpd¶
Checks whether an instance of MPD is currently playing music.
Options¶
-
host
¶
Host containing the MPD daemon, default:
localhost
-
port
¶
Port to connect to the MPD daemon, default:
6600
-
timeout
¶
Request timeout in seconds, default:
5
Requirements¶
Kodi¶
Checks whether an instance of Kodi is currently playing.
Users¶
Checks whether a user currently logged in at the system matches several criteria. All provided criteria must match to indicate activity on the host.
Options¶
All regular expressions are applied against the full string. Capturing substrings needs to be explicitly enabled using wildcard matching.
-
name
¶
A regular expression specifying which users to capture, default:
.*
.
-
terminal
¶
A regular expression specifying the terminal on which the user needs to be logged in, default:
.*
.
-
host
¶
A regular expression specifying the host from which a user needs to be logged in, default:
.*
.
Requirements¶
Processes¶
If currently running processes match an expression, the suspend will be blocked. You might use this to hinder the system from suspending when for example your rsync runs.
Requirements¶
ActiveConnection¶
Checks whether there is currently a client connected to a TCP server at certain ports. Can be used to e.g. block suspending the system in case SSH users are connected or a web server is used by clients.
Requirements¶
XIdleTime¶
Checks whether all active local X displays have been idle for a sufficiently long time. This assumes a recent operating system where the X server is started with user permissions (i.e. not as root).
Options¶
-
timeout
¶
required idle time in seconds
-
ignore_if_process
¶
a regular expression to match against the process names executed by each X session owner. In case the use has a process running, which matches against this expression, the X idle time is ignore and the check continues as if there was no activity. This can be useful in case of processes which inevitabl