星期三, 四月 30, 2008

在 Ubuntu Linux 8.04 Hardy 安裝 ATI Driver(HP Compaq nc6000)

HP Compaq nc6000 這台 Notebook 之前也是一直升上來, 昨天由 7.10 升到 8.04, 進 Xwindow 發現, 整個視窗非常卡, 雖然知道是 Compiz 卡, 但是又不想關(視覺主義者), 猜想應該是 ATI 9600 Driver 的問題, 所以就試著更新看看 ATI Driver.

更新完後, 整個畫面流暢度超順, 趕快紀錄更新的過程~ 不過實際看起來, 應該不算是更新 ATI, 而是更新 fglrx 的 Driver Module.(反正不管是更新什麼, 畫面變順暢才是重點. :P)

參考自此篇: Ubuntu Gutsy Installation Guide

雖然是 Ubuntu Gutsy(7.10) 的文章, 不過 8.04 Hardy 一樣是可以用.

安裝步驟:

我在 7.10 就是這樣子安裝 Driver, 不確定沒有這些, 下述步驟能不能動, 總之當做有需要, 先裝就是了.

  1. apt-get install linux-restricted-modules-generic restricted-manager
  2. apt-get install xorg-driver-fglrx

手動安裝 Catalyst 8.4 Driver

  1. mkdir ati; cd ati
  2. wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8-4-x86.x86_64.run
  3. sudo chmod +x ./ati-driver-installer-8-4-x86.x86_64.run
  4. sudo apt-get update
  5. sudo apt-get install build-essential fakeroot dh-make debhelper debconf libstdc++5 dkms linux-headers-$(uname -r)
  6. sudo ./ati-driver-installer-8-4-x86.x86_64.run --buildpkg Ubuntu --autopkg
  7. sudo vim /etc/default/linux-restricted-modules-common
    DISABLED_MODULES="" 改成 DISABLED_MODULES="fglrx"
  8. sudo rm /usr/src/fglrx-kernel*.deb # 移除舊的 fglrx debs
  9. sudo dpkg -i xorg-driver-fglrx_8.476-0*.deb fglrx-kernel-source_8.476-0*.deb fglrx-amdcccle_8.476-0*.deb
  10. 這樣子就算安裝完成囉~

設定 Catalyst 8.4 Driver

  1. sudo aticonfig --initial
  2. sudo aticonfig --overlay-type=Xv
  3. sudo vim /etc/X11/xorg.conf
    Section "Device"
         [...]
    #     Driver "vesa"
         Driver "fglrx"
         Option "VideoOverlay" "on"
         Option "OpenGLOverlay" "off"
         [...]
    EndSection
  4. 附上我這一段完整的設定 /etc/X11/xorg.conf
    Section "Device"
    #   Driver      "ati"
        Identifier  "ATI Technologies, Inc. RV350 NP [Mobility Radeon 9600/9700 M10/M11]"
        Driver      "fglrx"
        Option      "VideoOverlay" "on"
        Option      "OpenGLOverlay" "off"
        Option      "RenderAccel" "true"
        Option      "XAANoOffscreenPixmaps"
        BusID       "PCI:1:0:0"
    EndSection
  5. 再來重新啟動即可.
相關標籤

this is comment icon 播放影片 [回覆]

請問一下, 照你的方法安裝, 會不會造成mplayer或類似播放器在播放影片時, CPU使用率爆增, 並且使得影片嚴重lag ?

我自己是用ATI 1700的卡(ASUS F3JP), 一開compiz就不能看影片.

Comment by Rickey (04/30/2008 14:41)

this is comment icon 回 Rickey [回覆]

會耶(剛剛測試的), 因為 notebook 很少拿來看影片, 都沒注意到這個... Orz...
不知是否有好的解法?

Comment by Tsung (04/30/2008 15:35)

this is comment icon [回覆]

之前有稍微爬過大陸人的論壇(ubuntu official forum)說是因為"影片輸出沒有直接寫到device上, 而是透過???"(我忘了, 而且不確定這句話對不對), 我有試著照他們的方法, 但是無效就沒有再追下去了 Orz

如果你試成功, 麻煩再告訴我們大家 :)

