LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1990|回复: 17

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

[复制链接]
发表于 2008-1-8 14:08:47 | 显示全部楼层 |阅读模式
首次启动还是正常的,后来就不行了
其它功能都正常(立方体可以转)
#compiz --replace --fast-filter
以下是出错信息:
libGL warning: 3D driver claims to not support visual 0x5b
libGL warning: 3D driver claims to not support visual 0x5b
/usr/bin/compiz.real: No stencil buffer. Clipping of transformed windows is not going to be correct when screen is transformed.

请大侠指教!!!
 楼主| 发表于 2008-1-8 16:06:44 | 显示全部楼层

问题解决一半:原来要用root来运行

试试用root来运行
回复 支持 反对

使用道具 举报

发表于 2008-1-8 21:24:15 | 显示全部楼层
我的系统几乎和你的一样,看我的签名就知道了,

我的办法是在session里面加入compiz --replace

然后每次启动就直接进入,这样一切正常,否则有的时候没有边框。
回复 支持 反对

使用道具 举报

发表于 2008-1-8 21:26:08 | 显示全部楼层
我的系统几乎和你一样

我是在session里面加上compiz --replace

启动的时候直接打开compiz,否则手动打开的时候有时候没有边框。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-8 22:47:56 | 显示全部楼层
如何在session中加入?写在哪个文件里?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-8 22:51:12 | 显示全部楼层

nvidia的是否有借鉴?

nvidia这几句可以这样用
不知是否可借鉴
=============================
/etc/X11/xorg.conf
=============================
...
...
Section "Device"
        Identifier     "nVidia Corporation NV11DDR [GeForce2 MX200]"
        Driver         "nvidia"
        Option "XAANoOffscreenPixmaps" "true"   
        Option "AllowGLXWithComposite" "true"
EndSection
...
Section "Screen"
    Identifier     "Default Screen"
    Device         "nVidia Corporation NV11DDR [GeForce2 MX200]"
    Monitor        "hilips 170S"
    DefaultDepth    24
    Option  "AddARGBGLXVisuals"  "True"
    Option         "DisableGLXRootClipping" "true"
    #Option         "XAANoOffscreenPixmaps" "true"
......
EndSection
...
Section "Extensions"
    Option         "Composite" "enable"
EndSection
...
回复 支持 反对

使用道具 举报

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

compiz fusion 官方文档:intel

Setting up your X Server to run AiGLX with your Intel Graphics Media Accelerator hardware

<!> Important!: If you are running Ubuntu Feisty Fawn (7.04) or above, you can skip this as it is done for you by default.

We need to edit the X.org Configuration file to allow for AiGLX and Composite so that Compiz can run. To do this, you need to open the file /etc/X11/xorg.conf with a text editor with root permissions. Note that editing this file requires precision as any inaccuracies may cause the X server to encounter errors when reading the file and fail to start. A good way to do this is to open the file with the command line based nano:

sudo nano /etc/X11/xorg.conf

/Intel_with_AiGLX?action=AttachFile&do=get&target=nano.png

The nano editor editing xorg.conf

Some tips when using the nano editor:

    * Use the 'Up' key and the 'Down' key to navigate up and down and the 'Left' and 'Right' key to move the cursor to another character.
    * Use Ctrl-X to exit
    * Use Ctrl-O to save
    * Use Ctrl-C to display where the cursor is on the document.

Now, we need to change a few sections. First, we need to load all required modules. Navigate to Section "Module" and make sure that the following is added or present:

Section "Module"
  Load         "dri"
  Load         "glx"
  Load         "dbe"

Add these to Section "Device"

  Option      "XAANoOffscreenPixmaps" "true"
  Option      "DRI"     "true"

Add these to Section "ServerLayout"

  Option      "AIGLX" "true"

Make sure Section "DRI" looks like this

  Group      "video"
  Mode       0660

Finally, add this to Section "Extensions"

  Option "Composite" "Enable"

Starting Compiz Fusion

Once you have completed the above step and restarted your X server (Either by logging out or rebooting), you can start compiz like this:

LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 compiz --replace --indirect-rendering --sm-disable ccp &


It's a handful to type, so you might want to make an executable script which contains that command, or use one of the provided startup managers such as Compiz-Manager or Compiz Fusion Icon to handle adding all this for you.

You can also create an Autostart , so that Compiz Fusion will be launched when you log in.

Workaround for common problems

Blue Video fix: This is due the the fact that the XVideo extension is not composite aware and draws blue instead of video on areas where the composite manager is doing work. To avoid this, you need to switch your favorite video player's output from XV to X11/XImage/XShm. Refer to your player's documentation on how to do that.
回复 支持 反对

使用道具 举报

发表于 2008-1-8 23:07:16 | 显示全部楼层
Desktop->references->Sessions

