说得有些复杂,你可以不用理会这些,直接执行我罗列的那几个命令就行了。
方法一:网上有说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! When we installed the nvidia driver, if we'd remembered, it said there is a bit to do to make the kernel interface module? See http://us.download.nvidia.com/XFree8...ection-03.html So, each time we get a kernel update, we need to 're-install' the drivers? My sequence was: 1. In /etc/inittab id:5:initdefault: # DP for updating the NVIDIA drivers #id:3:initdefault: Comment out the '5' line Uncomment the '3' line This makes it boot into non graphical mode, needed to mess with X windows. reboot. This brings up the most recent kernel. Need to run that so the nvidia driver installation can find a matching interface module? run your installation script (as root - indeed all this stuff needs to be done as root). Pre-conditions for this. 1. You have your network active - so it can go ask nvidia server if there is a compiled interface - not likely with FC11 # service network start 2. You have sources for the kernel, needed to compile the interface software? # yum install kernel-PAE-devel This may not match your kernel! Use # uname -a to find out which kernel you have. I think this includes all the headers. if you get a message about that, try # yum install kernel-headers 3. run the nvidia driver file # chmod +x NVIDIA-Linux-x86-185.18.36-pkg1.run (the number might be different. That's todays latest version) Get it from http://www.nvidia.com/object/linux_d...185.18.36.html Follow the screen instructions. Should all build OK. 4. At the end it offers to 'run nvidia-xconfig' ..... If you've done all this, skip this by choosing NO That's just the configuration that you've already done. 5. Change /etc/inittab id:5:initdefault: # DP for updating the NVIDIA drivers #id:3:initdefault: Back to runlevel 5, full X windows graphical mode. reboot... It all worked for me. YMMV
好吧,那我就按照以上的步骤来做吧:
1. 下载nvidia driver # chmod +x Downloads/NVIDIA-Linux-x86-260.19.12.run 2 进入runlevel3并安装显卡驱动: #sh Downloads/NVIDIA-Linux-x86-260.19.12.run #nvidia-xconfig 注:它可能会提示:disable nouveau kernel driver,点确认就可以了。 注:安装完毕后可执行这个命令进行自动配置: 'run nvidia-xconfig' .. 3.(或许这一步不是必须的,原因在方法一中已经说明)打开/boot/grub2/grub.cfg,在linux行添加rdblacklist=nouveau,比如: menuentry "GNU/Linux"{ set root='(hd0,5)' linux /boot/vmlinuz* root=UUID=6c49b6c5-04d3-4da7-b629-a3f4aae86616 ro quiet rdblacklist=nouveau rhgb initrd /boot/initramfs-2.6.34.7-61.fc13.i686.img }
方法3: 参考:nvidia Nvidia guide for F13 Development. 中的步骤安装显卡(其中附带了更新内核的步骤)
里面提到了:
For GeForce 6, 7, 8, 9 & 200 series cards Code: su 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 yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 If you use a PAE kernel Code: su 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 yum install kmod-nvidia-PAE Or (akmod builds the required kmod on bootup ) Code: su 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 yum install akmod-nvidia xorg-x11-drv-nvidia-libs.i686 2. Edit grub.conf ( if you omit this step the driver will fail to work ) this command adds rdblacklist=nouveau option to /boot/grub/grub.conf
按照上面的步骤执行以下命令就OK了:
1.添加yum 镜像并安装nvidia显卡驱动。 # 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 #yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 2.更新内核 #yum install kernel-devel ls /boot/vmlinuz* #你可以用这个命令查看下内核。 3.手动修改/boot/grub2/grub.cfg,(也可使用grub2-mkconfig自动修改)
主要是先装内核,再在多用户命令模式(run level 3)下安装显卡(如果官网的显卡不行,就按照上面提到的针对各种kernel显卡的安装方法安装),安装显卡驱动前先卸载掉当前的显卡(rpm -qa|grep nvidia,Nvidia提供的用命令nvidia-uninstall卸载),记得加上rdblacklist=nouveau.
另外,参考:disable nouveau kernel driver