Comment by Rickey (04/30/2008 20:30)

this is comment icon 回 Rickey [回覆]

這..... 果然是很深奧... Orz..
我如果研究出來會寫出來的... 感恩... :)

Comment by Tsung (04/30/2008 20:32)

this is comment icon [回覆]

2. apt-get install xorg-driver-fglr
應該是
2. apt-get install xorg-driver-fglrx

Comment by Jackal (05/01/2008 03:01)

this is comment icon 回 Jackal [回覆]

感謝指正, 已修正~~ :)

Comment by Tsung (05/01/2008 08:40)

this is comment icon Envy? "Envy" is an application for Ubuntu Linux and Debian written in Python and PyGTK... [回覆]

已經有牛人寫出無痛安裝法
http://albertomilone.com/nvidia_scripts1.html
--
從ubuntu 7.10開始使用,我並沒有跑compiz,不過可以讓我的ATI X1300PRO跑出1680x1050我就已經很滿意了,雖然看影片會有問題 - 閃的很嚴重,聽說是ati driver的問題.
上禮拜dist-upgrade上到ubuntu 8.04以後,解析度依舊,看影片也正常.所以也就不研究是否有更新driver.

Comment by Ron (05/01/2008 20:21)

this is comment icon 回 Ron [回覆]

感謝提供.
Envy: It is an application (written in Python and PyGTK) which automates the installation of both ATI and Nvidia's proprietary driver on Ubuntu.
看起來安裝法簡單多了~ :)

Comment by Tsung (05/02/2008 09:00)

this is comment icon [回覆]

請問一下在"手動安裝 Catalyst 8.4 Driver"的5執行後出現:
現在沒有可用的套件 linux-headers-2.6.22-14-generic,但是它被其它的套件引用了。
這可能意味著這個套件已經消失或捨棄,
或者只能在其他原碼中找到
E: 套件 linux-headers-2.6.22-14-generic 還沒有可供安裝的候選版本

然後8.9步驟也失敗,說沒這目錄,這樣怎麼辦呢?
謝謝!!

Comment by zero (05/04/2008 10:32)

this is comment icon 回 zero [回覆]

在第 5 步那邊, 主要是要裝跟你 kernel 同一版本的 linux-headers, 所以你可以 apt-cache search linux-headers 2.6.22-14 尋找, 並安裝你現在跑的 kernel header.
第 8 步失敗無所謂, 然後第 9 步, 是因為第 5 步沒有裝 linux headers, 所以程式在 compile 時沒有產生檔案, 以致於 debian package 沒有產生出來, 只要第 5 步安裝完成後, 繼續往下再做即可.

Comment by Tsung (05/04/2008 10:51)

this is comment icon 感謝 [回覆]

感謝!!
問題解決了,終於回到以前的順暢了^^

ps:我很喜歡wowtree喔,從中得到很多資訊(主要是吃的XD),加油!!

Comment by zero (05/04/2008 16:31)

this is comment icon 回 zero [回覆]

呵呵~ 很高興您的愛用.. :)

Comment by Tsung (05/04/2008 21:35)

this is comment icon [回覆]

你好
我的筆電是ASUS的A3V
顯示卡是ATI X700
那我的Driver設定是不是和你的大同小異
只是有些地方因該要改成我的顯示卡的設定
那要怎麼改??

Comment by bartender (10/15/2008 10:03)

this is comment icon 回 bartender [回覆]

我沒有這一台, 沒辦法跟您確定做法, 但是下面有兩個網址, 您可以參考看看:
http://blog.xuite.net/ericsk0313/ubuntu/5310011
http://ubuntuforums.org/showthread.php?t=433461

Comment by Tsung (10/15/2008 10:27)
Add this page to del.icio.us Add this page to Yahoo Taiwan's bookmark Add this page to MyShare

發表迴響

標題

內容 (限制 1000 字)

暱稱

電子郵件

個人網頁


 authimage


PS: 若無法留言, 請先確認是否有打開 JavaScript, 造成您的困擾, 實在萬分對不起 Orz...(如果無法留言, 勞煩可以發信給我好嗎? 謝謝.)
PS2: 若您的留言被誤判, 我都會再自行看過, 不需要一直重覆張貼~