Fedora Linux Support Community & Resources Center

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

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


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2006-03-20, 07:56 PM CST
Firewing1's Avatar
Firewing1 Online
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 19
Posts: 9,263
Post Getting nVidia cards to work in Fedora Core

Note: This howto has been transferred to my blog here. (Instructions for Fedora 7+ can be found here)

First, I'd like to link to this article. The instructions below will make sure your system's normal libGL isn't replaced with the nVidia ones, preventing problems.

Important Reminders
  • Reboot when you're done installing or updating a driver.
  • Don't worry if yum cannot find the xorg-x11-drv-nvidia-libs-32bit package, it is only going to be installed for 64bit users.
  • Please see the bottom of the page if you are troubles with getting an image to display properly on your screen.
  • nVidia drivers supporting AIGLX or the desktop-effects (versions 1.0-9625 and greater) Are in the Livna repos - Meaning you can have your nVidia card work with AIGLX or Xgl! For FC6 both nvidia and nvidia-96xx support this, if you use FC5 please switch to the nvidia-96xx drivers to have AIGLX support.
  • Don't worry about the kmod-nvidia-smp modules anymore if you use FC6 & up - All kernels for FC6 & up are now SMP-capable.
  • For a configuration tool that allows you to switch between various configurations including AIGLX and Xgl, try livna-config-display:
    Code:
    yum install livna-config-display
    It still is in beta, so if there's problems please report them to freeworld-graphics@livna.org. Thanks!

A note on legacy drivers
Please note any card below the GeForce FX series is no longer supported by the mainstream nvidia drivers.

If you have a Riva or TNT card, you are going to have to use the nvidia-legacy drivers. Simply follow the instructions like normal but replace:
  • kmod-nvidia with kmod-nvidia-legacy
  • xorg-x11-drv-nvidia with xorg-x11-drv-nvidia-legacy
  • xorg-x11-drv-nvidia-libs-32bit with xorg-x11-drv-nvidia-legacy-libs-32bit
  • service nvidia [action] with service nvidia-legacy [action]
A full product support list for legacy is available here.

If you are using a GeForce2, 3 or 4 (including MX), a you are going to have to use the nvidia-96xx drivers.
Simply follow the instructions like normal but replace:
  • kmod-nvidia with kmod-nvidia-96xx
  • xorg-x11-drv-nvidia with xorg-x11-drv-nvidia-96xx
  • xorg-x11-drv-nvidia-libs-32bit with xorg-x11-drv-nvidia-96xx-libs-32bit
  • service nvidia [action] with service nvidia-96xx [action]
A full product support list for 96xx is available here.

Rawhide (Fedora development)
Not officially supported, however it is very easy to build your own RPMs. Simply download the source RPMs for nvidia-kmod and xorg-x11-drv-nvidia here:
http://rpm.livna.org/fedora/development/SRPMS
and then see my RPM (re)building howto for how to rebuild these for the kernel version you have installed.

Alternatively, visit diffingo-repo where I upload binary kmods for about every 4th development kernel release. Just download your xorg-x11-drv-nvidia package manually from the livna server and then download the kmod, install them with
Code:
su -c 'rpm -Uhv xorg-x11-drv-nvidia* kmod-nvidia*'
Fedora Core 6:
Code:
su -
rpm -Uhv http://rpm.livna.org/livna-release-6.rpm
yum install kmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs-32bit
yum update kmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs-32bit
service nvidia restart
If you see errors like this:
Quote:
Transaction Check Error: package kernel-2.6.19-1.2911.6.5.fc6 is already installed
file /boot/System.map-2.6.19-1.2911.6.5.fc6 from install of kernel-2.6.19-1.2911.6.5.fc6 conflicts with file from package kernel-2.6.19-1.2911.6.5.fc6
file /boot/config-2.6.19-1.2911.6.5.fc6 from install of kernel-2.6.19-1.2911.6.5.fc6 conflicts with file from package kernel-2.6.19-1.2911.6.5.fc6
file /boot/symvers-2.6.19-1.2911.6.5.fc6.gz from install of kernel-2.6.19-1.2911.6.5.fc6 conflicts with file from package kernel-2.6.19-1.2911.6.5.fc6
file /boot/vmlinuz-2.6.19-1.2911.6.5.fc6 from install of kernel-2.6.19-1.2911.6.5.fc6 conflicts with file from package kernel-2.6.19-1.2911.6.5.fc6
Please see this post:
http://www.fedoraforum.org/forum/sho...d.php?t=134287

Fedora Core 5:
Code:
su -
rpm -Uhv http://rpm.livna.org/livna-release5.rpm
yum install kmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs-32bit
yum update kmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs-32bit
setsebool -P allow_execstack=1
setsebool -P allow_execmod=1
service nvidia-glx restart
Fedora Core 4:
** No longer maintained at Livna
Code:
su -
rpm -Uhv http://rpm.livna.org/livna-release4.rpm
yum update kernel
yum install kmod-nvidia xorg-x11-drv-nvidia kernel-module-nvidia
yum update kmod-nvidia xorg-x11-drv-nvidia kernel-module-nvidia
service nvidia-glx restart
If you're having trouble...
As roundboy pointed out to me, if things aren't going well, then...
Quote:
Originally Posted by roundboy
If after a reboot your nVidia card doesn't appear to work, disconnect your monitor's video cable from the adapter card's connector, and attach to the OTHER connector. It appears that my nVidia GeForce 7600 GT PCI-E adapter card has 2 DVI connectors, and I was connected to the wrong connector
...try using the second analog or DVI connector on your nVidia card if it has two.

Enjoy!
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)

Last edited by Firewing1; 2009-03-01 at 09:23 AM CST.
Reply With Quote
  #2  
Old 2006-03-21, 12:21 AM CST
spankaccount Offline
Registered User
 
Join Date: May 2004
Age: 32
Posts: 4
What about those of us using smp kernels? Is that a no-go?
Reply With Quote
  #3  
Old 2006-03-21, 01:17 AM CST
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 41
Posts: 8,250
WOW....thing have change a little.....
Here is my glxgears:
Quote:
[imdeemvp@localhost ~]$ uname -r 2.6.16-1.2064_FC5
[imdeemvp@localhost ~]$ glxgears
12872 frames in 5.0 seconds = 2574.385 FPS
27386 frames in 5.0 seconds = 5477.132 FPS
33897 frames in 5.0 seconds = 6779.382 FPS
33849 frames in 5.0 seconds = 6769.788 FPS
33872 frames in 5.0 seconds = 6774.392 FPS
33848 frames in 5.0 seconds = 6768.149 FPS
33883 frames in 5.0 seconds = 6776.489 FPS
24657 frames in 5.0 seconds = 4931.184 FPS
X connection to :0.0 broken (explicit kill or server shutdown).
[imdeemvp@localhost ~]$
BTW, I think the thread starter should give credit to whom it did the installation how. I came across a site the has exact same wording.
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills

Last edited by imdeemvp; 2006-03-23 at 08:20 PM CST.
Reply With Quote
  #4  
Old 2006-03-21, 02:02 AM CST
Sigrun Offline
Registered User
 
Join Date: Mar 2006
Posts: 4
I've installed everything as suggested above and when I run glxgears I get the following output:

Code:
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual
I have confirmed that Load "dri" is not in my xorg.conf and that Load "glx" is present. Also, when I go to System Tools -> Nvidia Display Settings in Gnome and select OpenGL/GLX Information the following information is shown:

Code:
The OpenGL extension 'GLX' is not supported by
the X server or there was a problem retrieving
GLX information from the X server.
In my Xorg log file I also get the following message:

Code:
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/nvidia/libglx.so
dlopen: /usr/lib/xorg/modules/extensions/nvidia/libglx.so: cannot restore segment prot after reloc: Permission denied
(EE) Failed to load /usr/lib/xorg/modules/extensions/nvidia/libglx.so
(II) UnloadModule: "glx"
(EE) Failed to load module "glx" (loader failed, 7)
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.8178
        Module class: XFree86 Video Driver
Any information/suggestions would be appreciated.
Reply With Quote
  #5  
Old 2006-03-21, 02:13 AM CST
red_dungeon's Avatar
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 176
Try to uncomment the GLX Module in your xorg.conf
__________________
LINUX - because booting is for adding hardware!

red_dungeon ;; Redhat Certified Engineer (RHCE)
Reply With Quote
  #6  
Old 2006-03-21, 02:55 AM CST
Sigrun Offline
Registered User
 
Join Date: Mar 2006
Posts: 4
The Load "glx" line in the modules section was already uncommented. Here is my xorg.conf file (with most of the comments removed):

Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Wed Dec 14 16:39:22 PST 2005
# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules/extensions/nvidia"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "unix/:7100"
EndSection

Section "Module"
	Load  "dbe"
	Load  "extmod"
	Load  "fbdevhw"
	Load  "record"
	Load  "freetype"
	Load  "type1"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "NEC AccuSync 90"
	DisplaySize  370	270
	HorizSync    31.0 - 96.0
	VertRefresh  55.0 - 160.0
	Option	    "dpms"
EndSection

Section "Device"
	Identifier  "Videocard0"
	Driver      "nvidia"
	VendorName  "Videocard vendor"
	BoardName   "nVidia Corporation GeForce 6200"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     16
		Modes    "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1600x1200" "1400x1050" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection
Reply With Quote
  #7  
Old 2006-03-21, 03:07 AM CST
red_dungeon's Avatar
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 176
hrm ?

I see
Quote:
Load "glx"
In your post ?


//edit
It has to be commented (sry bout that)

Code:
# Load "glx"
__________________
LINUX - because booting is for adding hardware!

red_dungeon ;; Redhat Certified Engineer (RHCE)
Reply With Quote
  #8  
Old 2006-03-21, 03:11 AM CST
red_dungeon's Avatar
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 176
btw... thats strange.

http://download.nvidia.com/XFree86/L...ection-02.html

say's that it has to be uncommented...

