Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

6 Answers 6

up vote 25 down vote accepted

Yes, there is a command.

Detecting sensors

First of all, you have to search for 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:

sensors

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.

I hope this helped you,

share|improve this answer
3  
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. –  Luis Alvarado Apr 11 '11 at 11:42
    
@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. –  omnidan Apr 11 '11 at 13:10
    
Nope no luck either. Only shows the CPU temp. –  Luis Alvarado Apr 11 '11 at 13:27
    
Some programs made by nvidia/ati display the GPU temp. –  omnidan Apr 11 '11 at 13:35
1  
Excellent. Thank you. –  Luis Alvarado Apr 11 '11 at 14:15

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
share|improve this answer

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

nvidia-smi

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                                                 |
+-----------------------------------------------------------------------------+
share|improve this answer

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.

share|improve this answer

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:

https://extensions.gnome.org/extension/541/nvidia-gpu-temperature-indicator/

share|improve this answer

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.