Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th April 2012, 07:18 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
NVIDIA support in Conky.

Conky supports NVIDIA cards using their proprietary driver:
Quote:
nvidia threshold temp ambient gpufreq memfreq imagequality
Nvidia graficcard support for the XNVCtrl library. Each option can be shortened to the least significant part. Temperatures are printed as float, all other values as integer.
threshold The thresholdtemperature at which the gpu slows down
temp Gives the gpu current temperature
ambient Gives current air temperature near GPU case
gpufreq Gives the current gpu frequency
memfreq Gives the current mem frequency
imagequality Which imagequality should be chosen by OpenGL applications
But understandably, it isn't compiled with this feature in Fedora.
So we need to rebuild the rpm package with this feature enabled.
http://wiki.centos.org/HowTos/RebuildSRPM is a guide for rebuilding rpm's.

First thing we must do is prepare the building environment. http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment talks about it. Just read that and skip the parts that are for Red Hat.
AFAIK, basically we need to have the development tools and the ~/rpmbuild directory set up.
The former we get with '# yum install @development-tools' but that will install a lot of stuff that we wouldn't need (some big, like valgrind). So I think we can go with just the mandatory packages for that group, which are: autoconf automake binutils bison flex gcc gcc-c++ gdb gettext libtool make pkgconfig redhat-rpm-config rpm-build strace.
That should cover most needs for building from source.

Now to rebuilding Conky.
First download the source rpm (can be wherever you prefer it to be in your home directory, I suppose):
Code:
$ yumdownloader --source conky
Then 'install' it to ~/rpmbuild (here with the current conky version):
Code:
$ rpm -i conky-1.8.1-5.fc17.src.rpm
Then we need to change its spec file to enable the NVIDIA support.
Open ~/rpmbuild/SPECS/conky.spec and change
Quote:
%bcond_with nvidia
for
Quote:
%bcond_without nvidia
Now before rebuilding it we must have its build dependencies (here's the ONLY part done as root):
Code:
# yum-builddep conky
# yum install libXNVCtrl-devel
Now rebuild the Conky package:
Code:
$ cd ~/rpmbuild/SPECS
$ rpmbuild -ba conky.spec
That's it. You'll find the Conky package in ~/rpmbuild/RPMS/<arch>/. Just install it and enjoy.

For convenience, the 32-bit rpm I built for me can be grabbed at http://dl.dropbox.com/u/64670113/con....fc17.i686.rpm *
* Note: for this package to work you must have libXNVCtrl.i686 installed.

Last edited by secipolla; 12th April 2012 at 08:21 PM.
Reply With Quote
Reply

Tags
conky, nvidia, support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No support for nVidia Geforce4 (akmod-nvidia-96xx) on Fedora15 ? xenotrax Hardware & Laptops 7 6th June 2011 06:55 PM
F14 3D support for Nvidia toddbailey Hardware & Laptops 5 27th November 2010 07:44 PM
[SOLVED] Conky and Nvidia Temps TFB82 Using Fedora 0 28th February 2010 08:53 PM
Nvidia 3D support fedora12newbie Installation, Upgrades and Live Media 4 28th February 2010 04:18 AM
How to install conky/setup conky in F10? Von-Dyke Using Fedora 14 10th July 2009 11:24 AM


Current GMT-time: 02:07 (Tuesday, 21-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Benin City - Gbarnga - Rajauri