1

I want to show 3 GPU clocks on Conky. I can only find sources online to display one. The Graphics Clock, But as shown in my picture, there's a memory clock, and a processor clock that I'd like to add as well.. Does anyone know the name of the object I have to use to get these 2 items. Here's the line of code for the Graphics clock

Graphics Clock${alignr}${execi 1 nvidia-settings -query GPUCurrentClockFreqs | perl -ne 'print $1 if /GPUCurrentClockFreqs.*?: (\d+)./;'}MHz

I know I have to replace GPUCurrentClockFreqs with something, but I can't find out what it is.

enter image description here

1 Answer 1

2

nvidia-settings -query all will list all parameters. Run nvidia-settings -query all|grep Freq or nvidia-settings -query all|grep Clock in a terminal and post here the result. Some of the parameters printed by those commands should help you. I don't have a nvidia gpu so I cannot run it myself

Edit: For the CPU frequency, you can get it through other means:

  • /proc/cpuinfo contains information for each core of your cpu

    You can run something like cat /proc/cpuinfo|grep -m 1 -i mhz|cut -d: -f 2|cut -c 2- and this will output the current frequency of the first core of your CPU.

  • The cpufreq-info command shows more frequency-related information, but it may not be installed on your system. Check your distro's package manager for a package named cpufreq-utils or something similar.

    You can run cpufreq-info |grep 'current CPU frequency'|cut -d' ' -f 7|head -n 1, and this will show you the current frequency of the first core

11
  • Thank you, this was actually very useful. Unfortunately, I still wasn't able to find the key word I wanted. I tried to grep words like mem, clock, GPU, Curr, and ended up with nothing. There MUST be a way to access this information. I mean the Nvidia-Settings GUI gets it somehow!
    – Frantumn
    Jun 6, 2012 at 18:00
  • grep is case-sensitive. If you do grep clock you won't get anything. Either use grep Clock or grep -i clock [the -i switch makes it case-insensitive]. Also, nvidia-settings -query all|grep Clock should at least show the value of GPUCurrentClockFreqs
    – user49740
    Jun 6, 2012 at 18:01
  • Sorry for the misleading comment. I meant I got nothing specific to the memory, and processor clocks. I got results in general, but thank you :)
    – Frantumn
    Jun 6, 2012 at 18:08
  • Well… You can get the CPU and the RAM clocks from other sources. For the CPU, you can do cat /proc/cpuinfo|grep -i mhz. This will output a line for each core of your CPU. For the RAM, I don't know where you can get it from. You should create a new question, 'How can I get my RAM frequency?' or something similar. I will update my answer shortly
    – user49740
    Jun 6, 2012 at 18:41
  • Forget I said that, I'm just thinking in the wrong spot. I know the numbers in Powermizer Information are related to GPU clocks, and not my CPU and RAM.
    – Frantumn
    Jun 6, 2012 at 18:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .