LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   nVidia drivers on FC2 (https://www.linuxquestions.org/questions/fedora-35/nvidia-drivers-on-fc2-192523/)

carlosinfl 06-11-2004 08:11 PM

nVidia drivers on FC2
 
After I run through the nVidia installer, does this section still apply to Fedora Core 2?

sec-03) EDITING YOUR XF86CONFIG FILE
__________________________________________________________________________

When XFree86 4.0 was released, it used a slightly different XF86Config
file syntax than the 3.x series did, and so to allow both 3.x and 4.x
versions of XFree86 to co-exist on the same system, it was decided that
XFree86 4.x was to use the configuration file "/etc/X11/XF86Config-4"
if it existed, and only if that file did not exist would the file
"/etc/X11/XF86Config" be used (actually, that is an over-simplification
of the search criteria; please see the XF86Config man page for a complete
description of the search path). Please make sure you know what
configuration file XFree86 is using. If you are in doubt, look for a
line beginning with "(==) Using config file:" in your XFree86 log file
("/var/log/XFree86.0.log"). This README will use "XF86Config" to refer
to your configuration file, whatever it is named.

If you do not have a working XF86Config file, there are several ways
to start: there is a sample config file that comes with XFree86,
and there is a sample config file included with the NVIDIA driver
package (it gets installed in /usr/share/doc/NVIDIA_GLX-1.0/).
You could also use a program like 'xf86config'; some distributions
provide their own tool for generating an XF86Config file. For more
on XF86Config file syntax, please refer to the man page.

If you already have an XF86Config file working with a different driver
(such as the 'nv' or 'vesa' driver), then all you need to do is find
the relevant Device section and replace the line:

Driver "nv"
(or Driver "vesa")

with

Driver "nvidia"

In the Module section, make sure you have:

Load "glx"

You should also remove the following lines:

Load "dri"
Load "GLcore"

if they exist. There are also numerous options that can be added to
the XF86Config file to fine-tune the NVIDIA XFree86 driver. Please see
Appendix D for a complete list of these options.

Once you have configured your XF86Config file, you are ready to restart
X and begin using the accelerated OpenGL libraries.


I was not sure if FC2 uses the XF86CONFIG FILE.

Thanks for any info.

DrOzz 06-11-2004 08:15 PM

yes indeed it does ... you have to make them changes on any distro ..
it is located at /etc/X11/XF86Config

lupin_the_3rd 06-11-2004 08:18 PM

Search the forums... nvidia doesn't work well with the stock FC2 kernel... if you have problems you're going to have to get another kernel going by either rolling your own or installing a 3rd party one...

Shouldn't one of these nvidia threads be made sticky?

DrOzz 06-11-2004 08:19 PM

if you mean a sticky for installing them then there used to be one (not sure if it still is)
http://www.linuxquestions.org/questi...ghlight=NVIDIA
but there it is above .. which is a very good "howto"

lupin_the_3rd 06-11-2004 08:23 PM

I meant the problems with the 4kstacks... carwill may know about it but since it's a pretty common issue and nvidia has yet to release drivers (though they are in the works supposedly)... just thought it may save some of those new to FC2 some time and headaches...

carlosinfl 06-11-2004 08:43 PM

so now I need to update my kernel version? :confused:

wow - this is getting hard - I am very new to linux and would have no idea how to do this? Is this a major deal or simple task?

Any downside to updating my kernel version?

lupin_the_3rd 06-11-2004 11:16 PM

It's not hard to compile your own kernel but there is one available from linuxant that is identical to the FC2 kernel with 8kstacks rather than 4 (the 4kstacks is what is causing a problem with the nvidia driver). Here's the link:

http://www.linuxant.com/driverloader...ernel-i686.php

You only need the kernel .rpm.zip not the src.rpm.zip unless you want to rebuild the rpm.

To roll your own kernel here's a very basic rundown:

1) download the kernel sources from here:

http://www.kernel.org/

Choose "F" for full sources... the current is 2.6.6

2) open up a terminal and su to root

(#denotes commnad line input)
3) #bunzip2 linux-2.6.6.tar.bzip2
4)#mv linux-2.6.6.tar /usr/src
5)#tar -xf linux-2.6.6.tar
6)#cd /usr/src/linux-2.6.6
7)#cp /boot/config-2.6.5-1.358 .config
8)make menuconfig
9)check "Kernel hacking ---> CONFIG_4KSTACKS" and make sure it is disabled
10)exit
11)make && make modules_install && make install
12) or instead of "make install" you can "make rpm" and install that way
13) reboot into the new kernel
14) install nvidia drivers

carlosinfl 06-12-2004 12:07 PM

Quote:

Originally posted by lupin_the_3rd


1) download the kernel sources from here:

http://www.kernel.org/

Choose "F" for full sources... the current is 2.6.6

2) open up a terminal and su to root

(#denotes commnad line input)
3) #bunzip2 linux-2.6.6.tar.bzip2
4)#mv linux-2.6.6.tar /usr/src
5)#tar -xf linux-2.6.6.tar
6)#cd /usr/src/linux-2.6.6
7)#cp /boot/config-2.6.5-1.358 .config
8)make menuconfig
9)check "Kernel hacking ---> CONFIG_4KSTACKS" and make sure it is disabled
10)exit
11)make && make modules_install && make install
12) or instead of "make install" you can "make rpm" and install that way
13) reboot into the new kernel
14) install nvidia drivers

1-14 are instruction for just installing an upgraded kernel version? Or is this how to complie my own? I have no idea how compie my own kernel and if possible just would like to upgrade this to something that supports nVidia drivers (just enough to get me by)

jedimastermopar 06-12-2004 01:47 PM

I was able to complie my kernel when running the nvidia install, the point at which you are asked if you woul dlike to download a new kernal hit no and go from there, it recompiled my kernal. however, I was unable to get the nvidia drivers to work. :(

lupin_the_3rd 06-12-2004 04:00 PM

Quote:

Originally posted by carlwill
1-14 are instruction for just installing an upgraded kernel version? Or is this how to complie my own? I have no idea how compie my own kernel and if possible just would like to upgrade this to something that supports nVidia drivers (just enough to get me by)
It's how to compile your own...

lupin_the_3rd 06-12-2004 04:01 PM

Quote:

Originally posted by jedimastermopar
I was able to complie my kernel when running the nvidia install, the point at which you are asked if you woul dlike to download a new kernal hit no and go from there, it recompiled my kernal. however, I was unable to get the nvidia drivers to work. :(
Nvidia installer doesn't compile your kernel it compiles a kernel module... it's searching for premade modules not kernels...

cuco76 06-12-2004 07:00 PM

The 2.6.6-1 kernel is available. Has anyone tried the nVidia install with it? Just 'yum update' and you will have the latest FC2 kernel!

Good Luck!

carlosinfl 06-13-2004 11:10 AM

sorry, not familiar with yum...

can I do this in GUI mode logged in as a user?

Can you post the code needed.

Thanks

cuco76 06-13-2004 11:30 AM

Note the 2.6.6-1 kernel that is available through fedora is not nVidia friendly.

However if you still want to update the kernel you can open a terminal and type

"yum update"

There is a good readme available on http://fedora.artoo.net

Good Luck

RottenMutt 06-13-2004 09:14 PM

I installed 2.6.6-1.247 and compiled a custom kernel with the nostacks patch. run
Code:

patch -R -p1 <../redhat/SOURCES/linux-2.6.5-nostack.patch
while in /usr/src/linux-2.6.6-1.427 directory. You can get the kernel source and the kernel-2.6.6-1.427.src.rpm from Fedora 2 Server.
I couldn't compile a working kernel on the stock FC2 kernel, but it works on 2.6.6-1.247. I think firewire was broken on the old kernel.
Also, on the new kernel i need to skip the new graphics screen that loads with linux, it loads the graphics driver twice and the Nvidia driver doesn't like it the second time. but if i skip the new screen it is fine.

carlosinfl 06-16-2004 04:45 PM

I ended up just running up2date on Fedora Core 2 and it gave me an options to upgrade my kernel to a new kernel version that was available and then made me reboot. So, now I guess that new kernel should be supported with nVidia's latest drivers, right?

I will be doing this all day Thursday and I hope I don't mess this up.

Thanks for any more info I can use.

lupin_the_3rd 06-16-2004 05:07 PM

No, the new kernel does not support nvidia drivers... we have to wait until nvidia supports 4kstacks...

carlosinfl 06-16-2004 05:15 PM

so unless I complie a new kernel (which is way beyond anything I can do) or go back to ATI, I will not be able to play games?

lupin_the_3rd 06-16-2004 05:16 PM

It's just a matter of waiting...nvidia is preparing new drivers for release any day now...

http://www.nvnews.net/vbulletin/showthread.php?t=30090

or you can download and install one of the linuxant kernels...

carlosinfl 06-16-2004 05:28 PM

Quote:

Originally posted by lupin_the_3rd


or you can download and install one of the linuxant kernels...

Was this possible using YUM? or APT-GET..sorry to sound redundant.

lupin_the_3rd 06-16-2004 05:31 PM

http://www.linuxant.com/driverloader...ernel-i686.php

carlosinfl 06-16-2004 05:34 PM

I noticed that this is for i686..I thought that was for 64 bit versions of linux. I think I am using a 32 i386 or something like that..does this matter or am I just really confused?

lupin_the_3rd 06-16-2004 05:56 PM

no, that kernel is for 32 bit architecture...

carlosinfl 06-16-2004 10:03 PM

ok, so I am looking at the link and I am assuming that I should download the 1st link 2.6.6-1.427 -

I see that it is a zip. I downloaded this file to /home/carlwill

What is the command to install this?

lupin_the_3rd 06-16-2004 10:08 PM

First double click to unzip it...

then, open up a terminal and type su -
enter your password for root

then rpm -ivh kernel-(then just hit tab to have it autocomplete)

carlosinfl 06-16-2004 10:22 PM

Thank you lupin...

do you use MSN or AIM. I would like to talk to you in case I run into any problems on Thursday.

Thanks for all the information.

lupin_the_3rd 06-16-2004 10:34 PM

I'll be hanging around here... just post your problems so others can benefit from any possible solutions...

carlosinfl 06-16-2004 10:35 PM

no problem - Thanks. Wish I had a linux system to play with here at work.

lupin_the_3rd 06-16-2004 10:40 PM

Yeah, me too...

carlosinfl 06-16-2004 10:54 PM

If I do install this, I can always go back to a 4 k stack kernel if Nvidia drviers support 4 k stack, right?

Or is it better to just stick with this kernel for future and on...

Just not really sure what kind of kernel I am upgrading to and not sure if this will handicap me later once fedora kernels tend to become better supported.

PS - are you at work too?

lupin_the_3rd 06-16-2004 11:00 PM

You can always revert back to the official FC2 kernels... you just boot into the new kernel and you will lose your gui... but as long as you keep the Nvidia installer somewhere around (I keep one in my back-up directory) you just cd there from the command line and sh Nvidia-Installer (though you would use the actual name of the installer--using tab completion for less typing) since you need to run the installer without X running anyways.

The linuxant is the exact FC2 kernel (thought they are one update behind right now) with just 8kstacks rather than 4)...

Nahh, I'm at home right now... I have to work 9-4:30PM... no more night shifts for me...

SupGori11 06-17-2004 04:10 AM

Hello there,

I'm in the same situation with FC2 kernel and Nvidia drivers. Yesterday I installed the linuxant 8k stacks kernel-2.6.6-1.427 but I ran into problems. First my kernel version was already updated to .435 and so I had to rpm -ivh --force the installation. Then I had to find the matching src.rpm for that kernel. As I'm nooob all these i386 i486 i586 i686 aren't clear. What do they mean and reffer to ? except that it is 32 bit arch Because yum won't stop to present me such names with either i586 or i686 ?!? I'm lost. Well I found the 427 src.rpm and also .sourcecode no arch Now I don't remember what i did but I managed to build the Nvidia kernel module against i don't know... Restart with the correct kernel in grub and tried to play some 3d games. Glxgears worked with 3d acc and games also. But then after a reboot
All was gone !!?!? boot process logged out some make error in sendmail and changed time ^^ All is screwed up now :) I don't know what went wrong if you have an idea....Thx

carlosinfl 06-17-2004 03:19 PM

This is my kernel version

2.6.5-1.358smp

Is this the default Fedora Core 2 kernel? or was it upgraded already?

lupin_the_3rd 06-17-2004 03:27 PM

Quote:

Originally posted by carlwill
This is my kernel version

2.6.5-1.358smp

Is this the default Fedora Core 2 kernel? or was it upgraded already?

That's the default one... This is one up from the default but not the most current smp kernel...

http://www.linuxant.com/driverloader...f45b0dce374fb4

lupin_the_3rd 06-17-2004 03:33 PM

Quote:

Originally posted by SupGori11
Hello there,

I'm in the same situation with FC2 kernel and Nvidia drivers. Yesterday I installed the linuxant 8k stacks kernel-2.6.6-1.427 but I ran into problems. First my kernel version was already updated to .435 and so I had to rpm -ivh --force the installation. Then I had to find the matching src.rpm for that kernel. As I'm nooob all these i386 i486 i586 i686 aren't clear. What do they mean and reffer to ? except that it is 32 bit arch Because yum won't stop to present me such names with either i586 or i686 ?!? I'm lost. Well I found the 427 src.rpm and also .sourcecode no arch Now I don't remember what i did but I managed to build the Nvidia kernel module against i don't know... Restart with the correct kernel in grub and tried to play some 3d games. Glxgears worked with 3d acc and games also. But then after a reboot
All was gone !!?!? boot process logged out some make error in sendmail and changed time ^^ All is screwed up now :) I don't know what went wrong if you have an idea....Thx

Ok, here it is one more time... the linuxant kernels are the exact same as the FC2 kernels except with 8kstacks instead of 4... they use the same source provided by fedora...

http://download.fedora.redhat.com/pu...427.noarch.rpm

would be used as the source for:

http://www.linuxant.com/driverloader...s.i686.rpm.zip

and

http://www.linuxant.com/driverloader...s.i686.rpm.zip

if you use smp kernels...

the src.rpms provided by linuxant are for rebuilding the actual rpm itself...

You need the kernel source and the 8kstacks rpm to install the nvidia drivers or you get a blank screen and your system will freeze (except for the few lucky cases out there)

carlosinfl 06-17-2004 03:37 PM

ok, so now I am home in front of a Linux machine and am wondering what to do?

You see my kernel version above, Fedora 2 recognizes my nVidia card I just installed in the display properties and I ran the nVidia installer driver

Code:

sh NVIDIA-Linux-x86-1.0-5336-pkg1.run
I rebooted and am now back in KDE as my one user account.

Should I download a new kernel? Do you think I should do this one from the link you gave me? http://www.linuxant.com/driverloader...ernel-i686.php

Thanks

flyfishin 06-17-2004 04:14 PM

Quote:

Originally posted by RottenMutt
Also, on the new kernel i need to skip the new graphics screen that loads with linux, it loads the graphics driver twice and the Nvidia driver doesn't like it the second time. but if i skip the new screen it is fine.
Thanks for pointing that out. I could get the drivers to load and work and every time I rebooted it wouldn't work. I made that change and all is well now.

lupin_the_3rd 06-17-2004 04:45 PM

Quote:

Originally posted by carlwill
ok, so now I am home in front of a Linux machine and am wondering what to do?

You see my kernel version above, Fedora 2 recognizes my nVidia card I just installed in the display properties and I ran the nVidia installer driver

Code:

sh NVIDIA-Linux-x86-1.0-5336-pkg1.run
I rebooted and am now back in KDE as my one user account.

Should I download a new kernel? Do you think I should do this one from the link you gave me? http://www.linuxant.com/driverloader...ernel-i686.php

Thanks

You can't run the installer with X running... and you have to be running the kernel you intend to use... so, you're going to have to install the 8kstacks kernel from linuxant... download it and open a terminal

su -
enter password

rpm -ivh kern(hit tab)
enter
kernel will install

carlosinfl 06-17-2004 07:19 PM

Quote:

Originally posted by lupin_the_3rd


then rpm -ivh kernel-(then just hit tab to have it autocomplete)

Lupin, I am trying to install this kernel but when I open konsole,

Code:

rpm -ivh kernel-[tab to auto complete]
what comes after kernel-? It will not auto complete.

Thanks

lupin_the_3rd 06-17-2004 08:51 PM

You have to be in the directory where the kernel rpm is located...

cd /home/carwill/downloads
rpm -ivh kern(tab)

SupGori11 06-18-2004 06:00 AM

Thx Lupin3d :D

I was confused with these kernel-sourcecode and src.rpm. As my system was screwed up almost totally I reinstalled FC2. Updated my kernel to 2.6.6-1.427 and sourcecode then I downloaded and rpm -ivh 8kstacks kernel. Restart and build the Nvidia kernel module that fits. 3d acc ok :)
BTW never type rpm -Uvh with a kernel lolll it will replace all already installed as U=Upgrade
Afterwards I launched winex3 to install warcraft III but then fall on 21 and cd not found errors. I forget this issue from FC1 and did the necessary. Now I realize that it's perhaps prelink=yes and first attempt to launch war3 that has screwed up my system . Replacing data in already assigned memory adresses don't know...It's a total hasard that my first installation has worked.
Now all is runnning flawlessly.

carlosinfl 06-19-2004 12:38 PM

Quote:

Originally posted by lupin_the_3rd


su -
enter password

