Fedora 17:nvidia驱动

来自Shiyin's note
61.172.253.150讨论2013年4月12日 (五) 00:55的版本
跳到导航 跳到搜索

http://www.if-not-true-then-false.com/2013/fedora-18-nvidia-guide/

  • Add RPMFusion Repositories (Free and Non-Free)
yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-branched.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-branched.noarch.rpm
  • install nVidia proprietary drivers for GeForce 6/7/8/9/200/300/400/500 series cards
yum install kmod-nvidia
  • akmod is good option and easy way avoid problems on kernel updates and is best and only option if you use:
self-compiled kernel
older Fedora kernel
quickly changing kernels from updates-testing/rawhide
yum install akmod-nvidia
  • Remove / disable nouveau drivers from kernel initramfs
## Backup old initramfs nouveau image ##
 mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
## Create new initramfs image ##
dracut /boot/initramfs-$(uname -r).img $(uname -r)

以上方法不适用双显卡,具体参见http://forums.if-not-true-then-false.com/index.php?topic=110

---

  • bumblebee的作用是禁用nvidia独立显卡,需要使用独显时,使用”optirun 程序名“手动开启nvidia来运行需要加速的程序,如optirun vmware。
集显、独显分别运行 glxgears 或 glxspheres 测试,以glxgears为例:
➜  ~  glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
301 frames in 5.0 seconds = 60.107 FPS
300 frames in 5.0 seconds = 59.869 FPS
300 frames in 5.0 seconds = 59.856 FPS
➜  ~  optirun glxgears
2284 frames in 5.0 seconds = 456.677 FPS
2358 frames in 5.0 seconds = 471.540 FPS
2275 frames in 5.0 seconds = 454.942 FPS
  • 打开N卡设置:
optirun nvidia-settings -c :8