You are not logged in.

#1 2016-04-27 02:52:45

cj360
Member
Registered: 2013-10-12
Posts: 67

[Solved]Nvidia & Conky

Testing a conky setup but something seems off with my gpu freq:
imgur link

my conky config

During this screenshot the gpu was sitting bewteen 30~38 C so why is it giving a larger value than cpu freq?

Last edited by cj360 (2016-04-27 23:19:35)

Offline

#2 2016-04-27 03:13:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved]Nvidia & Conky


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-04-27 23:19:21

cj360
Member
Registered: 2013-10-12
Posts: 67

Re: [Solved]Nvidia & Conky

I couldn't figure out how to use

nvidia-settings -q [gpu:0]/GPUCurrentClockFreqs

so I ended up going back to nvidia-smi after finding  this page to get easy to read print outs of gpu usage and memory. In this case I found

nvidia-smi -q -g 0 2>&1 | grep -A 2 -i utilization | grep -i gpu | tail -1 | awk '{print $3}' | sed s/\%//g

to print out usage of the gpu. I'm sure nvidia-settings could do the job too but I just found nvidia-smi to be easier.

Offline

#4 2016-04-27 23:30:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved]Nvidia & Conky

cj360 wrote:
nvidia-smi -q -g 0 2>&1 | grep -A 2 -i utilization | grep -i gpu | tail -1 | awk '{print $3}' | sed s/\%//g

That one-liner could be de-uglified just using Awk (untested):

nvidia-smi -q -g 0 2>&1 | awk '/Utilization/ {getline; sub(/%/,""); print $3}'

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB