- 论坛徽章:
- 0
|
Freebsd 7.1RC1 下 3D桌面配置 intel 显卡 + compiz-fusion + avant-window-navigator
前提条件为你已经装好了gnome桌面环境。
1、显卡配置
我的显卡具体型号为
- vendor = 'Intel Corporation'
- device = '82945G Integrated Graphics Controller'
- class = display
- subclass = VGA
复制代码
其它型号的Intel显卡应该也差不多。。
显卡驱动我是安装的ports中的 xf86-video-intel-2.4.2
2、内核配置
内核配置中加入
- device drm # DRM core module required by DRM drivers
- device i915drm # Intel i830 through i915
复制代码
3、xorg.conf 配置
在 ServerLayout 小节加入
Option "AIGLX" "true"
在 Module 小节中 确认有
在7.1 中这些是默认打开的。
加入以下 小节
- Section "Extensions"
- Option "Composite" "Enable"
- EndSection
复制代码
Device 小节 加入
- Option "XAANoOffscreenPixmaps" "true"
- Option "DRI" "true"
复制代码
在 Screen 小节中
类似
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
加入 DefaultDepth 24
然后 找一个适合你的分辨率 改成下面的样子,
- SubSection "Display"
- Viewport 0 0
- Depth 24
- Modes "1440x900"
- EndSubSection
复制代码
最后加入
- Section "DRI"
- Group 0
- Mode 0666
- EndSection
复制代码
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
复制代码
make install clean
写一个start-compiz 脚本 内容如下
- #!/bin/sh
- export LIBGL_ALWAYS_INDIRECT=1
- export INTEL_BATCH=1
- compiz --replace --indirect-rendering --sm-disable ccp
复制代码
现在运行 start-compiz 可以实现3D桌面了。。
如果运行 没有边框尝试以下设置
然后在 gnome 菜单-》系统-》首选项-》compiz setting manager 中
确保 Effects 中的 window decoration 选中,点击它进入设置选项 在 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 就出现了。。
我安装 了 mac4lin的皮肤 现在出 rc1了。
这儿有 关于 nVidia
http://www.freebsd.org/doc/en/articles/compiz-fusion/
的配置文章
[ 本帖最后由 fengyun8972 于 2008-12-18 09:05 编辑 ] |
|