Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia TNT2 mini-howto
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
psynaps3
n00b
n00b


Joined: 12 Feb 2004
Posts: 2

PostPosted: Sat Feb 14, 2004 5:58 pm    Post subject: Nvidia TNT2 mini-howto Reply with quote

hi guys

I finally got my tnt2 working properly, so here's a small mini tut to help out other n00bs like me. I am not sure if the steps are in the correct order coz it took me some time to get this working ( stupid 5xxx drivers ) and i can't properly recollect what all i did. If there are any corrections, then please do let me know. :wink:

Nvidia Vanta ( TNT2 ) with 2.6 Kernel

NVidia Kernel module used : 4496

1) Unmerge the old nvidia-kernel and nvidia-glx packages
Code:

# emerge unmerge nvidia-kernel
# emerge unmerge nvidia-glx


2) Make sure that your /usr/src/linux symlink is pointing to your current kernel.
Code:

$ ls -l /usr/src/linux


3) Emerge nvidia-kernel and nvidia-glx. Make sure that both of them are of the same versions
Code:

# ACCEPT_KEYWORDS="~x86" emerge -v "=nvidia-kernel-1.0.4496-r4"
# ACCEPT_KEYWORDS="~x86" emerge -v "=nvidia-glx-1.0.4496-r1"


4) You will have to add "nvidia" to your /etc/modules.autoload.d/kernel-2.6 file

5) Run opengl-update to tell X to use the Nvidia GLX libraries.
Code:

# opengl-update nvidia


6) Modify your /etc/X11/XF86Config file.

Section "Device"
Driver nvidia
Option "NvAgp" "3" <-- First try AGPGART, if that fails then try NVAGP
If you want to use NVAGP, then specify [ Option "NvAgp" "1" ] instead.

Section "Module"
#Add Load glx and comment out Load dri, dbe.
Load glx
#Load dri
#Load dbe

7) Make sure that you have AGPGART enabled in your kernel, if not use nvidia's NVAGP
( I am using AGPGART )
Code:

$ dmesg | grep agpgart
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel 440BX Chipset.
agpgart: Maximum main memory to use for agp memory: 94M
agpgart: AGP aperature is 64M @ 0xe4000000


Next, check whether the AGP driver is working fine.
Code:

$ cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 2x
Fast Writes: Disabled
SBA: Disabled


8 ) Start X, open up a terminal and run glxinfo and glxgears.
Code:

$ glxinfo | grep direct
direct rendering: Yes
$ glxgears
2441 frames in 5.0 seconds = 488.200 FPS
2511 frames in 5.0 seconds = 502.200 FPS
2509 frames in 5.0 seconds = 501.800 FPS


9) Make sure that glxgears is using the NVidia GLX libraries
Code:

$ ldd `which glxgears`
lbGL.so.1 => /usr/lib/libGL.so.1 (0x4001d000)
$ ls -l /usr/lib/libGL.so.1
/usr/lib/libGL.so.1 -> /usr/lib/opengl/nvidia/lib/libGL.so.1.0.4496


NOTE : If the above steps do not work, then try these :
1) Remove DRM Support from the kernel.
2) Make sure that you have MTRR enabled in your kernel.
3) I had some problems with the latest 5xxx kernel modules. They were giving only 80 FPS with glxgears.

Overclocking the tnt2
---------------------

1) Emerge nvclock
Code:

# emerge -v nvclock


2) Usage :
For information,
nvclock -i
For overclocking,
nvclock -n [Core speed] -m [Memory speed]

If you want to make the changes permanent, then edit your /etc/conf.d/nvclock file, then run rc-update
Code:

# vim /etc/conf.d/nvclock
# rc-update add nvclock default


by psynaps3
_________________
-----<* Psynaptic Links *>-----


Last edited by psynaps3 on Thu Mar 04, 2004 7:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Sun Feb 22, 2004 11:28 am    Post subject: Reply with quote

Moved from 'Multimedia' to 'Documentation, Tips & Tricks'.

--ian!
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
Boris27
Guru
Guru


Joined: 05 Nov 2003
Posts: 562
Location: Almelo, The Netherlands

PostPosted: Sun Feb 22, 2004 3:16 pm    Post subject: Reply with quote

Well, as far as I can see, the guide's good.

One thing though, it is ACCEPT_KEYWORDS, not ACCEPT_KEYWORD (notice the S).

Well done further!
Back to top
View user's profile Send private message
water
Guru
Guru


Joined: 19 Jun 2002
Posts: 387
Location: Zierikzee, The Netherlands

PostPosted: Sun Feb 22, 2004 6:58 pm    Post subject: Reply with quote

I will try as soon as i have some time, but thanks for writings this. It saves lots of time to find out how to do.

BTW: little typo at point 6: XF86Comfig instead of XF86Config
_________________
Groeten uit Holland
Back to top
View user's profile Send private message
ett_gramse_nap
Apprentice
Apprentice


Joined: 01 Oct 2003
Posts: 252
Location: Göteborg, Sweden

PostPosted: Sun Feb 22, 2004 9:14 pm    Post subject: Reply with quote

DAMMIT! I went from 60 to 670 FPS!! 8O My deepest and most sincere thanks!
_________________
Don't bother!
Back to top
View user's profile Send private message
ett_gramse_nap
Apprentice
Apprentice


Joined: 01 Oct 2003
Posts: 252
Location: Göteborg, Sweden

PostPosted: Sun Feb 22, 2004 9:18 pm    Post subject: Reply with quote

Hmm, but it seems like I stille don't use the nvidia-glx thing... "ldd `which glxgears`" gives:


Code:
linux-gate.so.1 =>  (0xffffd000)
        libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x40020000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4008b000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40099000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40161000)
        libm.so.6 => /lib/libm.so.6 (0x40171000)
        libc.so.6 => /lib/libc.so.6 (0x40194000)
        libGLcore.so.1 => /usr/lib/opengl/nvidia/lib/libGLcore.so.1 (0x402c4000)
        libdl.so.2 => /lib/libdl.so.2 (0x407a4000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


I'm thought that libGl.so.1 should point to /usr/lib/libGl.so.1! So where did the FPS increase come from? :?
_________________
Don't bother!
Back to top
View user's profile Send private message
Vann
Guru
Guru


Joined: 04 Aug 2002
Posts: 357

PostPosted: Sun Feb 22, 2004 9:57 pm    Post subject: Reply with quote

libGL.so.1 being in that spot is what allows opengl-update to function. You'll notice that if you run opengl-update xfree then ldd `which glxgears` will show libGL.so.1 => /usr/X11R6/lib/libGL.so.1 instead.
Back to top
View user's profile Send private message
water
Guru
Guru


Joined: 19 Jun 2002
Posts: 387
Location: Zierikzee, The Netherlands

PostPosted: Sun Feb 29, 2004 1:25 pm    Post subject: Reply with quote

OK, it works.

Thanks
_________________
Groeten uit Holland
Back to top
View user's profile Send private message
xo
n00b
n00b


Joined: 16 Oct 2003
Posts: 52

PostPosted: Mon Mar 01, 2004 2:09 pm    Post subject: Reply with quote

I think the latest kernels have something called 'module autoloading'. I can tell you that i don't have nvidia in my /etc/modules.autoload.d/kernel-2.6 and it still works.
I'm not sure if this is the reason or if hotplug does a bit of module magic during boot.

Q:
Quote:
# ACCEPT_KEYWORD="~x86" emerge -v "=nvidia-kernel-1.0.4496-r4"
# ACCEPT_KEYWORD="~x86" emerge -v "=nvidia-kernel-1.0.4496-r1"


Why are you installing the same thing twice? did you mean to say
# ACCEPT_KEYWORD="~x86" emerge -v "=nvidia-kernel-1.0.4496-r4"
# ACCEPT_KEYWORD="~x86" emerge -v "=nvidia-glx-1.0.4496-r1"
_________________
TyanTigerMP | GeForce2MX200 | AudigyPlatinum | PromiseUltra100TX2 | Realtek8139
Back to top
View user's profile Send private message
Izmaelis
n00b
n00b


Joined: 15 Aug 2003
Posts: 28
Location: Lithuania, Kaunas

PostPosted: Tue Mar 02, 2004 10:17 pm    Post subject: Diced twise Reply with quote

Thanks for wonderful tutorial, man! It really helped me out.
But instead of using
Code:

# ACCEPT_KEYWORD="~x86" emerge -v "=nvidia-kernel-1.0.4496-r4"
# ACCEPT_KEYWORD="~x86" emerge -v "=nvidia-glx-1.0.4496-r1"

I did
Code:

# ACCEPT_KEYWORD="~x86" emerge nvidia-kernel
# ACCEPT_KEYWORD="~x86" emerge nvidia-glx

but it's not major difference. BTW, my card is GeForce FX5600XT, so your mini-how-to is useful not only for TNT owners.
_________________
All work and no play makes Jack a dull boy.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Wed Mar 03, 2004 1:08 am    Post subject: Reply with quote

Uh, basically all this guide tells you to do is use an old version, and reminds you to check a few obvious things. (That doesn't mean this guide is bad, but the fact that people need it is. The ebuild should do a good portion of this (checking symlinks, not using 5xxx if it does infact not work with tnts)) The reason it works for you, Izmaelis, is because you are installing the 5xxx driver and have a Geforce FX, which is fine.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
psynaps3
n00b
n00b


Joined: 12 Feb 2004
Posts: 2

PostPosted: Thu Mar 04, 2004 7:20 pm    Post subject: Reply with quote

Corrected all the typos. Thanks guys :)
_________________
-----<* Psynaptic Links *>-----
Back to top
View user's profile Send private message
ndreas
n00b
n00b


Joined: 02 Jul 2002
Posts: 36
Location: Gothenburg, Sweden

PostPosted: Sat Mar 06, 2004 9:15 pm    Post subject: Reply with quote

This doesn't work for me. I followed the guide exactly using gentoo-dev-sources-2.6.3-r1, but I get really crappy 2D performance in X. Both dmesg and /proc/driver/nvidia/agp/status says AGP is set to 0x. I don't have this problem in 2.4.x.
Any idea what to do?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum