3

How do mesure gpu temp in conky.

Found this code:

${voffset 7}${goto 40}${voffset -4}Gpu: ${font Droid Sans:style=Bold:size=8}${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C${font}${alignr}Motherboard

But this onely gives the result 0 rpm.

so what to do

Alexander
  • 105
  • 2
  • 2
  • 6
  • You can run nvidia-settings -query GPUCoreTemp to see what it says, and then add the perl commands to see the result. – Nattgew Apr 22 '14 at 17:38

2 Answers2

5

If your version of Conky has not been installed with --enable-nvidia the easiest syntax would involve the following:

${execi 60 nvidia-settings -query [gpu:0]/GPUCoreTemp -t}°C

This would vary of course if you had more than one GPU installed. To see all of the available settings and GPUs run the following:

nvidia-settings -query all > all_nvidia_settings

and then open the file all_nvidia_setings with gedit...

andrew.46
  • 38,003
  • 27
  • 156
  • 232
2

Try this instead:

${your offset}${your color}${nvidia temp}°C

For some reason the resulting display will look like this: 45A°C. I can find no one sentence on how to eliminate the "A" but at least you will have a temperature to work with.

andrew.46
  • 38,003
  • 27
  • 156
  • 232
Adam
  • 501
  • 2
  • 5
  • 10
  • and if you get an error about $nvidia, install conky-all – pcnate Aug 02 '19 at 14:00
  • When I use this technique, my conky displays a ${nvidia} and I get an error that says "nvidia: command not found" when I run that command in terminal. – guttermonk Mar 24 '24 at 16:57