Посмотреть температуру видеокарты linux

How to see the Video Card Temperature (Nvidia, ATI, Intel. )

Is there a command (Via terminal) to see the temperature of any video card. Already Tried sensors with the sensors-detect applied. Does not detect for example, Nvidia and ATI video card temperatures.

10 Answers 10

An alternative for nvidia cards is to use nvidia-smi: the «NVIDIA System Management Interface program».

user@box:~$ nvidia-smi -q -d temperature GPU 0: Product Name : GeForce 210 PCI ID : a6510de Temperature : 39 C 

Or to output just the numeric value in Celsius:

user@box:~$ nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader 39 

How do you handle when all GPU cores are at 100% and your nvidia-smi command hangs until a core is freed? Thus defeating the purpose of ‘alarm on meltdown’? Am I reduced to an aftermarket temperature sensor? The 2080Ti GPU apparently won’t read its own temperature on 100% usage, and doesn’t know to turn on its own fan, nor halt because of >135C literal melting temperatures. Looks like it’s time for unpacking their Propitiatory C binaries and do it like they do on blizzard gamedevs. Well played nvidia, angry noises.

Detecting sensors

First of all, you have to search for sensors:

sudo apt-get install lm-sensors sudo sensors-detect 

Since lucid lynx, you have to type:

sudo service module-init-tools start 

If you’re running another Ubuntu version type:

sudo /etc/init.d/module-init-tools start 

To save the detection results.

Displaying sensor data

Now, to show the temperatures, type:

Now you should see something like that:

My sensors result

I don’t have many sensors, btw 🙂

Displaying temperature of NVIDIA GPU

If you are using a NVIDIA GPU type:

sudo apt-get install nvclock 

After installing it, type nvclock -T to display the temperature.

You can also type nvidia-settings -q gpucoretemp .

Thank you Daniel but sensors does not detect the video temp for cases like ati and nvidia. i should have put it in the question but forgot. +1 for complete example.

@CYREX After some researches I found out that it also shows GPU temp if you install libsensors3 BEFORE detecting sensors. Try: sudo apt-get install libsensors3 and then follow my steps again.

Читайте также:  Linux find all source files

The already mentioned command for nvidia (on my OpenElec installation):

also gave additional information:

+------------------------------------------------------+ | NVIDIA-SMI 3.295.71 Driver Version: 295.71 | |-------------------------------+----------------------+----------------------+ | Nb. Name | Bus Id Disp. | Volatile ECC SB / DB | | Fan Temp Power Usage /Cap | Memory Usage | GPU Util. Compute M. | |===============================+======================+======================| | 0. GeForce GT 520 | 0000:01:00.0 N/A | N/A N/A | | N/A 52 C N/A N/A / N/A | 17% 169MB / 1023MB | N/A Default | |-------------------------------+----------------------+----------------------| | Compute processes: GPU Memory | | GPU PID Process name Usage | |=============================================================================| | 0. Not Supported | +-----------------------------------------------------------------------------+ 

If you want to watch the temperature in your terminal for monitoring, you can use watch with the commands that were given in the other answers (e.g. @drgrog’s). For instance, to refresh the temperature every 5 seconds:

watch -n 5 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader 

For nvidia there is an nvidia-settings package, which includes a gui to see the temperature. I don’t recall if there is a text-mode tool in there.

Some Intel graphics adapters report their temperature through acpi and you can read it through the sensors command from the package of the same name.

I have recently found a cool extension for Gnome 3. So if you are using it — you can install this and see the temperature in the tray:

I wanted a quick simple way to see the GPU and CPU temps on my computer. I also wanted to see the NVidia temp in fahrenheit. Assuming you already have the nvidia-smi and sensors utilities installed, configured and working already (see above for how), you can use the following script to display everything together:

#!/bin/bash echo "" echo "GPU Current Temp" echo "Core 0: +$(( $((`nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader` * 9/5)) + 32))°F" # nvidia-smi --query --display=TEMPERATURE | grep "GPU Current Temp" --color=none | sed 's/ //g' echo "" echo "CPU Current Temp" sensors coretemp-isa-0000 -f | sed 's/(high.*//g' | tail -n +4 | sed 's/\.5//g' 

NOTE: you may need to change coretemp-isa-0000 to the identifier if your computer uses a different architecture than mine.

The output will look something like:

 GPU Current Temp Core 0: +120°F CPU Current Temp Core 0: +167°F Core 1: +176°F Core 2: +156°F Core 3: +152°F Core 4: +147°F Core 5: +143°F 

Источник

Top 7 Tools to See Hardware (CPU, GPU) Temperature in Ubuntu & Debian

To prevent computer or laptop from overheating, here are quite a few tools to keep an eye on hardware temperature.

