LinuxAlternative

Linux · System Tools

lm-sensors

lm-sensors is a command‑line tool that reads hardware sensor data from the Linux kernel.

Open sourceFree
Be the first to rate
License
GPL-2.0
Latest version
3.6.2

What is lm-sensors?

lm-sensors has been part of the Linux ecosystem since the early 2000s, providing low‑level access to temperature, fan speed, and voltage readings from most modern motherboards. It relies on the kernel’s hwmon interface and a small set of user‑space utilities to query and display the data. The project is mature, actively maintained, and included in the major distributions.

The tool is aimed at sysadmins, overclockers, and power users who need precise hardware monitoring without a graphical interface. It works well in headless or minimal installations where a GUI is not desired.

Compared with Windows utilities like HWiNFO, lm‑sensors feels more utilitarian. It outputs plain text, making it easy to parse in scripts, but it lacks the polished graphs and real‑time dashboards that HWiNFO offers. For those who prefer a GUI, tools like Psensor or Gkrellm can be used on top of lm‑sensors data.

Best for: Users who need reliable, scriptable hardware monitoring on Linux systems.

Key features of lm-sensors

  • Accesses kernel hwmon data
  • Displays temperatures, fans, voltages
  • Supports most motherboards
  • Command‑line interface
  • Can be scripted
  • Configurable via /etc/sensors.d
  • Provides raw sensor values
  • Supports fan control on some chips

Pros

  • Free and open source
  • Runs on minimal installs
  • Scriptable for automation
  • Included in major distros
  • No GUI overhead

Cons

  • No built‑in GUI
  • Requires manual configuration for some chips
  • Limited fan‑control support
  • Learning curve for command syntax

Windows programs lm-sensors replaces

How to install lm-sensors on Linux

Ubuntu / Mintsudo apt install lm-sensors
Debiansudo apt install lm-sensors
Fedorasudo dnf install lm_sensors
Arch / Manjarosudo pacman -S lm_sensors
openSUSEsudo zypper install sensors

Tips for Windows users

From HWiNFO, you’ll notice lm‑sensors outputs plain text; use the -u flag for raw values or -l for a list of available sensors. There are no file formats to import/export; instead, you can redirect output to a log file or pipe it into a monitoring script. Keyboard shortcuts are not applicable; instead, use command options like -c for continuous mode and -t for a single read. Workflow changes: replace HWiNFO’s GUI dashboard with a terminal window or a lightweight GUI front‑end such as Psensor that reads lm‑sensors data.

lm-sensors: frequently asked questions

How do I install lm-sensors on Ubuntu?

Run sudo apt install lm-sensors and then execute sudo sensors-detect to probe your hardware. Follow the prompts to load the necessary kernel modules.

Can lm-sensors read GPU temperatures?

Only if the GPU exposes data via the kernel’s hwmon interface, which is common on AMD GPUs but not on most NVIDIA cards. For NVIDIA, use nvidia-smi instead.

Is there a graphical front‑end for lm-sensors?

Yes, tools like Psensor, Gkrellm, or Conky can display lm‑sensors data in a GUI. They read the sensor output via the sensors command.

How often does lm-sensors update?

By default, sensors reads once per command. Use sensors -l for continuous polling or set up a cron job for regular checks.

Updated