见图片

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2008-1-8 23:08:10 | 显示全部楼层
Desktop->references->Sessions

另外你的xorg.conf可以去compiz的主页上看看是不是修改好了

见图片:
回复 支持 反对

使用道具 举报

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

compiz fusion 官方文档:nvidia

Supported Cards

Compiz will only work with graphic cards with at least 64 MB of memory, and whose drivers are capable of supporting the X Composite extension and the GL_EXT_texture_from_pixmap OpenGL extension. But even if the required extensions are not supported by your card's driver, software solutions such as Xgl may be able to provide them.

Tested OK

Cards tested to work, driver required, and performance notes:

    * (card / driver / notes)

Compatible Specs

Cards theoretically compatible by specs, driver required, and performance notes:

    * (card / driver / notes)

Tested FAIL

Cards tested to fail, driver(s) tested, and specific failures:

    * (card / driver(s) / notes)

Available Drivers

    *

      Legacy (1.0.7xxx)
    *

      New Legacy (1.0.96xx)
    *

      Latest (1.0.97xx - 100.x.x)

System Setup

For information about whether your driver can be used directly with the X.Org server or must be used with Xgl to provide support for missing functionality, please refer to the Setup article.

Additional Configuration

Some of the following options may be worth trying to improve performance or fix bugs:

    *

      The following option improves performance. As of nvidia driver version 1.0-9746, it has been enabled by default.

       Option "RenderAccel" "True"

    *

      The following option is necessary to make window borders visible with nvidia driver versions prior to 100.xx.

       Option  "AddARGBGLXVisuals"  "True"

    *

      The following option improves performance. It is currently incompatible with SLI and MultiGPU modes. As of nvidia driver version 100.14.09, it has been enabled by default.

       Option "DamageEvents" "True"

    *

      Use the following option with caution as it may not work on all systems.

       Option "UseEvents" "False"

    *

      Do NOT use the following option if you have less than 128MB of video memory, and always use it with Sync to VBlank enabled in nvidia-settings both for OpenGL and XV.

       Option "TripleBuffer" "True"

    *

      Use the following option with caution as it may not work on all systems, especially with 6 series GeForce cards (it is known to cause freezes with compiz) but give it a try because it helps performance. It can also break Xinerama.

       Option "BackingStore" "True"

      The BackingStore option is an option provided by the X.Org server, not specific to the nvidia driver. It is used to enable the server's support for backing store, a mechanism by which pixel data for occluded window regions is remembered by the server thereby alleviating the need to send expose events to X clients when the data needs to be redisplayed. Note that this can significantly increase performance in nVidia TwinView setups.

{i} For further information about these settings, please refer to the README file of the particular nvidia driver version you are using. It can be found on your hard drive at /usr/share/doc/NVIDIA_GLX-1.0/README.txt , or online at http://us.download.nvidia.com/XF ... DME/chapter-11.html .

Setting up nvidia-settings to start on login

This information is intended to help you start nvidia-settings options on login.

We can set AA and FSAA settings using an export command in various locations, including the following:

    * manually in a terminal after login
    * in one of the following files:
          o

            /etc/init.d/xdm
          o

            /etc/profile
          o

            /etc/env.d/03opengl
          o

            /home/user/.bashrc

However, this does not help us with the other options available to us in nvidia-settings, including Cursor Shadows, Vibrance Controls, and others.

To address this issue, it is possible to execute the settings file itself in /home/user/.bashrc. To accomplish this, you will need to have nvidia-settings installed. It can then be used to set the desired options. Once this is done, edit your local /home/user/.bashrc file and add the following near the top of the file:

if [ $DISPLAY ] && [ $TERM == "dumb" ]; then
    # Load nvidia-settings
    nvidia-settings -load-config-only > /dev/null 2>&1
fi

Keep in mind this can also be added to /etc/init.d/xdm or /etc/profile to make the settings global; however, your settings file would also have to be in /root, making this second approach less than ideal.

There is also a Texture Filtering option in CCSM which can be adjusted. From CCSM, go to General Options -> Display Settings -> Texture Filter -> Best.

Finding the correct settings for your card

The environment variables you can set to adjust the behaviour of VBlank syncing, anisotropic filtering, and full-screen anti-aliasing, as well as the meaning of the values you can set, are documented in Chapter 11 of the README file for your driver. It can be found on your hard drive at /usr/share/doc/NVIDIA_GLX-1.0/README.txt , or online at http://us.download.nvidia.com/XF ... DME/chapter-11.html .

To understand these settings and figure out how best to set them, pages 9 through 11 of the following guide is recommended: http://www.tweakguides.com/Graphics_1.html

(!) When full-screen anti-aliasing is enabled and set to a multisampling mode, you may notice visual corruption when resizing a window.
回复 支持 反对

使用道具 举报

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

本版积分规则

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