Monitor Ubuntu PC Temperature & Voltage: A Guide
In this article
To monitor your Ubuntu PC's temperature and voltage, install lm-sensors and use the sensors command or a graphical tool like Psensor. This gives you real-time readings for CPU, GPU, motherboard, and power supply voltages, helping you spot overheating or unstable power before they cause crashes or hardware damage. You'll need sudo access and an internet connection to install the packages.
What You'll Need
- An Ubuntu PC (desktop or server) with sudo privileges
- Internet connection to install packages
- Terminal window (Ctrl+Alt+T)
- Optional: A graphical desktop environment for Psensor (if you want a GUI)
Step-by-Step
- Install lm-sensors
Open a terminal and run:sudo apt update && sudo apt install lm-sensors
This package provides thesensorscommand-line tool that reads data from hardware monitoring chips. - Detect your sensors
Run:sudo sensors-detect
Answer YES to all prompts (or press Enter to accept defaults). This scans your hardware and loads the necessary kernel modules. After it finishes, it may ask to add modules to/etc/modules– say YES. Then reboot or runsudo systemctl restart kmodto load them. - Check readings
Run:sensors
You'll see output like:coretemp-isa-0000 Adapter: ISA adapter Package id 0: +45.0°C (high = +80.0°C, crit = +100.0°C) Core 0: +43.0°C (high = +80.0°C, crit = +100.0°C) ...
Look for temp1, Core 0, etc., and voltage lines like Vcore or +12V. - Install Psensor for a graphical view (optional)
If you prefer a GUI, install Psensor:sudo apt install psensor
Launch it from the applications menu or runpsensor. It shows a system tray icon with live temps and voltages. You can configure alerts (e.g., notify when CPU exceeds 80°C) via Preferences. - Set up a simple terminal watch
To monitor continuously in the terminal, use:watch -n 2 sensors
This refreshes every 2 seconds. Press Ctrl+C to stop. - Log data for later analysis (optional)
Create a script that logs readings to a file:#!/bin/bash while true; do date >> /tmp/sensors.log sensors >> /tmp/sensors.log sleep 60 done
Save it asmonitor.sh, make executable (chmod +x monitor.sh), and run it with./monitor.shin a terminal. Stop with Ctrl+C.
Common Mistakes
- Skipping sensors-detect – Without running it, the kernel modules may not load, and
sensorswill show nothing or only partial data. - Ignoring the high/crit thresholds – The numbers in parentheses are limits; if your temp approaches them, you have a cooling problem. Don't wait until it hits critical.
- Expecting voltage readings on all systems – Many modern motherboards don't expose voltage sensors to the OS, so you may only see temperatures. That's normal.
- Using the wrong package name – On older Ubuntu versions, the package might be
lm-sensors(with a hyphen). Always usesudo apt install lm-sensors.
Tips
- Check your BIOS/UEFI too – Motherboard manufacturers often provide their own monitoring in the firmware. It's a good cross-check, but the OS readings are what matter under load.
- Run a stress test – To see max temps, install
stress(sudo apt install stress) and runstress --cpu 4(adjust the number of cores) while watchingsensors. Stop with Ctrl+C. - Use a desktop widget – If you use GNOME, you can add a “System Monitor” extension that shows CPU temp in the top bar. Search for “temperature” in the GNOME Extensions app.
- Clean your fans – If temps are higher than normal, dust buildup is a common cause. Power off, open the case, and carefully clean fans and heatsinks with compressed air.
Troubleshooting
If sensors shows no output or “No sensors found”:
- Run
sudo sensors-detectagain and make sure you answer YES to all questions, especially the one about adding modules to/etc/modules. - Reboot after running sensors-detect to ensure modules load.
- Check if your hardware is supported – some very new or very old chips may not be. Search online for your motherboard model + “lm-sensors” for specific instructions.
If Psensor doesn't show any sensors:
- Make sure lm-sensors is installed and working first (run
sensorsin terminal). - In Psensor, go to Preferences > Sensors and click “Add” to manually add sensors if they aren't auto-detected.
If voltage readings are missing:
- This is often a hardware limitation. Check your motherboard's manual – some don't expose voltage sensors. You can also try
sudo modprobe nct6775or other modules if you know the chip, but this is advanced.
If temps are unusually high (e.g., 90°C+ at idle):
- Check that the CPU cooler is properly seated and the fan is spinning.
- Apply fresh thermal paste if the system is old.
- Ensure proper case airflow – check that intake and exhaust fans are working.
If you get “Permission denied” when running sensors:
- Run
sudo sensorsto see if it works with root. If it does, your user may need to be added to thesensorsgroup:sudo usermod -aG sensors $USERthen log out and back in.
Frequently Asked Questions
Is it safe to monitor voltage?
Yes, monitoring is read-only and safe. It doesn't change any settings. However, don't try to adjust voltages unless you know exactly what you're doing – that's overclocking territory and can damage hardware.
What is a normal CPU temperature?
For modern Intel and AMD CPUs, idle temps are typically 30-50°C, and under load 60-85°C. Anything above 90°C is concerning. Check your CPU's spec sheet for the exact maximum.
Can I monitor my GPU temperature?
Yes. For NVIDIA GPUs, install nvidia-smi (comes with the driver) and run nvidia-smi. For AMD/Intel, use sensors if supported, or install radeontop for AMD.
Why does my voltage reading show 0.00 V?
That usually means the sensor isn't supported or not properly detected. Try running sudo sensors-detect again and ensure you selected the correct chip. If it still fails, your motherboard may not expose that sensor.
Can I get alerts when the temperature gets too high?
Yes. Psensor has alert settings (Preferences > Alerts). You can also use a script that checks sensors and sends a notification via notify-send.
Do I need to install anything else for a laptop?
Usually not. lm-sensors works on most laptops. Some laptops require the acpi module, but that's loaded automatically. If you see no battery temp, it's normal – laptops rarely expose battery temp.