Users may use a power saving utility, e.g., TLC or slimbook battery, to cool down computer and save battery life. However, when you need running a large project such as video processing, it’s always good if there’s an app indicates the CPU and/or GPU temperature.

Читайте также:  How to scan ports linux

1. HardInfo

The popular system information and benchmark tool, Hardinfo, has “sensors” in the left panel under ‘Devices’ that monitors the hardware temperature.

Hardinfo is great for checking information for system, hardware, networking, and for benchmarking. The sensors is enough to monitor if the computer is going overheat, though beginners including me may not know which hardware that the temperature tells for.

Install HardInfo in Linux:

The software is available in most Linux repositories, including Fedora, Ubuntu, Debian, Arch Linux, and openSUSE. Simply install it from the Software App, or by running one of commands below.

    Ubuntu, Debian, Linux Mint based systems, run command to install hardinfo:

sudo apt install hardinfo
sudo dnf install hardinfo
sudo zypper install hardinfo

2. Hardware Sensors Indicator

For Ubuntu and Debian with the GNOME desktop environment, this is a simple indicator applet in system tray area. It displays CPU, NVIDIA GPU, hard drive temperatures based on the command line lm-sensors and hddtemp tools.

The tool by default displays nothing in my case, users need to go preferences and choose which to display.

To install the tool, open terminal by either searching from overview screen or pressing Ctrl+Alt+T on keyboard. When it opens, run command:

sudo apt install indicator-sensors

3. lm-sensors, hddtemp

For those working on Linux command console, lm-sensors is present to check your CPU, GPU, motherboard temperature. And hddtem is available for hard drive temperature.

For Ubuntu and Debian based systems, just open terminal or go to command console and install the tools via command:

sudo apt install lm-sensors hddtemp

Next, run sensor-detect command to scan your computer hardware and choose which hardware you want to check.

You can finally use sensors command to tell hardware temperature at any time. Or use sudo hddtemp /dev/sda for hard drive.

4. psensor

Psensor is my favorite tool to monitor hardware temperatures. It uses lm-sensors for the temperature of the motherboard and CPU sensors, XNVCtrl for NVIDIA GPUs, and ATI ADL SDK for ATI GPUs.

Besides monitoring the temperature of local or remote computer, it also draws real-time charts and raises alerts. As well, you may use it to keep an eye on the CPU load and the speed of fan.

Читайте также:  Notes on linux software

To install psensor in Debian and Ubuntu based systems, open terminal and run command:

sudo apt install psensor psensor-server

And Fedora users can get the tool via command:

sudo dnf install psensor psensor-server

5. Freon Extension:

For all Linux running GNOME desktop, including Debian, Ubuntu, Fedora, CentOS, Arch, Manjaro, and more, there’s gnome extension to do the job.

It’s “Freon” which adds indicator applet into system tray. And, it shows CPU temperature, disk temperature, video card temperature (NVIDIA/Catalyst/Bumblebee&NVIDIA), voltage and fan RPM.

For Ubuntu and Debian, users need to firstly install the chrome-gnome-shell package via command in terminal:

sudo apt install chrome-gnome-shell

Then, install the extension from the link button below by turning on the slider icon (install browser extension if prompted).

6. xsensors

This tool is a desktop independent tool that displays hardware sensor information with a tiny graphical interface. It’s great if all the previous somehow does not work for you.

And, to install xsensors run apt command in terminal for Ubuntu and Debian:

sudo apt install xsensors

Or, install it in Fedora and CentOS using command:

sudo dnf install xsensors

7. mate-sensors-applet & xfce4-sensors-plugin

For the MATE and XFCE desktop environments, both have their own indicator applet to display real-time hardware temperature.

Users may right-click on system panel and go to its preferences dialog to add the sensors applet after installed it via one of the command below:

Install mate-sensors-applet for MATE Desktop:

Firstly, open terminal from start menu. Then run command to install the applet for your system:

    Ubuntu and Debian system, use command:

sudo apt install mate-sensors-applet
sudo dnf install mate-sensors-applet
sudo pacman -S mate-sensors-applet

Install xfce4-sensors-plugin for XFCE Desktop:

Similarly, open terminal and run either command for your system to install the applet for XFCE desktop:

    Ubuntu and Debian system, use command:

sudo apt install xfce4-sensors-plugin
sudo dnf install xfce4-sensors-plugin
sudo pacman -S xfce4-sensors-plugin

Summary:

In this tutorial, I’ve told 7 different tools to check the temperatures of computer CPU, GPU, motherboard, and hard drive. While lm-sensors is for command line users, psensor is a great choice that works on different Linux Desktops. Though GNOME has an extension to do the job. And, XFCE4 and MATE desktop have their own sensors applets.

Источник

Оцените статью
Adblock
detector