but i thought that I had to comment it yesterday to get it working ?
Can't verifiy that, because I'm at work... at the moment.
__________________
LINUX - because booting is for adding hardware!

red_dungeon ;; Redhat Certified Engineer (RHCE)
Reply With Quote
  #9  
Old 2006-03-21, 03:28 AM CST
Sigrun Offline
Registered User
 
Join Date: Mar 2006
Posts: 4
I figured it out. It's an issue with SELinux. When I disable SELinux it works correctly and loads the GLX module without any problems. I guess tomorrow I'll try to take a look at the SELinux policies and try to figure out what is causing the problem. For now, it's time to finally get some sleep. Cheers.
Reply With Quote
  #10  
Old 2006-03-21, 04:50 AM CST
hene Offline
Registered User
 
Join Date: Oct 2005
Posts: 4
is there an eta when the rpms will get on livna so it will be easier to install ? not that your howto was that complicated its just that i still didnt manage to make it work
Reply With Quote
  #11  
Old 2006-03-21, 06:03 AM CST
Firewing1's Avatar
Firewing1 Online
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 19
Posts: 9,263
No. not yet that's why you have to build your own for now... But, I just edited the howto and (hopefully) made it a litle easier. Just try it out.
BTW, for those xorg problems follow the howto and run after installing the kmod-nvidia and xorg-x11-drv-nvidia RPMS:
Code:
nvidia-xconfig
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)

Last edited by Firewing1; 2006-03-21 at 06:18 AM CST.
Reply With Quote
  #12  
Old 2006-03-21, 08:03 AM CST
Alexandr K Offline
Registered User
 
Join Date: Mar 2006
Posts: 1
# rpm -Uvh kmod-nvidia-1.0.8178-0.*$(uname -r)*.rpm xorg-x11-drv-nvidia-1.0.8178-0.lvn.5.i386.rpm
error: file not found : kmod-nvidia-1.0.8178-0.*2.6.16-1.2064_FC5*.rpm
kmod-nvidia >= 1.0.8178 xorg-x11-drv-nvidia-1.0.8178-0.lvn.5.i386
#

# rpm -iv kmod-nvidia-1.0.8178-0.lvn.3.2.6.16_1.2064_FC5.x86_64.rpm
nvidia-kmod-common = 1.0.8178 kmod-nvidia-1.0.8178-0.lvn.3.2.6.16_1.2064_FC5.x86_64


nvidia-kmod-common ??

Last edited by Alexandr K; 2006-03-24 at 05:48 AM CST.
Reply With Quote
  #13  
Old 2006-03-21, 08:45 AM CST
hene Offline
Registered User
 
Join Date: Oct 2005
Posts: 4
should this howto work on x86_64 ?
Reply With Quote
  #14  
Old 2006-03-21, 09:23 AM CST
tphillip Offline
Registered User
 
Join Date: Mar 2005
Posts: 7
Quote:
Originally Posted by hene
should this howto work on x86_64 ?
It looks like the kmod-nvidia-1.0.8178 does build the proper files for the x86_64 system. The one filee it generates are /lib/modules/2.6.16-1.2065_FC/extra/nvidia/nvidia.ko is a 64 bit module.

The problem looks like the xorg-x11-drv-nvidia-1.0.8178-0.lvn.5.i386 does not contain the 64 bit libraries. Everything looks like it will work for a 32 bit system, but not a 64 bit system.

And unfortunately I don't know how to work around that. A linux geek I am not.

Last edited by tphillip; 2006-03-21 at 09:48 AM CST. Reason: New info from additional debugging
Reply With Quote
  #15  
Old 2006-03-21, 10:05 AM CST
Lorquas Offline
Registered User
 
Join Date: Mar 2006
Posts: 15
i get a the same problem that Alexandr K gets by following your instructions,

Code:
# rpm -Uvh kmod-nvidia-1.0.8178-0.*$(uname -r)*.rpm xorg-x11-drv-nvidia-1.0.8178-0.lvn.5.i386.rpm
error: File not found by glob: kmod-nvidia-1.0.8178-0.*2.6.16-1.2064_FC5*.rpm
error: Failed dependencies:
        kmod-nvidia >= 1.0.8178 is needed by xorg-x11-drv-nvidia-1.0.8178-0.lvn.5.i386
everything else up to that worked fine..
Reply With Quote
Reply

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
Getting ATi cards to work in Fedora Firewing1 Guides & Solutions (No Questions) 785 2010-01-24 11:30 AM CST
Is there a list of videro cards that work well with Fedora Core 7? mrappe Hardware 2 2007-09-14 07:34 AM CDT
can't get Fedora Core 6 to work with nvidia cards, help sf_basilix Installation Help 16 2007-01-18 06:49 AM CST
Wireless cards work with Fedora core 5 axiom Software 0 2006-07-27 12:04 PM CDT
Nvidia cards on Fedora Core 3 ravalox Fedora Core 3 Test Releases 8 2004-11-06 06:53 PM CST

Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 10:39 AM CDT.

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 Rules | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2010, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Thanks to NLP-er enjoy automatic translations (vBET 2.3.10)