修正 Intel 圖形晶片在 Ubuntu 9.04 (jaunty) 的表現
前提過 Ubuntu 9.04 的亮點,這次提提 9.04 的問題。如果你的電腦是使用 Intel 圖形晶片,你應該會發覺 9.04 在繪圖的表現比 8.10 差了不小,尤其在 Compiz 很明顯,很多特效都不流暢。這是因為 9.04 是值幾項重要圖形技術的轉接期,Linux 核心 2.6.28 開始轉用 Graphics Execution Manager (GEM) 以改進和簡化 X server 的記憶體管理。X.Org 亦引入了 UXA 和 Direct Rendering Infrastructure (DRI2) 取替 EXA/XXA 和 DRI,壐加上 kernel-based mode setting (KMS)。大量新玩意出現,問題臭蟲自然不少,互相兼容亦很多問題。
現時 9.04 開啟了 GEM,但亦使用 EXA,而 UXA 又未隱定。部份使用舊 Intel 圖形晶片在 9.04 甚至出現鎖機現像。Ubuntu 的 release note 建議有鎖機問題的朋友可以停用 DRI (會同時停用 3D 和桌面特效 compiz) ,方法是在 /etc/X11/xorg.conf 的 Device 章節 (Section) 加上 Option "DRI" "off"。
如只是繪圖表現差或特效不流暢,可以啟用 “greedy” migration heuristic。我試了,果然 Compiz 回復 8.10 時的輰順。方法是 /etc/X11/xorg.conf 的 Device 章節 (Section) 加上 Option MigrationHeuristic" "greedy":
Section "Device"
Identifier "Configured Video Device"
Option "MigrationHeuristic" "greedy"
EndSection
參考資料:
- Ubuntu 9.04 and Intel graphics - The H Open Source: News and Features
- Ununtu 9.04 Release Notes
- Ubuntu Wiki: Troubleshooting Intel graphics performance issues
- Phoronix: Does A Greedy Intel Driver Improve Performance?


![[del.icio.us]](http://blog.xychen.org/wp-content/themes/fluidityrs/images/shareit/delicious.png)
![[Technorati]](http://blog.xychen.org/wp-content/themes/fluidityrs/images/shareit/technorati.png)
![[Google Bookmark]](http://blog.xychen.org/wp-content/themes/fluidityrs/images/shareit/google.png)
![[Yahoo MyWeb]](http://blog.xychen.org/wp-content/themes/fluidityrs/images/shareit/yahoo.png)
![[Furl]](http://blog.xychen.org/wp-content/themes/fluidityrs/images/shareit/furl.gif)








