Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia-kernel 1.0.7174 for x86
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
Master Shake
l33t
l33t


Joined: 10 Apr 2005
Posts: 755
Location: Wilmington, Delaware

PostPosted: Sun Apr 10, 2005 9:46 pm    Post subject: Nvidia-kernel 1.0.7174 for x86 Reply with quote

I've been using gentoo for about two months now and I've decided that I'd try to help out in some way. I searched the forums and couldn't find a HOW TO on the new nvidia kernel for the x86 (amd64 was plentiful) so I'd figured I'd make one.

Here are some of the benefits I've noticed with the new kernel:
1. Slight fps gain (1-4 fps in ut2004 & doom3)
2. Solved this lag problem I was having with ut2004
3. Solved this unexplainable crash I kept getting with doom3 when I looked at this one particular control console early in the game (its so irrelevent that I didn't bother posting it in the bugs section because it really didn't take away from the game)

Before you start make sure that you have the latest kernel (2.6.11-r5 as of this post) with mtrr support and rivafb off.

First off start by unmasking the packages in /etc/portage/package.keywords by putting these lines in it:

=media-video/nvidia-kernel-1.0.7174
=media-video/nvidia-glx-1.0.7174-r1

Then run:

emerge --ask nvidia-glx ">=nvidia-glx-1.0.7174-r1"

The ask is to make sure that it is downloading the newest kernel. Then edit your xorg.conf file and make sure it has this line:

Option "NvAGP" "1"

For some reason nvidia's agp and agpgart aren't playing nice together :cry:

Here is my video portion of xorg.conf if you run into any other problems with it:

Section "Device"
Identifier "GeForce 6800"
Driver "nvidia"
VideoRam 131072
Option "NvAGP" "1"
Option "NoRenderExtension" "false"
Option "RenderAccel" "true"
Option "AllowGLXWithComposit" "true"
Option "CursorShadow" "true"
Option "CursorShadowAlpha" "32"
Option "BackingStore" "true"
Option "dpms"
EndSection

Of course replace your own identifier and video ram in this. Make sure you reboot your computer first in order to start using the new module. For some reason modprobe -r nvidia and then modprobe nvidia doesn't load the new one until the computer is rebooted can anyone tell me why? Or is it just something that I did wrong. Anyways I've found the driver stable I've been playing ut2004 and doom3 all day without a hiccup. Nothing I've tried so far has crashed the driver. Which leads me to ask why it is still masked. Can someone answer that?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Mon Apr 11, 2005 12:21 am    Post subject: Re: Nvidia-kernel 1.0.7174 for x86 Reply with quote

Master Shake wrote:
I've been using gentoo for about two months now and I've decided that I'd try to help out in some way. I searched the forums and couldn't find a HOW TO on the new nvidia kernel for the x86 (amd64 was plentiful) so I'd figured I'd make one.

Here are some of the benefits I've noticed with the new kernel:
1. Slight fps gain (1-4 fps in ut2004 & doom3)
2. Solved this lag problem I was having with ut2004
3. Solved this unexplainable crash I kept getting with doom3 when I looked at this one particular control console early in the game (its so irrelevent that I didn't bother posting it in the bugs section because it really didn't take away from the game)

Before you start make sure that you have the latest kernel (2.6.11-r5 as of this post) with mtrr support and rivafb off.

First off start by unmasking the packages in /etc/portage/package.keywords by putting these lines in it:

=media-video/nvidia-kernel-1.0.7174
=media-video/nvidia-glx-1.0.7174-r1

Then run:

emerge --ask nvidia-glx ">=nvidia-glx-1.0.7174-r1"

The ask is to make sure that it is downloading the newest kernel. Then edit your xorg.conf file and make sure it has this line:

Option "NvAGP" "1"

For some reason nvidia's agp and agpgart aren't playing nice together :cry:

Here is my video portion of xorg.conf if you run into any other problems with it:

Section "Device"
Identifier "GeForce 6800"
Driver "nvidia"
VideoRam 131072
Option "NvAGP" "1"
Option "NoRenderExtension" "false"
Option "RenderAccel" "true"
Option "AllowGLXWithComposit" "true"
Option "CursorShadow" "true"
Option "CursorShadowAlpha" "32"
Option "BackingStore" "true"
Option "dpms"
EndSection

Of course replace your own identifier and video ram in this. Make sure you reboot your computer first in order to start using the new module. For some reason modprobe -r nvidia and then modprobe nvidia doesn't load the new one until the computer is rebooted can anyone tell me why? Or is it just something that I did wrong. Anyways I've found the driver stable I've been playing ut2004 and doom3 all day without a hiccup. Nothing I've tried so far has crashed the driver. Which leads me to ask why it is still masked. Can someone answer that?


Surely this will help many people, just point a few things:

1. mtrr support does not interfere at all with nvidia driver usually, in fact its use is recomended. The rivafb support is discouraged as you said.

2. to make sure you are downloading the latest kernel you should have the lines
Code:
media-video/nvidia-kernel ~x86
media-video/nvidia-glx ~x86

instead of
Code:
=media-video/nvidia-kernel-1.0.7174
=media-video/nvidia-glx-1.0.7174-r1

in package.keywords.
The other way you will only get that version, even if there is one available with a greater version number. The ~x86 is not needed, but technically is the right way to express that you want to unmask for that concrete architecture.

3. Some of the options you used in xorg.conf causes problems with certain configuration and hardware, i marked them with >>>, so if anyone runs into trouble feel free to comment or delete them.
Code:

Section "Device"
    Identifier  "GeForce 6800"
    Driver      "nvidia"
    VideoRam    131072
    Option      "NvAGP" "1"
>>  Option      "NoRenderExtension" "false"
>>  Option      "RenderAccel" "true"
>>  Option      "AllowGLXWithComposit" "true"
>>  Option      "CursorShadow" "true"
    Option      "CursorShadowAlpha" "32"
>>  Option      "BackingStore" "true"
    Option      "dpms"
EndSection


In fact the composite extension itselft is still unstable and should not be used but for testing purposes.
Hope this helps. :wink:
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Mon Apr 11, 2005 12:24 am    Post subject: Reply with quote

Looking closer to the code I fount a typo in your config file.
Code:

Option      "AllowGLXWithComposit" "true"

Should be
Code:

Option      "AllowGLXWithComposite" "true"

Note the final 'e'. If you use composite extension then change that line, if you dont, remove it since you dont need it. If you use composite and that line is not (or is misstyped) the GLX extension will not load, because it is considered to be dangerous when both are enabled at the same time. :wink:
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Master Shake
l33t
l33t


Joined: 10 Apr 2005
Posts: 755
Location: Wilmington, Delaware

PostPosted: Mon Apr 11, 2005 12:26 am    Post subject: Re: Nvidia-kernel 1.0.7174 for x86 Reply with quote

Yes, sorry I ment to say to include mtrr and to exclude rivafb. Infact the kernel will not compile if you exclude mtrr support. thanks for pointing that out!
Back to top
View user's profile Send private message
kayali
n00b
n00b


Joined: 22 Dec 2004
Posts: 33

PostPosted: Mon Apr 11, 2005 9:08 pm    Post subject: Reply with quote

Wow... At least a guide that explains how to get the latest nvidia drivers!! We really needed that! It should be made sticky :p
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Tue Apr 12, 2005 12:52 am    Post subject: Reply with quote

Moved from Unsupported Software
_________________
Gentoo: it's like wiping your ass with silk.
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