rpm -ivh kern(hit tab)
enter
kernel will install

I did this and it was looking promising untill I get this message.

Code:

Warning: kernel-2.6.6-1.427.8kstacks.i686.rpm: V3 signature: NOKEY. key ID 5dfbf7dc
preparing...            ########################################100%
                  package kernel-2.6.6-1.435 (which is newer than kernel2-6.6-1.427.8kstacks) is already installed
[root@localhost]


lupin_the_3rd 06-19-2004 02:20 PM

you can always force the rpm to install...

rpm -ivh --force kern(tab)

it should be fine... rpm is just telling you that you have a newer (by date) kernel rpm...

carlosinfl 06-19-2004 03:21 PM

ahhh..sorry - I wish I new my linux command line better so I would not have to trouble you with every bump I seem to hit.

I will try this and see how that works out.

Lets say the force command does update the kernel to the 8k stack.
I then reboot and what would then be my best course of action?

I have the nvidia installer package installed already with the previous kernel - should I run throught this again since it is a different verision of the kernel?

Did that make sense?

carlosinfl 06-19-2004 06:33 PM

ok,

I re-ran the nvidia installer to over-write the old installer since It was installed with the 4k stack kernel.
I now have the new 8k stack kernel installed, re-ran the nvidia installer, and edited my x11.

This is what my xorg.conf looks like

[i]# 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"

# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

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

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
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 "Dell 1800FP (Digital)"
DisplaySize 360 290
HorizSync 30.0 - 70.0
VertRefresh 56.0 - 85.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection[/b]

carlosinfl 06-19-2004 06:54 PM

ok, guys - last question - I think I edited the file correctly according to the Nvidia "read me" file. How do I know the installation was sucessful??? :retard:

I just go into etc/X11/xorg.conf and ...

driver 'nv' changed to "nvidia'
made sure I had 'glx'
removed Load 'dri'

Rebooted and ran glxgears...

here are the results

[root@localhost root]# glxgears
32254 frames in 5.0 seconds = 6450.800 FPS
52569 frames in 5.0 seconds = 10513.800 FPS
68224 frames in 5.0 seconds = 13644.800 FPS
67647 frames in 5.0 seconds = 13529.400 FPS
68263 frames in 5.0 seconds = 13652.600 FPS
67968 frames in 5.0 seconds = 13593.600 FPS
48607 frames in 5.0 seconds = 9721.400 FPS
65422 frames in 5.0 seconds = 13084.400 FPS
51190 frames in 5.0 seconds = 10238.000 FPS
51838 frames in 5.0 seconds = 10367.600 FPS
61832 frames in 5.0 seconds = 12366.400 FPS
52078 frames in 5.0 seconds = 10415.600 FPS
64736 frames in 5.0 seconds = 12947.200 FPS
57223 frames in 5.0 seconds = 11444.600 FPS
48613 frames in 5.0 seconds = 9722.600 FPS
59950 frames in 5.0 seconds = 11990.000 FPS
45724 frames in 5.0 seconds = 9144.800 FPS
60158 frames in 5.0 seconds = 12031.600 FPS
60670 frames in 5.0 seconds = 12134.000 FPS
59883 frames in 5.0 seconds = 11976.600 FPS
61048 frames in 5.0 seconds = 12209.600 FPS
61652 frames in 5.0 seconds = 12330.400 FPS

lupin_the_3rd 06-20-2004 12:47 AM

Just try running tux racer... or a GL screensaver... you'll know if it didn't work...

darklordzim 06-22-2004 09:43 PM

okay, i'm having a similar problem
 
i'm having a similar problem with the Nvidia installs on FC2

this is my results when tyring to install the new kernel.. i'm now without windows for the time.. and i'm using linux as my only OS.. so i've never needed the Gfx drivers before, as linux has only been my server os.. but i would like any advice you can provide, thanks

[darklordzim@blackwidow darklordzim]$ rpm -ivh --force kernel-2.6.6-1.427.8kstacks.i686.rpm
warning: kernel-2.6.6-1.427.8kstacks.i686.rpm: V3 DSA signature: NOKEY, key ID 5dfbf7dc
error: can't create transaction lock

lupin_the_3rd 06-22-2004 10:06 PM

try it as root

darklordzim 06-23-2004 11:12 AM

duh!
 
omg, i feel stupid.. i forgot to su.. okay i got the kernel installed.. now i modifiy my inittab to boot to text mode, install the nvidia driver, modify my xorg.conf file, and change inittab back right?


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