LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   conky with nvidia support (https://www.linuxquestions.org/questions/slackware-14/conky-with-nvidia-support-855088/)

SeRi@lDiE 01-08-2011 08:45 PM

conky with nvidia support
 
Doing some research I found that in conky 1.8.1 there is support for nvidia using libxnvctrl.
I am trying to compile it but I am missing libxnvctrl... Does any body know where I can get it?

TIA!

Daedra 01-08-2011 10:56 PM

You need the nvida-settings source file. I thought that this was already installed with binary driver, but I am not sure. However the file you need should be include in these sources. Just find the matching version for your driver.

ftp://download.nvidia.com/XFree86/nvidia-settings/

SeRi@lDiE 01-08-2011 11:02 PM

Daedra,

I thought so too but I am unable to find the lib any where and when I try to compile conky it screams that the lib is missing....

:confused:

Daedra 01-08-2011 11:39 PM

That is weird, I never tried to add the nvidia flag to conky, I have just been pigging backing off of the nvidia-settings sensors. For instance my conky shows my 460GTX temp, I just add a setting like this to my conky, which actually just reads the output of nvidia-settings. (All one line in conky config)

GPU Temp: ${alignr}${execi 600 nvidia-settings -query GPUCoreTemp | perl -ne
'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C


You can also add things like fan speed and such too, since nvidia-settings can probe that.

SeRi@lDiE 01-08-2011 11:55 PM

Quote:

Originally Posted by Daedra (Post 4217954)
That is weird, I never tried to add the nvidia flag to conky, I have just been pigging backing off of the nvidia-settings sensors. For instance my conky shows my 460GTX temp, I just add a setting like this to my conky, which actually just reads the output of nvidia-settings. (All one line in conky config)

GPU Temp: ${alignr}${execi 600 nvidia-settings -query GPUCoreTemp | perl -ne
'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C


You can also add things like fan speed and such too, since nvidia-settings can probe that.

Yeap thats what I am doing also... Till i found that you can use nvidia flags in 1.8.1... like

${nvidia gpufreq}


Look here:

http://conky.sourceforge.net/variables.html

enorbet 01-09-2011 03:21 AM

One Solution
 
If you're running KDE v4x you can use the STDIN plasmoid and configure it by setting the "command" line to

"nvidia-settings -q GPUCurrentClockFreqs"

In fact any of the attributes like GPUCoreTemp can similarly be displayed and with less overhead than conky.
Additionally, any file or command capable of communicating STDIN, STDOUT, or STDERR can be called and because v4 builds a database on many apps such as Kontact, you can display those as well with extremely low overhead because it is all integrated into the plasma desktop.

andrew.46 01-25-2016 04:21 PM

I realise that I am resurrecting an old thread here but has anybody looked at building the required libXNVCtrl library? I could only find a reasonably complex slackbuild here...

kingbeowulf 01-28-2016 01:23 AM

I think Nvidia is being a "dick" about building a shared lib of libXNVCtrl. Currently, only a static lib is built by default for nvidia-settings with no option so far of instead building a shared lib. This being Slackware, I am hesitant to excessively patch Nvidia for SBo for this fringe case - unlike those other weird distros - especially since something like above and
Code:

${color grey}NVidia GPU Temp:$alignr$color ${execi 10 nvidia-settings -q GPUCoreTemp -t}°C
${color grey}GPU Fan:$alignr$color ${execi 10 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t}%

works fine. Even so, I am considering adding libXNVCtrl.so to my nvidia SBo package.
https://devtalk.nvidia.com/default/t...idia-settings/


All times are GMT -5. The time now is 11:28 AM.