說得有些複雜,你可以不用理會這些,直接執行我羅列的那幾個命令就行了。
方法一:網上有說In some cases ,the new install Gforce Drivers do not supporte the "nouveau" module,
它指出某些情況下(可能是因為更新了核心後),原來的nvidia driver與nouveau有衝突。
建議在grub kernel行中禁用nouveau.也就是加入參數rdblacklist=nouveau就行了。
比如:
menuentry "GNU/Linux"{
set root='(hd0,5)'
linux /boot/vmlinuz* root=UUID=6c49b6c5-04d3-4da7-b629-a3f4aae86616 ro rdblacklist=nouveau rhgb
initrd /boot/initramfs-2.6.34.7-61.fc13.i686.img
}
=============================================
方法二:我的做法是重新升級核心,再更新nvidia的驅動,問題解決了
下面提到每次升級核心後(應該是針對Nvidia部分顯卡),我們都需要重新安裝顯卡驅動,否則會出現一些問題。
參見這個資訊:http://forums.fedoraforum.org/showthread.php?t=228421
Re this problem. Nothing to do with atd!<br />When we installed the nvidia driver, if we'd remembered, it said<br />there is a bit to do to make the kernel interface module?<br />See http://us.download.nvidia.com/XFree8...ection-03.html<br />So, each time we get a kernel update, we need to 're-install' the drivers?<br />My sequence was:<br />1. In /etc/inittab<br />id:5:initdefault:<br /># DP for updating the NVIDIA drivers<br />#id:3:initdefault:<br />Comment out the '5' line<br />Uncomment the '3' line<br />This makes it boot into non graphical mode, needed to mess with X windows.<br />reboot. This brings up the most recent kernel. Need to run that so the<br />nvidia driver installation can find a matching interface module?<br />run your installation script (as root - indeed all this stuff needs to be<br />done as root).<br />Pre-conditions for this.<br />1. You have your network active - so it can go ask nvidia server if<br />there is a compiled interface - not likely with FC11<br /># service network start<br />2. You have sources for the kernel, needed to compile the interface software?<br /># yum install kernel-PAE-devel<br />This may not match your kernel! Use<br /># uname -a<br />to find out which kernel you have. I think this includes all the headers.<br />if you get a message about that, try<br /># yum install kernel-headers<br />3. run the nvidia driver file<br /># chmod +x NVIDIA-Linux-x86-185.18.36-pkg1.run<br />(the number might be different. That's todays latest version)<br />Get it from </p><p>http://www.nvidia.com/object/linux_d...185.18.36.html</p><p>Follow the screen instructions.<br />Should all build OK.<br />4. At the end it offers to 'run nvidia-xconfig' .....<br />If you've done all this, skip this by choosing NO<br />That's just the configuration that you've already done.<br />5. Change<br />/etc/inittab<br />id:5:initdefault:<br /># DP for updating the NVIDIA drivers<br />#id:3:initdefault:<br />Back to runlevel 5, full X windows graphical mode.<br />reboot...<br />It all worked for me.<br />YMMV
好吧,那我就按照以上的步驟來做吧:
1. 下載nvidia driver<br /># chmod +x Downloads/NVIDIA-Linux-x86-260.19.12.run<br />2 進入runlevel3並安裝顯卡驅動:<br />#sh Downloads/NVIDIA-Linux-x86-260.19.12.run<br />#nvidia-xconfig<br />註:它可能會提示:disable nouveau kernel driver,點確認就可以了。<br />註:安裝完畢後可執行這個命令進行自動設定: 'run nvidia-xconfig' ..<br />3.(或許這一步不是必須的,原因在方法一中已經說明)開啟/boot/grub2/grub.cfg,在linux行添加rdblacklist=nouveau,比如:<br />menuentry "GNU/Linux"{<br /> set root='(hd0,5)'<br /> linux /boot/vmlinuz* root=UUID=6c49b6c5-04d3-4da7-b629-a3f4aae86616 ro quiet rdblacklist=nouveau rhgb<br /> initrd /boot/initramfs-2.6.34.7-61.fc13.i686.img<br />}
方法3: 參考:nvidia Nvidia guide for F13 Development. 中的步驟安裝顯卡(其中附帶了更新核心的步驟)
裡面提到了:
For GeForce 6, 7, 8, 9 & 200 series cards<br />Code:<br />su<br />rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm<br />yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686<br />If you use a PAE kernel<br />Code:<br />su<br />rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm<br />yum install kmod-nvidia-PAE<br />Or (akmod builds the required kmod on bootup )<br />Code:<br />su<br />rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm<br />yum install akmod-nvidia xorg-x11-drv-nvidia-libs.i686<br />2. Edit grub.conf ( if you omit this step the driver will fail to work )<br />this command adds rdblacklist=nouveau option to /boot/grub/grub.conf<br />
按照上面的步驟執行以下命令就OK了:
<strong>1.添加yum 鏡像並安裝nvidia顯卡驅動。<br /># rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm<br />#yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686<br />2.更新核心<br />#yum install kernel-devel<br />ls /boot/vmlinuz* #你可以用這個命令查看下核心。<br />3.手動修改/boot/grub2/grub.cfg,(也可使用grub2-mkconfig自動修改)<br /></strong>
主要是先裝核心,再在多使用者命令模式(run level 3)下安裝顯卡(如果官網的顯卡不行,就按照上面提到的針對各種kernel顯卡的安裝方法安裝),安裝顯卡驅動前先卸載掉當前的顯卡(rpm -qa|grep nvidia,Nvidia提供的用命令nvidia-uninstall卸載),記得加上rdblacklist=nouveau.
另外,參考:disable nouveau kernel driver