Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Monitor Ubuntu PC Temperature & Voltage: A Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

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

  1. Install lm-sensors
    Open a terminal and run:
    sudo apt update && sudo apt install lm-sensors
    This package provides the sensors command-line tool that reads data from hardware monitoring chips.
  2. 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 run sudo systemctl restart kmod to load them.
  3. 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.
  4. 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 run psensor. 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.
  5. 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.
  6. 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 as monitor.sh, make executable (chmod +x monitor.sh), and run it with ./monitor.sh in a terminal. Stop with Ctrl+C.

Common Mistakes

  • Skipping sensors-detect – Without running it, the kernel modules may not load, and sensors will 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 use sudo 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 run stress --cpu 4 (adjust the number of cores) while watching sensors. 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-detect again 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 sensors in 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 nct6775 or 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 sensors to see if it works with root. If it does, your user may need to be added to the sensors group: sudo usermod -aG sensors $USER then 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.