How can I check CPU and GPU temperatures in Linux Mint?
Asked by
hardcover preferred
I'm using Linux Mint and I'm looking for a way to monitor the temperatures of my CPU and GPU. In Windows, I was familiar with using HWmonitor for this purpose. Is there a similar tool available for Linux that can help me keep an eye on those temperatures?
Answers
You can check CPU temperatures with the command 'sensors' and for your GPU, 'nvidia-smi' is the way to go. If you want to keep these readings updated, you can use the 'watch' command to refresh the output every few seconds.
Reply to this answer
For a more custom solution, you can create a function in your terminal to read CPU temperatures from system files. Here's a quick script you could use:
```bash
get_temp() {
for zone in /sys/class/thermal/thermal_zone*/temp; do
[ -f "$zone" ] && awk '{printf "%.1fยฐCn", $1/1000}' "$zone" && return
done
echo "N/A"
}
```
Just add that to your .bashrc to easily check temperatures later.
Reply to this answer
If you're looking for something more visual, setting up Conky could be a good option. It can display temperatures directly on your desktop, so you can keep an eye without opening a separate window.
Reply to this answer
I recommend installing 'btop'. It's a nice tool that provides an overview of all system metrics, including temperatures! You can install it using 'sudo apt install btop'. Just a heads up, it gives you live monitoring but won't log the highest temperatures.
Reply to this answer
I use Mangohud with a configuration tool called Goverlay. It offers plenty of info during gaming sessions, though I let my BIOS handle the cooling settings. If you're having trouble setting it up, make sure to check that any dependencies are properly installed.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions