LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-08-2011, 08:45 PM   #1
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
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!
 
Old 01-08-2011, 10:56 PM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,682

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
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/
 
Old 01-08-2011, 11:02 PM   #3
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
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....

 
Old 01-08-2011, 11:39 PM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,682

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
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.
 
Old 01-08-2011, 11:55 PM   #5
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
Quote:
Originally Posted by Daedra View Post
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
 
Old 01-09-2011, 03:21 AM   #6
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,781

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
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.
 
Old 01-25-2016, 04:21 PM   #7
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
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...
 
Old 01-28-2016, 01:23 AM   #8
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
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/
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
LXer: Conky Colors Makes Your Conky Beautiful In Seconds (Version 3.20 Released) LXer Syndicated Linux News 0 08-01-2010 11:21 AM
LXer: Conky Ubuntu Lucid Theme - Among The Easiest to Install Conky Theme in Ubuntu LXer Syndicated Linux News 0 07-05-2010 04:11 PM
LXer: Conky-like Desktop Info Application With Html Support (gtk-desktop-info) [Ubunt LXer Syndicated Linux News 0 05-01-2009 11:50 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration