monitor-sensor command not found

In this troubleshooting guide we learn how to fix monitor-sensor command not found error message

Introduction

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

monitor-sensor: command not found

or when using sudo you get the following error message

sudo: monitor-sensor: command not found

Solutions to monitor-sensor: command not found

How To Fix monitor-sensor: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu monitor-sensor is provided by iio-sensor-proxy package.

iio-sensor-proxy is:

Industrial I/O subsystem is intended to provide support for devices that in some sense are analog to digital or digital to analog convertors

Devices that fall into this category are:

  • ADCs
  • Accelerometers
  • Gyros
  • IMUs
  • Capacitance to Digital Converters (CDCs)
  • Pressure Sensors
  • Color, Light and Proximity Sensors
  • Temperature Sensors
  • Magnetometers
  • DACs
  • DDS (Direct Digital Synthesis)
  • PLLs (Phase Locked Loops)
  • Variable/Programmable Gain Amplifiers (VGA, PGA)

Many ultrabooks ship with some of these devices. iio-sensor-proxy is intended to serve as a proxy, providing access to these devices through a D-Bus interface

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

sudo apt-get -y install iio-sensor-proxy

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

You can also use apt command to install iio-sensor-proxy.

sudo apt -y install iio-sensor-proxy

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

sudo aptitude install iio-sensor-proxy

Summary

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