PDA

View Full Version : NVIDIA Hardware


cederstrom
2005-07-08, 06:56 PM CDT
I think I installed the NVIDIA software correctly... i run: glxgears but the FPS is 250 average. Shouldn't it be over 500+ ...??!?!

I seriously need help... I am really lost! :confused:

Should I install the software again?

Saint Mike
2005-07-08, 07:24 PM CDT
Hey, i have a 6600GT and get 6766fps :)

Check out http://stanton-finley.net/fedora_core_3_installation_notes.html for FC3
or http://stanton-finley.net/fedora_core_4_installation_notes.html for FC4

Tells ya how to get nvidia working

cederstrom
2005-07-08, 08:08 PM CDT
I'm running FC4. That doesnt work. At the part were you reboot the computer, and the loging is *suppose* to load 3 or 4 times and ask a bunch of questions... it doesnt............................................ .... :mad:

Saint Mike
2005-07-08, 08:30 PM CDT
post your xorg.conf file, Grub boot file and rc.local and ill try see whats happening

gedit /etc/x11/xorg.conf
gedit /boot/grub/grub.conf
gedit /etc/rc.local

cederstrom
2005-07-08, 09:16 PM CDT
gedit /boot/grub/grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.12-1.1390_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.12-1.1390_FC4 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.12-1.1390_FC4.img
title Fedora Core (2.6.12-1.1387_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.12-1.1387_FC4 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.12-1.1387_FC4.img
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4.img

--------------------------------------------------------------------------------------------------------------------------
================================================== ===============================
-------------------------------------------------------------------------------------------------------------------------
gedit /etc/X11/xorg.conf

# 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"
ModulePath "/usr/X11R6/lib/modules"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
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 "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 "LCD Panel 1280x1024"
HorizSync 31.5 - 67.0
VertRefresh 50.0 - 75.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nv"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce FX (generic)"
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 "1280x1024" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection


------------------------------------------------------------------------------------------------------------------
================================================== ==========================
------------------------------------------------------------------------------------------------------------------
gedit /etc/rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

I just ran: yum update

Shooter
2005-07-08, 09:35 PM CDT
[QUOTE=cederstrom]I think I installed the NVIDIA software correctly... i run: glxgears but the FPS is 250 average. Shouldn't it be over 500+ ...??!?!

Well, No, you don't have the driver correctly installed. Your xorg.conf is still using the nv driver. When
you say you installed the NVIDIA software correctly, I assume you downloaded the driver from the Nvidia
site and ran the script. If so, you still need to update your xorg.conf file to use the driver.

BTW, the latest driver is here http://www.nvidia.com/object/linux_display_ia32_1.0-7667.html
Chapter 3 of this document ftp://download.nvidia.com/XFree86/Linux-x86/1.0-7667/README.txt
will tell you what needs to change in your xorg.conf file.

That said, you may still not get above 800x600. Your monitor's horizontal refresh rate is kinda slow
for the size shown. If your monitor is truly an LCD, you should be able to set the horizontal range a
bit higher in the Monitor section. Something like:

HorizSync 30.0 - 82.0

should do the trick. To be sure, look through your /var/log/Xorg.0.log file to see why the driver rejected
the higher resolutions...

Shooter
2005-07-08, 09:37 PM CDT
OOO! I forgot to mention. Be very careful when/if you mess with your monitor's refresh rates. At least in the old days
of CRTs, you could smoke them if you drive them too hard...

Saint Mike
2005-07-08, 09:50 PM CDT
Ok i can see a few problems, in your grub boot file, remove rhgb quiet from then end of the first kernel line, then in xorg.conf put a hash # befor the line "Load "dri"" and remove the whole

Section "DRI"
Group 0
Mode 0666
EndSection

section at the bottom (make sure there is still a blank line at the bottom)

in rc.local add "/sbin/modprobe nvidia" at the bottom and make sure there is a blank line under it

Then restart the computer, when grub loads go in so you can choose which one to load, go to the first one and press "a" and add "3" to the end of the line so it loads dont run any graphics.

Now log in as root and do the following

/usr/sbin/setenforce 0
sh whereeverthenvidiafileis.run

(can get file off nvidia site)

Follow the instructions let it try and download a new one and remove any old ones and it will build a kernel module

when thats all done type

reboot

Saint Mike
2005-07-08, 09:51 PM CDT
woops and change your driver in the xorg.xonf from nv to nvidia


Section "Device"
Identifier "Videocard0"
Driver "nvidia" <<<----------------here
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce FX (generic)"
EndSection

Saint Mike
2005-07-08, 09:54 PM CDT
O and to get your graphical load back up when you get back in with a GUI do the following as root

cp -a /dev/nvidia* /etc/udev/devices
chown root.root /etc/udev/devices/nvidia*

then remove the line we added to /etc/rc.local and add rhgb quiet back to /boot/grub/grub.conf

Then all should be good, the nvidia splash screen should come up on boot, can test with glxgears


Sorry about splitting it over 3 posts :P

Shooter
2005-07-08, 10:40 PM CDT
Not to be critical, Saint Mike, but your proceedure is a bit more complicated than necessary. I took a look at the stanton-finley site you referenced and sent them a comment as well.

The NVidia folks have made their driver about the easiest thing to install I've seen. You don't need to reboot or change your grub.conf or rc.local files. You don't need to copy device files to the udev ditectory tree. My tried and true process is this:

1) Download the driver.
2) As root, do the init 3 command to enter text mode.
3) Log in as root in the text screen.
4) Run the driver install script (as you described above).
5) Update the xorg.conf file (as you described above).
6) Run the startx command to verify all is working.
7) ctrl-alt-backspace (to kill the xserver).
8) init 5.

No reboot necessary. The nvidia kernel module automatically loads when the xserver starts and the
nvidia device files are created when the module loads.

One may want to do step 5 before step 2 if one needs the gui tools to edit the xorg.conf file. I do steps
6 and 7 because I sometimes make mistakes updating my xorg.conf file. This way, I don't need to wait
for a reboot to see my mistake.

cederstrom
2005-07-08, 10:41 PM CDT
The stan finely site doesnt work for me :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad:

cederstrom
2005-07-08, 11:36 PM CDT
this worked for me :cool:

yum update
yum search nvidia
yum install kernel-module-nvidia*

i got my glxgears to 2975 FPS..... Anyone know how to get it going faster? :D

Saint Mike
2005-07-09, 12:15 AM CDT
Tru, go into xorg.conf and say what the driver is in the decice section. What sort of graphics card do you have Cederstrom?

And your way is much easier Shooter thanks for sharing it =D

imdeemvp
2005-07-09, 12:18 AM CDT
this worked for me :cool:

yum update
yum search nvidia
yum install kernel-module-nvidia*

i got my glxgears to 2975 FPS..... Anyone know how to get it going faster? :D
Still very slow and if you are using fc4 this is how I installed nvidia drivers in laptop and desktop. (http://www.fedoraforum.org/forum/showthread.php?t=59937)

cederstrom
2005-07-09, 02:51 AM CDT
Tru, go into xorg.conf and say what the driver is in the decice section. What sort of graphics card do you have Cederstrom?

And your way is much easier Shooter thanks for sharing it =D


I am using a geForce FX 5700 LE 128 mb

cederstrom
2005-07-09, 02:52 AM CDT
look up mike

Any tips to increase FPS?