Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92238646
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-06 14:27:35

 原文

      我没有完整的翻译,只把我认为非常重要的贴了上来。

  

  很多有用的信息。解释了很多了问题

  预先准备先用

  glxinfo | grep direct

  看看你的系统有没有打开 direct rendering,这很关键。正常情况下,应该打开了,看到

  direct rendering: Yes

  如果你的机器上没有 glxinfo 这个命令,就要装上 mesa-utils

  或者你可以用我自己发现的方法

  cat /var/log/Xorg.0.log | grep direct

  正常情况下应该返回

  Indirect CPU to Screen color expansion

  (II) I810(0): direct rendering: Enabled

  呵呵,我是 intel 的集成显卡。各人的显卡驱动不同的。

  如果你没有看到相应的内容,请先去装上合适的驱动。一般来说 INTEL 的显卡没什么问题,NVIDIA 和

  ATI 的就要装上各自的驱动了。原因不用我多说了,相信各位用 NVIDIA 和 ATI 的都很主动地装过了。

  以下2个地址,是给有疑问的人准备的。

  

  A 3D desktop with Compiz, showing a very handy feature : "expose" (a la Mac OS X).

  xorg.conf接下,要对 /etc/X11/xorg.conf 进行一点小小的改动。

  在Section "Module"中第一行,加上

  Load "dbe"在Section "Device"中最后一行,加上

  Option "XAANoOffscreenPixmaps" "true"如果你还没有Section "Extensions",就在xorg.conf中任意位置加上

  Section "Extensions"

  Option "Composite" "Enable"

  EndSectionNVIDIA用户应该再在Section "Screen"中加下这2行:

  Option "AddARGBGLXVisuals" "true"

  DefaultDepth 24以及在Section "Device"中还有这2行:

  Option "AllowGLXWithComposite" "true"

  Option "TripleBuffer" "true"

  AIGLX从xorg7.1开始,AIGLX 就已经被整合进 X server了,正常情况下,它是自动加载的。用

  cat /var/log/Xorg.0.log | grep -i aiglx

  来看一下,正常情况下看到(==) AIGLX enabled,可以忽略所有的警告。如果有人知道它们的意思,

  请告诉我。反正我是用 google 找了半天都没知道是什么意思。

  如果没看到相应的内容,就需要手工添加了。

  在Section "ServerLayout"中加上:

  Option "AIGLX" "true"需要注意的是,严格地讲,从1.0-9629版本起,NVIDIA drivers 就不用 AIGLX 了,但配置文件还

  是一样的。

  compiz接下来,安装 compiz

  sudo apt-get install compiz然后把 compiz 加入你的桌面环境(Gnome, KDE, or Xfce)中去,并把它作为自动启动项目。各人的桌面各个清楚,这个我就不翻译了。

  Gnome

  Go in Desktop -> Preferences -> Sessions. Then choose the Startup Programstab and add an entry for Compiz :

  compiz --replace --fast-filter

  KDE

  Simply create a file ~/.kde/Autostart/compiz.desktopwith this content :

  [Desktop Entry]

  Encoding=UTF-8

  Exec=compiz --replace gconf &kde-window-decorator &

  GenericName[en_US]=

  StartupNotify=false

  Terminal=false

  TerminalOptions=

  Type=Application

  X-KDE-autostart-after=kdesktop

  Xfce

  Simply edit the file /usr/share/desktop-base/profiles/xdg-config/xfce4-session/xfce4-session.rc(or /etc/xdg/xfce4-session/xfce4-session.rc) and replace xfwm4with compiz:

  Client0_Command=compiz --fast-filter

  That's it. Restart the X server and you are good to go.

    

  

  The "film view", showing multiple desktopsTips可从 这里找到我的配置文件 xorg.conf

  用这条命令可以看到完整的 compiz 快捷方式列表

  grep -A 2 '<' /usr/share/gconf/schemas/compiz.schemas或者你在控制台下运行 gconf-editor,找Apps->compiz->plugins,下面就有说明的。

  比较好玩的就是 ctrl-alt-左键拖动,更多的自己看吧。网上也有操作的,主页上也有说明。

  如果你碰到任何奇怪的问题,比如没有窗口边框之类的,只要删除 compiz 的 gconf 记录

  rm -r ~/.gconf/apps/compiz/然后,再重启 GNOME 就行了。如果还是有问题,除了删除 compiz 的 gconf 记录外,再删除 ~/.config 文件。这样应该有用了,再不行的话,你找原作者说去吧。呵呵。

阅读(317) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~