Whether running high-performance software development builds, compiling large codebases, playing native games via Proton, or managing a compact home server, keeping computer hardware within safe operating temperatures is critical for system stability. Excessive thermal throttling causes performance degradation, unexpected emergency shutdowns, and long-term hardware wear. In Ubuntu Linux, the standard hardware monitoring framework—powered by lm-sensors—allows users to inspect real-time CPU core temperatures, motherboard thermal probes, and cooling fan speeds with pinpoint accuracy.
Why Monitoring Hardware Temperatures Matters in Linux
Keeping an eye on thermal metrics in Ubuntu provides crucial system diagnostic benefits:
- Detecting Thermal Throttling: Modern Intel and AMD processors automatically lower clock speeds when exceeding 90°C to 100°C; monitoring temps reveals if cooling solutions need fresh thermal paste.
- Verifying Cooling Fan Operation: Confirming that cooling fans dynamically increase RPM under load prevents catastrophic overheating.
- Server & Laptop Health: Identifies blocked laptop intake vents or clogged desktop radiator filters before component damage occurs.
Step 1: Installing and Configuring lm-sensors
The standard hardware monitoring package is available directly from the official Ubuntu repositories:
- Press
Ctrl + Alt + Ton your keyboard to launch the terminal. - Install the sensors package:
sudo apt update && sudo apt install lm-sensors - Once installed, run the automated hardware sensor detection wizard:
sudo sensors-detect - The wizard will ask a series of diagnostic probing questions. To accept safe defaults for all probes automatically, type
YESto each prompt (or pressEnter). - At the very end of the scan, when prompted to add the detected kernel modules to
/etc/modulesautomatically, typeyesand pressEnter.
Step 2: Checking Real-Time Temperatures in the Terminal
Now that your hardware kernel drivers are initialised, querying temperatures is instantaneous:
- In your open terminal, execute:
sensors - The command prints a comprehensive hardware breakdown:
- CPU Core Temperatures: Displays individual package and per-core temperatures (e.g., Core 0: +42.0°C) alongside high (
high = +80.0°C) and critical shutdown thresholds (crit = +100.0°C). - Cooling Fan Speeds: Shows fan tachometer readings in revolutions per minute (RPM).
- Motherboard & NVMe Probes: Displays chipset temperatures and solid-state drive operating thermals.
- CPU Core Temperatures: Displays individual package and per-core temperatures (e.g., Core 0: +42.0°C) alongside high (
Continuously Monitoring Temperatures with Watch
To watch temperature fluctuations update dynamically while stressing your computer:
- Run sensors inside the terminal
watchutility:watch -n 1 sensors - The terminal will refresh your sensor readings every single second, allowing you to monitor thermal curves during gaming or file compression. Press
Ctrl + Cto exit.
Graphically Monitoring Temps with Psensor
If you prefer an elegant desktop interface with graphical charts and tray temperature badges:
- Install Psensor via APT:
sudo apt install psensor - Launch Psensor from your Ubuntu application menu.
- The utility presents real-time line graphs tracking temperature changes across time and can anchor a live temperature readout directly in your top GNOME panel.