Installation instructions

autosuspend is designed for Python 3 and does not work with Python 2.

Note

After installation, do not forget to enable and start autosuspend vis systemd as described in systemd integration.

Requirements

The minimal requirements are.

Additionally, the some checks need further dependencies to function properly. Please refer to Available activity checks for individual requirements.

If checks using URLs to load data should support file:// URLs, requests-file is needed.

Binary packages

https://repology.org/badge/vertical-allrepos/autosuspend.svg

Debian

Installation from official package sources:

apt-get install autosuspend

Archlinux (AUR)

autosuspend is available as an Archlinux AUR package.

Installation via aurman:

aurman|yay -S autosuspend

Other AUR helpers may be used, too.

Gentoo

Patrick Holthaus has provided an ebuild for Gentoo in his overlay. You can use it as follows:

eselect repository enable pholthaus-overlay
emaint sync -r pholthaus-overlay
emerge sys-apps/autosuspend

Other distributions

In case you want to generate a package for a different Linux distribution, I’d be glad to hear about that.

Manual installation

autosuspend is a usual Python package and hence can be installed using the common Python packaging tools. Briefly, the following steps can be used to install autosuspend from source in a system-wide location (as root user):

python3 -m venv /opt/autosuspend
/opt/autosuspend/bin/pip install git+https://github.com/languitar/autosuspend.git@<tag or branch>#egg=autosuspend[all]

Note

Replace the angle brackets with desired Git tag or branch. Use master for the latest development release.

Note

The all in the square brackets ensures that autosuspend is installed with all optional dependencies. That way all available checks can be used. In case you only need a subset of optional requirements, replace all with a comma-separated list of package extras. The names of these extras can be found in setup.py.

Afterwards, copy the systemd unit files found in /opt/autosuspend/lib/systemd/system/ to /etc/systemd and adapt the contained paths to the installation location.