User Tools

Site Tools


linux:gentoo:enablecompiz

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:gentoo:enablecompiz [2010/04/05 20:13] 114.219.93.197linux:gentoo:enablecompiz [2016/05/05 13:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 启用compiz时遇到的几个问题 ======
 +
 +
 +====== 屏幕空白 ======
 +
 +1.输入compiz时,屏幕是一片空白
 +
 +首先参考nvidia教程:http://www.gentoo.org/doc/en/nvidia-guide.xml
 +注意几个地方:
 +<code>Section "Device"
 +  Identifier "nVidia Inc. GeForce2"
 +  Driver     "nvidia"
 +  VideoRam   65536
 +EndSection
 +</code>
 +
 +<code>
 +Section "Module"
 +  (...)
 +  # Load  "dri"
 +  Load  "glx"
 +  (...)
 +EndSection
 +</code>
 +
 +<code>
 +Section "Screen"
 +        Identifier "Screen0"
 +        Device     "Card0"
 +        Monitor    "Monitor0"
 +        SubSection "Display"
 +                Viewport   0 0
 +                Depth     1
 +        EndSubSection
 +        SubSection "Display"
 +                Viewport   0 0
 +                Depth     4
 +        EndSubSection
 +        SubSection "Display"
 +                Viewport   0 0
 +                Depth     8
 +        EndSubSection
 +        SubSection "Display"
 +                Viewport   0 0
 +                Depth     15
 +        EndSubSection
 +        SubSection "Display"
 +                Viewport   0 0
 +                Depth     16
 +        EndSubSection
 +        SubSection "Display"
 +                Viewport   0 0
 +                Depth     24
 +        EndSubSection
 +
 +        Option "AddARGBGLXVisuals" "True"
 +
 +EndSection
 +   
 +
 +</code>
 +
 +   Option "AddARGBGLXVisuals" "True"
 +   
 +还要记得启用nvidia,之前跑glxgears分数很低,100多,所以肯定是出问题了,用eselect opengl list,找到可用了,然后设置成nvidia
 + <code>
 +gentoo-pjq pjq # eselect opengl list
 +Available OpenGL implementations:
 +  [1]   nvidia *
 +  [2]   xorg-x11
 +gentoo-pjq pjq # eselect opengl set nvidia
 +Switching to nvidia OpenGL interface... done
 +</code>
 +重启下X,再跑下glxgears,到了8000多
 +
 +====== 没有标题栏 ======
 +上面那些弄好后,可以运行compiz,屏幕不是空白的,但没有标题栏。
 +
 +安装一个
 +  emerge fusion-icon 
 +使用它来管理compiz,可以设置window manager,和Window Decorator.
 +
 +再安装
 +  emerge  emerald
 +  
 +在这里搜到解决方法,原来还需要在CCSM里面勾选上Effects->Window Decoration,
 +
 +http://forum.ubuntu.org.cn/viewtopic.php?f=94&t=113967&view=next
 +
 +选上它之后,再在fusion-icon里,启用compiz,终于标题栏出现了,但奇怪的是不能用鼠标移动窗口。
 +====== 窗口不能移动 ======
 +找到这个:http://forum.ubuntu.org.cn/viewtopic.php?f=94&t=67329&view=next
 +
 +原来还要在CCSM里面,勾选Window Management->Move Window.
 +
 +选上它,终于可以用鼠标移动了。
 +
 +现在终于成功启用了compiz,剩下的就是一些功能特效设置了。
 +
 +
 +
 +====== 当前桌面 ======
 +{{:linux:gentoo:2010-04-05-235845_1280x1024_scrot.png?300|}}
 +
 +