One final note. If this post is not helpful, feel free to remove it
This is not:
- How to compile something.
How to emerge software.
How to troubleshoot Xorg.
- You have Xorg installed along with your favorite window manager, with appropiate OpenGL support (If not, do so and we'll be waiting on ya

You have a basic grasp of the portage system
You know how to edit a config file
Code: Select all
bash-2.05b$ lsmod |grep nvidia
nvidia 4561628 12
bash-2.05b$Code: Select all
rmmod nvidiaAdd:
Code: Select all
=media-video/nvidia-kernel-1.0.7174 ~amd64
=media-video/nvidia-glx-1.0.7174-r1 ~amd64Now we do the following:
Code: Select all
bash-2.05b$ emerge -v nvidia-kernel nvidia-glx -pMeet back here after that
Done? Congrats. Good job, On we go.
The next thing to do is to setup our OpenGL libraries to point to our newly installed Nvidia libraries. This is done by:
Code: Select all
bash-2.05b$ opengl-update nvidiaNow there is only one step left.
HOWEVER, FIRST: Ensure that you have PCI Hotpluging enabled in your kernel.
Now I don't know why, but the Nvidia drivers REQUIRE the PCI Hotplugging to be enabled. IF you go through the above steps and you've already done the last step, which is modifying the xorg.conf file (and is what we're about to do now), and Xorg reports:
Then missing PCI Hotplugging is probably the cuase.(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
(EE) Screen(s) found, but none have a usable configuration.
Now on to the last step:
Open /etc/X11/xorg.conf and find the lines for your display enteries. They will be similar to :
Code: Select all
# Device configured by xorgconfig:
Section "Device"
Identifier "<SOME TEXT HERE>"
Driver "nv"
#VideoRam 262144
# Insert Clocks lines here if appropriate
EndSectionCode: Select all
Section "Device"
Identifier "<SOME TEXT HERE>" ## DO NOT CHANGE THIS (or you will need to change the Screen setting too)
Driver "nvidia"
Option "NvAGP" "1" # use nvidias agp - 1 , agpgart -2 , agpgart,nvagp -3
Option "NoLogo" "true"
Option "NoRenderExtension" "false"
Option "RenderAccel" "true"
Option "AllowGLXWithComposit" "true"
Option "CursorShadow" "true"
Option "CursorShadowAlpha" "32"
Option "BackingStore" "true"
EndSectionThere you are! Save your changes and try it out!
Also as responded by a user of this howto, there is sometimes an issue with the default depth so I will list the response below:
I hope this helps someone. Thanks again to all those who have helped. And thanks to Alton whom first tipped me off to trying the PCI Hotplugging bit.AnlaShok wrote:[...]Then just now I chanced across this post in this thread http://forums.gentoo.org/viewtopic-t-321141.html
Adding that DefaultDepth line solved all my problems, it worked brilliantly the first time, straight into X at 1280x1024-24bit, nvidia working, glxinfo working everything working. [....]NeddySeagoon wrote:brent_weaver,
Your DefaultDepth in your xorg.conf must be 16 or 24 for GLX to start.
Like this:-Code: Select all
Section "Screen" Identifier "Screen 1" # Device "* Generic VESA compatible" Device "NVIDIA GeForce" Monitor "CTX 950ST" DefaultDepth 16
And again if anyone wants, feel free to respond with corrections/updates/etc..





