lm-profiler command not found

In this troubleshooting guide we learn how to fix lm-profiler command not found error message

Introduction

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

lm-profiler: command not found

or when using sudo you get the following error message

sudo: lm-profiler: command not found

Solutions to lm-profiler: command not found

How To Fix lm-profiler: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu lm-profiler is provided by laptop-mode-tools package.

laptop-mode-tools is:

Laptop mode is a Linux kernel feature that allows your laptop to save considerable power, by allowing the hard drive to spin down for longer periods of time. This package contains the userland scripts that are needed to enable laptop mode.

It includes support for automatically enabling laptop mode when the computer is working on batteries. It also supports various other power management features, such as starting and stopping daemons depending on power mode, automatically hibernating if battery levels are too low, and adjusting terminal blanking and X11 screen blanking

laptop-mode-tools uses the Linux kernel’s Laptop Mode feature and thus is also used on Desktops and Servers to conserve power

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

sudo apt-get -y install laptop-mode-tools

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

You can also use apt command to install laptop-mode-tools.

sudo apt -y install laptop-mode-tools

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

sudo aptitude install laptop-mode-tools

Summary

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