You are not logged in.

#1 2013-08-10 19:01:47

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

[solved] Conky - display GPU freq?

I want to get conky to display a "Current Clocks (core)" value of this command:

$ aticonfig --od-getclocks

Default Adapter - ATI Mobility Radeon HD 3650
                            Core (MHz)    Memory (MHz)
           Current Clocks :    110           405
             Current Peak :    600           700
  Configurable Peak Range : [300-600]     [700-700]
                 GPU load :    0%

Ideally, I would also like to have it show Current Memory, but because of the layout of the output, I have no idea how do do it.

I tried something like that:

${color pueple}${execi 60 aticonfig --od-getclocks | perl -ne 'print $1 if /Current*?: (\d+)./;'} MHz$voffset

but it displays nothing.

Last edited by Lockheed (2013-08-13 09:38:17)

Offline

#2 2013-08-10 20:52:58

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [solved] Conky - display GPU freq?

what is colour "pueple"?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2013-08-10 21:01:11

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [solved] Conky - display GPU freq?

Does this command in a terminal correctly display what you'd like to see in conky?

aticonfig --od-getclocks | perl -ne 'print $1 if /Current*?: (\d+)./;'

If it does not, that's where I'd start -- construct the correct command and only then try adding it to conky.

There are all kinds of ways to parse that output to get the values you want, including the memory. There are also other ways to get the GPU frequency. What is the output of

cat /sys/kernel/debug/dri/0/radeon_pm_info

Last edited by 2ManyDogs (2013-08-10 21:17:21)

Offline

#4 2013-08-10 21:35:07

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

Re: [solved] Conky - display GPU freq?

nTia89 wrote:

what is colour "pueple"?

Good point. But apparently Conky can't spell either because it displays the value in purple...


2ManyDogs wrote:

Does this command in a terminal correctly display what you'd like to see in conky?

aticonfig --od-getclocks | perl -ne 'print $1 if /Current*?: (\d+)./;'

If it does not, that's where I'd start -- construct the correct command and only then try adding it to conky.

It doesn't. But that's the best I could come up with. I don't know how this works so I tried copying my old nvidia setup.


2ManyDogs wrote:

There are all kinds of ways to parse that output to get the values you want, including the memory. There are also other ways to get the GPU frequency. What is the output of

cat /sys/kernel/debug/dri/0/radeon_pm_info

Directory /sys/kernel/debug/dri/ contains no files no subfolders.

Last edited by Lockheed (2013-08-10 21:35:45)

Offline

#5 2013-08-10 21:38:06

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] Conky - display GPU freq?

When the command does not give you the output that you want from the command line, how do you expect it to work when run through conky?

Offline

#6 2013-08-13 09:38:01

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

Re: [solved] Conky - display GPU freq?

It might help someone in the future.: I got it to work with

${execi 60 aticonfig --odgc | grep 'Current Clocks :' | cut -c32-34}

Offline

#7 2013-08-13 10:10:29

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

Re: [solved] Conky - display GPU freq?

One pipe:

blah | awk '/Clocks/ {print $4}'

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2013-08-13 13:06:13

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

Re: [solved] Conky - display GPU freq?

@jasonwryan, is your method somehow less tasking on the system (I/O frequency, or whatever)?

Offline

#9 2013-08-13 13:39:29

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] Conky - display GPU freq?

Each time you pipe it, you are essentially pushing the stdout to a whole new program. So by only using awk, it is just once less process for every time this little snippet of code runs.

Offline

#10 2013-08-13 13:53:34

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

Re: [solved] Conky - display GPU freq?

Very useful, thanks.

Offline

Board footer

Powered by FluxBB