Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
    
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 '12 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 '12 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 '12 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 '12 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 '12 at 18:49

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.