Operations 6 min read

How to Monitor CPU and GPU Temperatures on Ubuntu with Sensors, Glances, and i7z

This guide explains how to install and use three command‑line tools—lm‑sensors, Glances, and i7z—on Ubuntu to monitor CPU and GPU temperatures, fan speeds, and other hardware metrics, providing step‑by‑step commands and example outputs for effective laptop cooling diagnostics.

Liangxu Linux
Liangxu Linux
Liangxu Linux
How to Monitor CPU and GPU Temperatures on Ubuntu with Sensors, Glances, and i7z

Even with rapid advances in technology, laptop overheating remains a common issue, and monitoring hardware temperatures helps diagnose the cause.

1. lm‑sensors

lm‑sensors is a simple CLI utility that displays current readings from all sensor chips, including the CPU. It is pre‑installed on many Linux distributions such as Ubuntu. If not present, install it:

sudo apt-get install lm-sensors

Detect the sensors on your system:

sudo sensors-detect

After detection, view temperature and fan information: sensors Example output:

dell_smm-virtual-0
Adapter: Virtual device
Processor Fan: 2515 RPM
CPU:               +55.0°C
Ambient:            +38.0°C
SODIMM:             +42.0°C

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:      +56.0°C (high = +100.0°C, crit = +100.0°C)
Core 0:            +54.0°C (high = +100.0°C, crit = +100.0°C)
Core 1:            +52.0°C (high = +100.0°C, crit = +100.0°C)
Core 2:            +56.0°C (high = +100.0°C, crit = +100.0°C)
Core 3:            +51.0°C (high = +100.0°C, crit = +100.0°C)

2. Glances

Glances is a cross‑platform system monitoring tool written in Python that uses the psutil library. It can display a wide range of metrics—including CPU usage, memory, load average, process list, network interfaces, disk I/O, sensor data (CPU temperature), battery, Docker containers, and more—through a curses UI or a web interface.

Install Glances on Ubuntu:

sudo apt install glances -y

Run Glances and press f to view sensor information:

glances

3. i7z

i7z reports real‑time details about Intel Turbo Boost CPUs (i3/i5/i7), including current frequency, multiplier, temperature, and C‑state residency.

Install i7z on Ubuntu:

sudo apt install i7z -y

Run i7z with root privileges: sudo i7z Example output (truncated):

Conclusion

By installing and using lm‑sensors, Glances, and i7z, you can effectively monitor CPU and GPU temperatures, fan speeds, and other hardware metrics on Ubuntu, helping you identify and address overheating issues.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

UbuntuGPU monitoringGlancesCPU temperaturei7zlm-sensors
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.