- 論壇徽章:
- 0
|
Freebsd 7.1RC1 下 3D桌面配置 intel 顯卡 + compiz-fusion + avant-window-navigator
前提條件為你已經(jīng)裝好了gnome桌面環(huán)境。
1、顯卡配置
我的顯卡具體型號為
- vendor = 'Intel Corporation'
- device = '82945G Integrated Graphics Controller'
- class = display
- subclass = VGA
復(fù)制代碼
其它型號的Intel顯卡應(yīng)該也差不多。。
顯卡驅(qū)動我是安裝的ports中的 xf86-video-intel-2.4.2
2、內(nèi)核配置
內(nèi)核配置中加入
- device drm # DRM core module required by DRM drivers
- device i915drm # Intel i830 through i915
復(fù)制代碼
3、xorg.conf 配置
在 ServerLayout 小節(jié)加入
Option "AIGLX" "true"
在 Module 小節(jié)中 確認(rèn)有
在7.1 中這些是默認(rèn)打開的。
加入以下 小節(jié)
- Section "Extensions"
- Option "Composite" "Enable"
- EndSection
復(fù)制代碼
Device 小節(jié) 加入
- Option "XAANoOffscreenPixmaps" "true"
- Option "DRI" "true"
復(fù)制代碼
在 Screen 小節(jié)中
類似
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
加入 DefaultDepth 24
然后 找一個適合你的分辨率 改成下面的樣子,
- SubSection "Display"
- Viewport 0 0
- Depth 24
- Modes "1440x900"
- EndSubSection
復(fù)制代碼
最后加入
- Section "DRI"
- Group 0
- Mode 0666
- EndSection
復(fù)制代碼
xorg.conf 配置完成后要重起一下才能生效。
4、安裝 compiz-fusion
cd /usr/ports/x11-wm/compiz-fusion
在make config 中 去掉gconf支持 ,gconf 存在的話會比較麻煩
- │ │ [X] EXTRA Enable extra plugins │ │
- │ │ [ ] UNSUP Enable unsupported plugins │ │
- │ │ [X] EMERALD Enable emerald window decorator │ │
- │ │ [ ] GCONF Enable the gconf backend
復(fù)制代碼
make install clean
寫一個start-compiz 腳本 內(nèi)容如下
- #!/bin/sh
- export LIBGL_ALWAYS_INDIRECT=1
- export INTEL_BATCH=1
- compiz --replace --indirect-rendering --sm-disable ccp
復(fù)制代碼
現(xiàn)在運行 start-compiz 可以實現(xiàn)3D桌面了。。
如果運行 沒有邊框嘗試以下設(shè)置
然后在 gnome 菜單-》系統(tǒng)-》首選項-》compiz setting manager 中
確保 Effects 中的 window decoration 選中,點擊它進入設(shè)置選項 在 command 那里 填寫 emerald
5、如果想裝一個 dock玩玩的話,可以裝 avant-window-navigator 這個軟件 沒有 ports 只能手動安裝
到這里 https://launchpad.net/awn/+download 下載 0.2.6 版本。
tar zxvf avant-window-navigator-0.2.6.tar.gz
cd avant-window-navigator-0.2.6
fetch http://launchpadlibrarian.net/12276028/xutil_fix_v3.patch
patch -p0 < xutil_fix_v3.patch
./configure LDFLAGS="-L/usr/local/include -L/usr/local/lib"
完成后不要急
cd po
vi Makefile 在 46,47 行 編輯下面的樣子
GMSGFMT=msgfmt
MSGFMT=msgfmt
cd ../
gmake && gmake install
運行 avant-window-navigator
dock 就出現(xiàn)了。。
我安裝 了 mac4lin的皮膚 現(xiàn)在出 rc1了。
這兒有 關(guān)于 nVidia
http://www.freebsd.org/doc/en/articles/compiz-fusion/
的配置文章
Screenshot.png (1.16 MB, 下載次數(shù): 66)
下載附件
2008-12-15 09:13 上傳
Screenshot-2.png (717.26 KB, 下載次數(shù): 47)
下載附件
2008-12-15 09:18 上傳
[ 本帖最后由 fengyun8972 于 2008-12-18 09:05 編輯 ] |
|