Friday, January 17, 2014


On my old TV setup I used nvclock to get the NVIDIA GPU temperature and graph it using rrdtool (along with other temperatures and fan speeds).

nvclock was always a bit of a hack and does not work any more (at least, it won't do anything useful for me).

I know the nvidia-settings tool can display the temperature (and much more information) so there must be a modern way to access this data. A quick google showed up the nvidia-smi tool.

Quick and dirty,
nvidia-smi -q | grep Temperature -A 1
will show the current temperature.
        Gpu                     : 72 C

Interestingly, the output can also be in XML format. Combined with some xslt magic, it is possible to get the temperature in a more structured way.
echo '<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">

<xsl:output method='text'/>
<xsl:template match="/">
<xsl:for-each select="//gpu_temp">
<xsl:value-of select="."/>


' > nvidia-temp.xml
nvidia-smi --dtd > nvsmi_device_v6.dtd
nvidia-smi -q -x | xsltproc nvidia-temp.xml -

Note: Your driver might be using a different dtd version. Adjust as required. (nvidia-smi --dtd | head -1 | cut -d ' ' -f 2 will give the correct name)

If you have multiple cards and want to know which card has which temperature then you can alter the xsl to format it as you require with something like
<xsl:value-of select="ancestor::gpu/@id"/> or <xsl:value-of select="ancestor::gpu/uuid"/>
0000:04:00.0 Quadro K2000 31 C
0000:05:00.0 Quadro K2000 32 C


  1. The article you have shared here very awesome. I really like and appreciated your work. I read deeply your article, the points you have mentioned in this article are useful
    Bad Ice Cream

  2. I am very happy to read this. Appreciate your sharing lulubox download

  3. I don't understand about NVIDIA GPU Temp. Please at first give a brief introduction about it. And one thing if you need a guidance to install exodus kodi, just ping me.

  4. Thanks for expaling about NVIDIA GPU Temp. Can you tell me how we can resolve high CPU usages issue? and Can I post your blog on QuickBooks support site?

  5. There's no easy answer; it varies from GPU to GPU. Google is your friend. Most modern chips can run at temperatures in the mid-90 degrees Celsius, though, and you'll often see them hit those temperatures in gaming laptops

    hotstar app

  6. NVIDIA should do something to lower the temperature of their chipset while playing games. I have encountered this problem while working on Geek Squad Tech Support project.

  7. This post is discussing in an outstanding way. I like your way yo discussed your valid points and facts about this. I really said you share more and more articles How To Remove Mildew From Clothes