HOWTO Unmask Nvidia Drivers
From Gentoo Linux Wiki
- This page is a candidate for deletion
- Reason given: Everything appears to be in HOWTO nVidia Drivers and the article stil largely refers to the obsolete nvidia-kernel/-glx packages.
- If you disagree with its deletion, please explain why on its discussion page.
- If you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
- Make sure no other pages link here and check the page's history before deleting.
Contents |
[edit] Introduction
The latest "stable" nvidia drivers in portage is still 1.0-6629; this is pathetic. Not only do these old drivers lack support for newer cards, they also have known issues with udev & new (2.6.13+) kernels. This guide will show you how to get the latest "testing" (~keyword) drivers which fix both of these issues and more.
This is now out of date as the Nvidia Drivers packages have been combined into one ebuild which is now known as x11-drivers/nvidia-drivers and it is currently masked as testing but is the latest version in Portage Admiral Trigger Happy 02:45, 21 July 2006 (UTC)
[edit] Unmasking
There are 2 easy ways to unmask nvidia-kernel & nvidia-glx:
[edit] By Hand
Old Versions: To unmask these packages, add these lines to /etc/portage/package.keywords with your favorite text editor:
media-video/nvidia-kernel media-video/nvidia-glx
New Version: Unmask the drivers by adding the following line to /etc/portage/package.keywords (Make sure to change ARCH to x86, or your relavant arch:
x11-drivers/nvidia-drivers ~ARCH
[edit] With a One-liner Script
This simple script will add the two unmask lines just like the "By Hand" method above:
echo -e "media-video/nvidia-kernel\nmedia-video/nvidia-glx" >> /etc/portage/package.keywords
[edit] Emerging
Run emerge -av nvidia-glx and confirm that it is now going to install the latest version. If so, say yes! If not, check your make.conf and make sure you have ACCEPT_KEYWORDS="~x86" in place.
[edit] Finishing up
If you are just upgrading from an old version and already had the old module loaded, you will need to unload & reload the kernel module before trying to startx:
rmmod nvidia && modprobe nvidia
And that should do it.
