autosuspend

Synopsis

autosuspend [options]

Description

autosuspend is a daemon that periodically that suspends a system on inactivity. For this purpose, it periodically iterates a number of user-configurable checks, which shall indicate whether a certain activity on the host is currently present that should prevent the host from suspending. In case one of the checks indicates such activity, no action is taken and periodic checking continues. Otherwise, in case no activity can be detected, this state needs to be present for a specified amount of time before the host is suspended by autosuspend.

If not specified via a command line argument, autosuspend looks for a default configuration at /etc/autosuspend.conf. autosuspend.conf(5) describes the configuration file, the available checks, and their configuration options.

Options

-h, --help

Displays an online help.

-c FILE, --config FILE

Specifies an alternate config file to use instead of the default on at /etc/autosuspend.conf.

-a, --allchecks

Usually, autosuspend stops checks in each iteration as soon as the first matching check indicates system activity. If this flag is set, all subsequent checks are still executed. Usefull mostly for debugging purposes.

-r SECONDS, --runfor SECONDS

If specified, do not run endlessly. Instead, operate only for the specified amount of seconds, then exit. Usefull mostly for debugging purposes.

-l [FILE], --logging [FILE]

If used without a file argument, enable debug logging (use as last argument). If used with a file, configure logging with the provided logging file. This file needs to follow the conventions for Python logging files.

Bugs

Please report bugs at the project repository at https://github.com/languitar/autosuspend.

See also

autosuspend.conf(5)