You are not logged in.

#1 2013-06-17 12:17:36

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Conky displays double values from nvidia-settings

I have this line in conky to tell me current clock frequency of the nvidia GPU:

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


The problem is, that instead of

275 MHz

I get

275275 MHz

on concky's display.

What could be wrong with it?

Offline

#2 2013-06-17 16:15:55

jean_no
Member
Registered: 2007-09-18
Posts: 48

Re: Conky displays double values from nvidia-settings

Hi

look at the output of nvidia-settings -h and the output of the command nvidia-settings -query GPUCurrentClockFreqs

  Attribute 'GPUCurrentClockFreqs' (arch64-kde:0.0): 300,100.
    'GPUCurrentClockFreqs' is a packed integer attribute.
    'GPUCurrentClockFreqs' is a read-only attribute.
    'GPUCurrentClockFreqs' can use the following target types: X Screen, GPU.
  Attribute 'GPUCurrentClockFreqs' (arch64-kde:0[gpu:0]): 300,100.
    'GPUCurrentClockFreqs' is a packed integer attribute.
    'GPUCurrentClockFreqs' is a read-only attribute.
    'GPUCurrentClockFreqs' can use the following target types: X Screen, GPU.

You must write in Conky :

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

A+

Last edited by jean_no (2013-06-17 16:22:19)

Offline

#3 2013-06-17 17:08:54

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: Conky displays double values from nvidia-settings

Perfect. Thanks

Offline

#4 2013-06-17 18:05:11

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

Re: Conky displays double values from nvidia-settings

How is this any different from your last thread on this issue?
https://bbs.archlinux.org/viewtopic.php?id=163672


Lockheed, this is your final warning.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB