autosuspend command not found

In this troubleshooting guide we learn how to fix autosuspend command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

autosuspend: command not found

or when using sudo you get the following error message

sudo: autosuspend: command not found

Solutions to autosuspend: command not found

How To Fix autosuspend: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu autosuspend is provided by autosuspend package.

autosuspend is:

A daemon to automatically suspend and wake up a system. Inactivity and wake up times are determined by a set of configurable checks. Autosuspend periodically executes these checks, and if none of them indicated activity, the system is suspended and automatically woken up if necessary.

Autosuspend does not depend on X11 and desktop environments and is therefore specifically intended for (home) servers. Most available checks address these usage scenarios. Yet, also the X11 idle time can be used as a check to support graphical use cases.

To fix this problem, we can install more using the command below.

sudo apt-get -y install autosuspend

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install autosuspend.

sudo apt -y install autosuspend

Or if you have aptitude installed you can use the following command.

sudo aptitude install autosuspend

Summary

In this tutorial we learn how to fix autosuspend command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.