LinuxGem
此处为老的 LinuxGem,新版 LinuxGem 请移步 www.linuxgem.org

糟糕的 Nvidia Linux 驱动? ( 一 )

galeki posted @ 2008年7月29日 01:43 in 系统与硬件管理 with tags nvidia 驱动 , 5548 阅读

糟糕的 Nvidia Linux 驱动?

汗,是不是写错了? Nvidia 的 Linux 驱动不是一直广受赞誉,印象中 ATI 的 Linux 驱动才一直是很糟糕。

但是现在状况似乎有些变化……

如果你正在 Linux 上使用一块 Nvidia 的比较新的显卡,比如 8000 和 9000 系列,也许你遇到下面这些问题:

  • Firefox 在浏览某些网站的时候,拖动起来非常卡 ( 比如: http://www.tuaw.com ) ;切换标签页的时候也很卡。
  • 调整应用程序窗口尺寸的时候,会非常卡。
  • KDE 4/ Qt 4 程序卡得基本没法用。
  • 虽然可以流畅的跑 Compiz,但是某些特效会很卡,包括缩放窗口。

嗯嗯,也许你一直抱怨 Firefox 的性能不好,KDE 4 很慢,其实都不是,罪魁祸首是 Nvidia 的 Linux 驱动……

不管是 169、173,还是最新的 177 beta 驱动,都在 8000 和 9000 系列显卡上表现出很糟糕的 2D 性能。3D 性能还是很完美的,所以你可以流畅的玩 Doom,但是却不能流畅的浏览网页。

详细的情况可以参考 Nvnews 论坛的帖子:

nVidia 8000/9000 Series Performance Issues

从上面的帖子可以看出,受难的人真不少,甚至还波及到了某些 7000 和 GT200 系列显卡。

暂时的缓解方法

当然最好的情况就是 Nvidia 能够听到 Linuxer 的心声,在新版的驱动中修正这个严重的 bug,目前只好等待。闭源驱动的弱点,充分的展现了出来……

国外的网友尝试出一些缓解上面这些问题的设置,如果你正在被上面的问题所困扰,可以尝试一下,效果在不同的显卡上差异很大,但是总体上都会有不少的改善。

首先,安装最新的 177 beta 驱动,然后尝试运行:

nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1

如果你正在使用 177 的驱动并且正在运行着桌面,那么可以直接在终端窗口运行此命令,不需要重启 X。

我的显卡是 8600GTS,运行上面的命令之后,窗口缩放的性能变得可以接受了,如果对你也有效的话,可以把上面的命令添加到 ~/.xinitrc 中。

另外,还可以在 xorg.conf 中的  Section "Device" 中加入:

Option    "PixmapCacheSize" "300000"
Option    "OnDemandVBlankInterrupts" "True"

然后重启 X,在我这里,重启 X 后,Firefox 拖动网页卡的现象大大缓解了。

如果你想比较流畅的运行 KDE 4,那么可以参考一下:

http://techbase.kde.org/User:Lemma/GPU-Performance

上面也列出了一些 8000 之后显卡支持的 Option 选项,可以尝试打开后看看效果:

Options that are said to work well on 8xxx cards but are untested (by me)

  • Option "RenderAccel" "True"
    • enabled by default
  • Option "TripleBuffer" "True"
    • Enables triple buffering. "Decreases the time an application stalls while waiting for vblank events, but increases latency slightly" (NVIDIA Readme)
  • Option "DamageEvents" "True"
    • Recommended by NVIDIA if running composite glx, increases performance, enabled by default
  • Option "UseCompositeWrapper" "True"
    • Enables the X server's composite wrapper instead of the builtin one.
  • Option "AllowIndirectPixmaps" "True"
    • Could improve hardware rendering on G80 cards with more than 256 MB of video memory.
  • Option "BackingStore" "True"
    • Cache overlayed areas in case they get redisplayed later
  • Option "PixmapCacheSize" "200000"
    • allocate said number of pixels for pixmap caches

也可以定期关注一下前面的 Nvnews 帖子,上面也会不断更新一些最新的解决办法,你也可以把你的显卡型号,和上面这些措施的效果 post 到上面去分享一下。

Nvidia or ATI?

我手上没有 ATI 显卡,不知道 ATI 显卡的情况会好多少,不过如同上面 Nvnews 帖子的作者所说,他帮朋友在 Linux 上装了块 ATI 显卡,并且 “... the performance was amazing all round. 2D/3D Linux/Windows, everything”

看来,现在情况确实有些变化,虽然 Nvidia 显卡在 Linux 上的 3D 性能有一些优势,但是毕竟 2D 性能才是日常应用的关键,并且 ATI 的驱动也在不断进步,3D 性能不济的状况也比以前大大改善了。

如果你正要装机运行 Linux,并且不会在 Linux 上天天玩 3D 游戏的话,那么至少在 Nvidia 修正这个 bug 前, ATI 是比 Nvidia 更好的选择。

kopision 说:
2008年7月29日 02:38 刚换了8500GT,楼主的文章真是及时雨呢,收下了,感谢~~
lpink 说:
2008年7月29日 04:50 8800U...同样郁闷中...
loujch 说:
2008年7月29日 05:29 老电脑,老显卡!没有任何问题,^_^
tian 说:
2008年7月29日 06:15 我说怎么换了个显卡还比原来慢了呢
lh 说:
2008年7月29日 06:45 A卡用户票过,早日开源对谁都好
suxixb 说:
2008年7月29日 06:45 问一下,一定要用 177 beta 驱动吗?
galeki 说:
2008年7月29日 07:14 第一条 nvidia-settings 命令必须要 177 驱动的支持才能有效。
Riqe 说:
2008年7月29日 21:26 A卡在Linux下玩大型游戏?算了吧,除非关掉compiz。不然屏幕闪死你。
Carlos 说:
2008年7月30日 07:16 虽然更新比较慢,但是每个帖子都言之有物。 继续关注!
yui 说:
2008年7月30日 23:30 firefox按照上面设置了之后果然快了,tks
leeight 说:
2008年8月01日 07:56 唉,等着吧
wzhy 说:
2008年8月02日 05:52 呵呵,回家我得试试我那块8600GT的显卡,我说怎么有时候它就是卡的历害呢?原来可能是显卡驱动捣蛋啊!
dskai 说:
2008年8月03日 17:55 A卡的开源驱动也很烂好不好,firefox超慢
slacker 说:
2008年8月24日 07:29 nv linux驱动很不错了,一直再改进,和win下驱动想媲美的性能 ati就。。。。估计永远不会有让人满意的那一天了
zt 说:
2008年9月01日 23:12

不知为什么,VLC的窗口调整大小很方便啊,其它很多都卡的不行了

Head_small
galeki 说:
2008年9月02日 12:00

也许 VLC 默认的视频渲染方式和其他的不同吧

BSEM HSLC Blueprint 说:
2022年5月17日 17:40

The Latest Manipur HSLC Blueprint of Exam Pattern will help Students Understand can Practice These Question Paper before Taking the Exam in the Future, Manipur Board 10th Marking Scheme 2022 is one of the Smart ways to Prepare for the Public Exam, Students who will Appear for the BSEM HSLC Exams can Practice the Question Paper Difficulty Level of the Exam along with the Marking Scheme. BSEM HSLC Blueprint Manipur HSLC Marks Distribution Pdf Free Download is Prepared by Experts with in depth knowledge of each topic, Acing the board exams becomes with the help of these BSEM 10th Blueprint.

SCERT Haryana 2nd Cl 说:
2022年7月02日 18:32

State Council of Education Research & Training (SCERT) Haryana Redy to Prepare Elementary School Syllabus Academic year 2023, SCERT Haryana, Gurugram Organisation Owned by the Department of Elementary Education, Government of Haryana and helps to Organize the Public Examinations at Primary School Levels Annually in the State of Haryana Through the Affiliated Schools. SCERT Haryana 2nd Class Book SCERT Haryana Every year Conducted 1st, 2nd, 3rd, 4th, 5th Class Final Exam Month of April, This Exam Date Sheet Available at official Website, SCERT Haryana has Disclosed the 1st , 2nd, 3rd, 4th, 5th Class Syllabus for Board Exam 2023.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter