LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: newstudent

compiz问题:出不了边框(debian stable amd64)

[复制链接]
 楼主| 发表于 2008-1-8 23:13:45 | 显示全部楼层
这可是用户空间,是以用户名义启动程序的可能不行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-8 23:14:42 | 显示全部楼层

compiz fusion 官方文档:ATI

Settings in xorg.conf

If you are using Xorg 7.1 or 7.1.1, you can enable Composite via the Composite option in the Extensions section of /etc/X11/xorg.conf:

Section "Extensions"
    Option "Composite" "Enable"
EndSection

(If you don't have an Extensions section, create it as shown above).

You can enable AIGLX by adding the appropriate option to the ServerLayout section:

Section "ServerLayout"
    Option "AIGLX" "True"
EndSection

(Your xorg.conf file should already have a ServerLayout section).

Make sure this line is in the Device section:

    Option "XAANoOffscreenPixmaps" "true"

Now, restart your X server (by pressing <Control><Alt>backspace). When you log back in, it should be possible to run Compiz. Due to the fact that you are using AIGLX, you need to tell your 3D driver to use indirect rendering. This is done by setting the environment variable before the compiz command. What you enter in the terminal should look like this:

    *

       LIBGL_ALWAYS_INDIRECT=true compiz --replace --indirect-rendering --sm-disable ccp &
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-8 23:17:35 | 显示全部楼层

compiz.org 官方文档:nvidia

Modifying your xorg.conf file

Now you have to add a few lines you your xorg.conf file. This is necessary for Compiz to run properly. Failure to do this will result in no eye candy for you. There are two ways of doing this:

The easy way is to enter the following commands into a terminal:

sudo nvidia-xconfig --composite --render-accel --add-argb-glx-visuals

Now press Ctrl+Alt+Backspace to restart your X-server or reboot.

Note: These commands might not make the correct changes to your Xorg.conf file. So to make sure it has open the Xorg.conf file as detailed below and check for the correct settings. If it has not changed the file as described below do so. but do not take away any thing already in there, unless it says to below.

The hard way is editing your xorg.conf file manually, but it isn't that hard. First type this into a terminal:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf-backup
sudo gedit /etc/X11/xorg.conf

Find this section:

Section "Module"
        Load        "i2c"
        Load        "bitmap"
        ...
        Load        "type1"
        Load        "vbe"
EndSection

Comment out dri and GLcore (if present), like this:

#        Load        "dri"
#        Load        "GLcore"

Make sure the glx module is loaded, like this:

Load        "glx"

Make sure the X11 extmod will load:

Load       "extmod"

Find this section (your values may vary) :

Section "Screen"
    Identifier     "Default Screen"
    Device         "NVIDIA Corporation NV40 [GeForce 6800]"
    Monitor        "SyncMaster"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1440x900"
    EndSubSection
EndSection

Make sure DefaultDepth is set to 24, if it isn't already, then add the following lines below "EndSubSection" or above the 1000 first "SubSection" 1000

Option         "AddARGBGLXVisuals" "true"
Option         "DisableGLXRootClipping" "true"

Add this to the very end:

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

Save the file and exit the text editor. Now restart the X-server by pressing Ctrl+Alt+Backspace or reboot. After this you're ready to install Compiz!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-8 23:19:52 | 显示全部楼层

compiz.org 官方文档:ATI

The free drivers

There are two types of free drivers: r200 and r300. r200 is used for Radeons up to 9200 and r300 is used for Radeons 9550 and newer. r200 is stable, but r300 is experimental. If r300 is too unstable for you, try fglrx driver. Both r200 and r300 support AIGLX. To install them, get Mesa and xf86-video-ati package.

In Ubuntu, this driver is installed by default. You can either set it through running a "dpkg-reconfigure xserver-xorg" as root, or by manually editing '/etc/X11/xorg.conf'.

Below are some common Options that can be added to the Device section for increased performance:

Option                "DRI"                        "true"
Option                "ColorTiling"                "on"
Option                "EnablePageFlip"        "true"
Option                "AccelMethod"                 "EXA"
Option                "XAANoOffscreenPixmaps"
Option                "RenderAccel"                "true"
Option                 "AGPMode"                 "x"
Option                "AGPFastWrite"                "on"

You can fiddle with these options to find the best combination for you. The following combination is one confirmed to work on most Radeon cards with good performance:

Option                "DRI"                        "true"
Option                "ColorTiling"                "on"
Option                "EnablePageFlip"        "true"
Option                "AccelMethod"                 "EXA"
Option                "XAANoOffscreenPixmaps"
回复 支持 反对

使用道具 举报

发表于 2008-1-8 23:22:23 | 显示全部楼层
你是那种显卡?

你安装了最新驱动了吗?

然后按着官方的说明修改你的xorg.conf

你可以来irc://irc.oftc.net 7000  #debian-zh

上面很多人,我也在。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-9 11:22:34 | 显示全部楼层

[问题已解决]删除掉本地的配置,再重启X,可能行

用下面这一句试试,应该就行了
#rm -R ~/.gconf*

如果还不行,就再用这一句
#rm -R ~/.gnome*

这样本地用户就可以用了
回复 支持 反对

使用道具 举报

发表于 2008-1-9 15:02:13 | 显示全部楼层
你这个是不是什么地方弄的不对啊.

我安装的很容易.

5分钟就安装完了.

照着官方的instruction很容易就正常使用了.

先安装驱动,这个官方的文件里面有详细的说明如何安装,

然后就是修改xorg.conf,也是按着说明做的

然后就是再session里面加上一行,让她开机进入桌面的时候直接启动,

没有删除什么配置文件,

也没有什么不正常的现象.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-9 15:21:13 | 显示全部楼层
问题已解决!
多谢大侠们的帮助!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表