http://intellinuxgraphics.org/install.html
之前在公司灌的Debian 4.0用起來實在很不順手,想說換成跟家裡一樣的Ubuntu 8.10。
沒想到灌好,啟動X Window時,迎接我的是全黑的畫面一 一。
由於新版的xorg.conf已經變得比較沒用處而簡單化了。在裡面找不到我所要的資訊,必須要在文字模式下#X -configure產生詳細的xorg.conf。
Section "Device"
Driver "intel"
由於不曉得是不是驅動程式的問題,我先把預設就有的vesa拿來使用
Driver "vesa"
#Driver "intel"
#reboot
可以正常進入X Window,證明是我的Intel_drv.so有問題
先去官網抓source code xf86-video-intel-2.7.0.901.tar.bz2
先把整個需求的環境給建立好(包括編譯時出錯所要加入的套件...由於紀錄檔忘記存檔...唉)
開發環境
#apt-get install kernel-package
#apt-get install libncurses5-dev
Error: autoreconf is not found
#apt-get install autoconf
error: 'PACKAGE_VERSION_MAJOR' undeclared here (not in a function)
error: 'PACKAGE_VERSION_MINOR' undeclared here (not in a function)
error: 'PACKAGE_VERSION_PATCHLEVEL' undeclared here (not in a function)
Error: xorg-macros is not found
#apt-cache search xorg-macros
#apt-get install xutils-dev
Error: libtoolize is not found
Error: possibly undefined macro: AC_DISABLE_STATIC
Error: possibly undefined macro: AC_PROG_LIBTOOL
#apt-get install libtool
Error: GL/g1.h is not found
----- 太肥, 裝太多沒必要得東西了 -----#apt-get install libghc6-opengl-dev
$ sudo apt-get install libxvmc-dev libgl1-mesa-dev
Error: libdrm is not found
#apt-get install libdrm
Error: syntax error near unexpected token `XINERAMA,'
XORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto)
#apt-get install xorg-dev
開始編譯新的驅動程式, 指定prefix=/usr, 則是會蓋掉原先driver, 不然預設是/usr/local/, 請小心使用.
#tar jxf xf86-video-intel-2.7.0.901.tar.bz2 -C /
#cd /xf86-video-intel-2.7.0.901
#sh autogen.sh
這邊會產生錯誤訊息,說明我的libdrm版本太舊(2.3.1)
所以去抓新的libdrm libdrm-2.4.9.tar.bz2
#tar jxf libdrm-2.4.9.tar.bz2 -C /
#cd /libdrm-2.4.9
#./configure --prefix=/usr/
#make;make install
!Success
再回去編譯
#sh autogen.sh
#./configure --prefix=/usr/
#make;make install
!Success
new driver put in /usr/lib/xorg/modules/drivers/.
Modify xorg.conf
Section "Device"
Driver "Intel"
#Driver "vesa"
#reboot
收工,大工告成,可以繼續使用我愛的Ubuntu了XD
沒有留言:
張貼留言