Conky: nvidia-settings GPUUtilization in conky

Created on 30 Sep 2016  路  13Comments  路  Source: brndnmtthws/conky

I've noticed in the latest nvidia drivers the libxnvctrl which adds in more support I believe...

In nvidia-settings for the 367.44 drivers I now see a GPU Utilization: section that shows the load in percentage...

I want to know if it's possible to display the GPU Utilization: percentage in conky?

If I run this cmd nvidia-settings -tq GPUUtilization I see all these options;
graphics=12, memory=8, video=0, PCIe=1

The graphics=12 above as example, shows the percentage of 12, and I only want to display this 12 percentage for the GPU load in conky.

nvidia-settings

question

Most helpful comment

Is there a way this can be replicated for multiple GPUs?

Previous comments suggested @Brainiarc7 probably know this already which is to add --id=GPU-sud0-su8-g00d-d4Y-t0-y0u-s1r... or so to the _exec_ nvidia-smi command.

Does the nvidia conky object allow specifying what GPU to query from?

man conky suggested GPU_ID (i.e. ${nvidia gpuutil 0}%). Try it and see.

All 13 comments

Ahh after posting this issue someone showed me this below.

${execi 5 nvidia-settings -tq GPUUtilization | grep -o 'graphics=[0-9]*' | sed -e 's/graphics=//'}%

But then I was also shown this method to have it update as quickly as possible, like nvida-settings;

${exec nvidia-settings -tq GPUUtilization | grep -o 'graphics=[0-9]*' | sed 's/graphics=//'}%

But they said with sed, might not be the most elegant way of going about this, so any other better way then?

thanks

I have this at the moment;

${exec nvidia-settings -tq GPUUtilization | awk -F '[,= ]' '{ print $2 }'}%

Hello you can use:
GPU ${nvidia gpuutil}%,
RAM ${nvidia membwutil}%
VIDEO ${nvidia videoutil}%
PCIe ${nvidia pcieutil}%

I'm searching same thing today, you can find what you want here: https://github.com/brndnmtthws/conky/blob/e84ca1f966b8c2903cd792914f5e0ee6d3181b68/doc/variables.xml#L2780

These commands are not listed in wiki, but usable.

SORRY for getting back late, my old computer died, but I'm back in action with Nvidia again! :)

@Erinor2 wow great list of cmds I never knew.

With RAM ${nvidia membwutil}% you can see how much ram being used?
With VIDEO ${nvidia videoutil}% you can see how much video ram being used?

What's the point of this cmd, what will this do? PCIe ${nvidia pcieutil}%

Thanks

Hello, can someone please explain these?

RAM ${nvidia membwutil}%
VIDEO ${nvidia videoutil}%
PCIe ${nvidia pcieutil}%

Thanks

look up any of the arguments (including the nvidia ones) using
man conky
if you have linux.
If not, try this link:
https://github.com/brndnmtthws/conky/wiki/Configuration-Variables#search_word=nvidia

Thanks

Questions possibly answered. Thanks everyone. :+1:

Hello you can use:
GPU ${nvidia gpuutil}%,
RAM ${nvidia membwutil}%
VIDEO ${nvidia videoutil}%
PCIe ${nvidia pcieutil}%

Is there a way this can be replicated for multiple GPUs?
Does the nvidia conky object allow specifying what GPU to query from?

@Brainiarc7 exec with nvidia-smi. Ask sir @lasers for more Kung Fu sed filtering.

Is there a way this can be replicated for multiple GPUs?

Previous comments suggested @Brainiarc7 probably know this already which is to add --id=GPU-sud0-su8-g00d-d4Y-t0-y0u-s1r... or so to the _exec_ nvidia-smi command.

Does the nvidia conky object allow specifying what GPU to query from?

man conky suggested GPU_ID (i.e. ${nvidia gpuutil 0}%). Try it and see.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bad-interpreter picture bad-interpreter  路  4Comments

zero77 picture zero77  路  3Comments

akorop picture akorop  路  3Comments

oberon-manjaro picture oberon-manjaro  路  4Comments

fonic picture fonic  路  3Comments