A lot of nvidia-settings -query is Blank

Hi!

I want to improve my conky script!

I have Linux kernel 3.11.0-12-generic and Nvidia Driver 331.13

I launch “nvidia-settings -query GPUUtilization” on console and i have blank result.

External Media

You have any idea? (sorry for my bad english)

Thanks,

You need to query it from a GPU target:

$ nvidia-settings -tq [gpu:0]/GPUUtilization
graphics=0, memory=8, video=0, PCIe=0

BTW, nvidia-settings is pretty heavyweight, so if you have some coding experience, you might want to make conky or whatever plugin system it uses talk to the NV-CONTROL extension directly. The code for that is distributed as part of nvidia-settings: https://github.com/NVIDIA/nvidia-settings/tree/master/src/libXNVCtrl

Not too heavy I guess:

$ time nvidia-settings -tq [gpu:0]/GPUUtilization
graphics=0, memory=3, video=0, PCIe=0

real    0m0.054s
user    0m0.023s
sys     0m0.019s

1000 invocations give the same picture - real 0m53.827s

Thanks!!!