Compiz
来自维基百科的解释:
- Compiz 是第一个由 OpenGL 驱动的运行于 X Window System 上的混合窗口管理器 。Compiz的混合渲染能力使其可以在窗口管理过程中实现多种视觉效果,比如在矩形虚拟桌面上的窗口最小化。
安装[编辑 | 编辑源代码]
- 2013年5月起, Compiz 在official repositories中就不再可用了。
- 安装0.9和0.8版本的包可以在AUR (简体中文)中找到。
- 这两个版本不能同时安装。
安装0.9系列版本[编辑 | 编辑源代码]
- 从 Compiz 0.9.8 开始,所有的Compiz组件(包括CCSM、插件、gtk-window-decorator等)都是当作一个单独项目来开发的。也就是说一个安装包就包括了Compiz的全部组件。
- 想要带 emerald-themes的emerald0.9, 先安装emerald0.9AUR[损坏的链接:package not found] 再安装 emerald-themesAUR. 相反的做法会导致依赖关系错误而冲突.
必需的:
- Compiz — OpenGL合成管理器与CCSM,插件和GTK窗口装饰器.
可选的:
- Emerald — Compiz的独立窗口装饰器
- http://www.compiz.org/ || emerald0.9AUR[损坏的链接:package not found]
- Emerald Themes — Emerald 窗口装饰的额外主题.
- Fusion Icon — Compiz的托盘小程序并且可以切换不同的窗口管理器以及装饰器.
- https://github.com/kozec/fusion-icon-gtk3 || fusion-icon0.9AUR[损坏的链接:package not found]
安装0.8系列版本[编辑 | 编辑源代码]
安装以下任意一个包:compiz-coreAUR、 compiz-gtk-standaloneAUR[损坏的链接:package not found] 或 compiz-core-mateAUR[损坏的链接:package not found]。
需要Compiz设置中心,请安装 ccsmAUR。
需要插件,请安装 compiz-fusion-plugins-mainAUR、 compiz-fusion-plugins-extraAUR 。 并且可选地,可以安装 compiz-fusion-plugins-unsupportedAUR[损坏的链接:package not found]。
Emerald窗口装饰器可以从 emeraldAUR 包中安装。 需要附加的Emerald主题可以安装 emerald-themesAUR 。
窗口装饰器[编辑 | 编辑源代码]
- 大多数的Compiz软件包都会默认提供 gtk-window-decorator (一个GTK窗口装饰器组件)。唯一的例外则是 compiz-coreAUR 包中并没有提供窗口装饰器。
- 目前没有任何一个包自动提供 kde-window-decorator (一个KDE窗口装饰器组件)。想要安装它,你需要编辑将要安装的 Compiz 包中的 PKGBUILD 文件,从中打开相关的选项。当你编辑完之后,还需要重新编译并安装 Compiz 包。
窗口装饰器是为程序提供窗口和边框的程序。 不像类似mutter包之类的窗口管理器, 不像Kwin或者Xfwm只提供一个唯一的装饰器, Compiz的用户拥有三个选择:Emerald、gtk-window-decorator以及kde-window-decorator。
其中gtk-window-decorator 和 the kde-window-decorator 就包含在 Compiz 的源代码中,并且已经编译好了(如果你的PKGBUILD文件设置妥当的话)。 而Emerald分离在外,是一个独立的装饰器软件。
设置它可以按照如下步骤:
首先,确定你已经安装了你想要在Compiz中使用的装饰器。然后,打开 CCSM (Compiz Config Setting Manager ,Compiz设置管理器)。
你可以找到它的图标或者在终端中运行命令: ccsm
。在设置界面中,找到“效果”部分,并保证“Window Decoration”(”窗口装饰“)已经勾选了。
现在,点击“Window Decoration”(”窗口装饰“)按钮,并且在”命令“框中输入跟你需要的装饰器相关的命令:
emerald
gtk-window-decorator
kde4-window-decorator
为了让这些改动立即生效,你可能需要在命令的结尾添加 --replace
开关。
另外,注销之后再登录进来也可以让你新设置的装饰器生效。
不过请注意,在CCSM中输入的使用 --replace
开关的装饰器命令,会在用户登录的时候使屏幕闪一下。
开始使用 Compiz[编辑 | 编辑源代码]
启用重要的插件[编辑 | 编辑源代码]
- 译者注 为了大家看得方便,我把插件的名字保留了英文。因为有时候CCSM里面也会显示英文的插件名称。
- 译者注 插件的中文名称可能翻译得不准确。
在开始使用Compiz之前, 你需要激活一些提供窗口管理基本功能的插件。 要不然你可能连拖拽窗口都困难,更别说缩放和关闭了。
重要的插件:
- Window Decoration(窗口装饰)——提供窗口边框(上一节咱已经讨论过了)
- Move Window(窗口移动)
- Resize Window(窗口缩放)
- Place Windows(窗口放置)——设置关于窗口在屏幕上放置的选项
- Application Switcher(程序切换)——提供 Alt+Tab 开启的程序切换器(另外也有一些插件可以实现这个功能,而且具有不同的效果,比如 'Shift Switcher,' 'Static Application Switcher' 等等。并不是所有的切换器都是用 Alt+Tab 快捷键)。
想要在不同的视区之间切换,你需要激活以下其中一个插件:
- Desktop Cube(立体桌面)和Rotate Cube(旋转立体)——提供一个可以浮空的立方体,每个面都是一个视口(虚拟桌面)。
- Desktop Wall(桌面墙壁)——视口全部并排陈列在一起(非常类似于Cinnamon 和 GNOME Shell 中的窗口切换效果)。
- Expo——当鼠标移动到屏幕左上角的时候,显示出全部的视口和窗口(就是Ubuntu Unity里面那种!!)。这个插件可以单独激活,或者是和前两个一起用不会冲突。
启动 Compiz[编辑 | 编辑源代码]
compiz --replace
命令时使用 ccp
开关才能正常导入Compiz插件。不过现在这个错误已经修正了,现在已经没有任何必要使用 ccp
开关。你可以使用下面的命令启动Compiz:
$ compiz --replace &
compiz --replace &
命令在进入会话时不管用。 试一试没有a花的命令: compiz --replace
。我们来过一下常用的Compiz命令行选项吧:
--indirect-rendering
: 使用间接渲染 (AIGLX)--loose-binding
: 可以解决一些性能问题 (NVIDIA?)--replace
: 取代现有的窗口管理器(window-manager)--keep-window-hints
: 在可用的视口中保留Gnome窗口管理器的 gconf-settings 设置--sm-disable
: 禁用会话管理功能
小工具 Fusion Icon[编辑 | 编辑源代码]
Fusion Icon 是一个托盘小工具,功能是在一个会话中切换Compiz和其他不同的窗口管理器以及装饰器。 它只和Compiz 0.8版本兼容。 它可以在 fusion-iconAUR 包中安装。
你可以用下面的命令运行 fusion-icon :
$ fusion-icon
为了确保Fusion-icon确实启动了Compiz,邮件单击它在通知区域的图标,然后选择“select window manager”, 如果“Compiz”还没被选上的话就选上吧。
下面将要讲到的很多方法会在桌面环境启动时自动运行Compiz。你也可以叫桌面环境自动运行fusion-icon来间接自动启动Compiz。
如果你想这样做的话,
只要把Compiz的命令
(通常都是 compiz --replace &
)改成 fusion-icon
就行了。
让你的桌面环境自动启动Compiz[编辑 | 编辑源代码]
KDE4[编辑 | 编辑源代码]
使用系统设置[编辑 | 编辑源代码]
打开系统设置程序,并找到“系统设置 > 默认程序 > 窗口管理器 > 使用另外的窗口管理器'”然后选择“Compiz”。
如果你需要让Compiz使用你自己设定的选项启动的话,就选择“Compiz custom”,然后新建一个叫做compiz-kde-launcher
的脚本,并且在其中添加你希望启动Compiz的命令。
下面是一个例子:
/usr/local/bin/compiz-kde-launcher
#!/bin/bash LIBGL_ALWAYS_INDIRECT=1 compiz --replace & wait
然后还要让他可运行:
$ chmod +x /usr/local/bin/compiz-kde-launcher
Autostart 自动启动链接[编辑 | 编辑源代码]
- 如果你想安装 gtk-window-decorator,就不要新建
compiz.desktop
文件,因为这回产生一些问题。 - 如果
compiz.desktop
已经有了,那你可能需要在Exec
之后添加--replace
。
在KDE自动启动(Autostart)目录中添加一个项目。如果它不存在,就新建一个:
~/.kde4/Autostart/compiz.desktop
[Desktop Entry] Type=Application Encoding=UTF-8 Name=Compiz Exec=/usr/bin/compiz --replace NoDisplay=true # name of loadable control center module X-GNOME-WMSettingsModule=compiz # autostart phase X-GNOME-Autostart-Phase=WindowManager X-GNOME-Provides=windowmanager # name we put on the WM spec check window X-GNOME-WMName=Compiz # back compat only X-GnomeWMSettingsLibrary=compiz
设置 KDEWM 变量[编辑 | 编辑源代码]
作为root用户你需要搞一个小脚本,这样你就可以在启动Compiz的时候添加命令行选项了。
新建一个文件,里面输入启动Compiz的命令,再加上你希望附加的设置。下面是一个例子:
/usr/bin/startcompiz
compiz --replace &
/usr/bin
目录中)弄混就行了。保证你的脚本可执行:
# chmod +x /usr/bin/startcompiz
现在你需要新建一个程序来调用你刚刚在 /usr/bin
中新建的这个脚本了。
1) 只针对你当前的用户设置:
~/.kde4/env/startcompiz.sh
KDEWM="compiz"
2) 全系统范围内设置:
/etc/kde/env/startcompiz.sh
KDEWM="compiz"
- 如果上面的方法不管用,使用下面的命令可以达到同样的目的:
$ export KDEWM="startcompiz"
- 把它放到你用户的
~/.bashrc
文件中去。
- 如果你使用了
/usr/local/bin
目录那可能会不管用。那么你需要在脚本中使用绝对路径:
$ export KDEWM="/usr/local/bin/startcompiz"
GNOME 桌面环境[编辑 | 编辑源代码]
GNOME Shell 和 Cinnamon[编辑 | 编辑源代码]
GNOME Shell (简体中文) 是一个类似 mutter包 的实现插件。 同样, Cinnamon 插件是一个类似于 muffin包 窗口管理器的实现。
也就是说,将GNOME Shell 或 Cinnamon 与 Compiz 或者其他窗口管理器同时使用是不可能的(因为他们都是窗口管理器!)。
Unity[编辑 | 编辑源代码]
确保 'Ubuntu Unity Plugin' (Ubuntu Unity 插件)在 CCSM 中启用了,这样 Unity 才能正确运行。
你只有正确安装了Unity之后,这个插件才会显示在CCSM里面。
其它的GNOME会话 (Cairo dock 和 Compiz)[编辑 | 编辑源代码]
gnome-session-compizAUR[损坏的链接:package not found] 包会在一个 display manager (简体中文) 中添加一个新的会话。 只要在你的显示管理器中选择 'gnome-session-compiz' 即可。
请确保 Compiz 以及 Cairo Dock (Taskbar或Panel) 已经正确的设置好了。
在CCSM里面,确保选择了窗口装饰器,已经启用了窗口管理需要的必要插件。详见 #启用重要的插件.
下面是一些建议的Cairo Dock的设置:
- 在Cairo Dock上面添加一个应用程序菜单,并且记住它的快捷键绑定。
- 为了舒服,吧应用程序菜单的快捷键绑定到
Alt+F1
和Alt+F2
。 - 添加时钟、Wifi、网速等等插件图标到Dock上面。
- 添加一个注销按钮:
- 设置注销命令为
gnome-session-quit --logout
- 设置关机命令为
gnome-session-quit --power-off
- 设置注销命令为
- 添加Notification Area Old (systray) 图标(通知区域支持)到 Cairo Dock。
GNOME Flashback[编辑 | 编辑源代码]
详见:GNOME Flashback#Alternative window manager.
MATE 桌面环境[编辑 | 编辑源代码]
使用 GSettings[编辑 | 编辑源代码]
使用下面的 GSettings 命令可以将默认的窗口管理器 marco包 改为 Compiz。
$ gsettings set org.mate.session.required-components windowmanager compiz
使用 mate-session-properties[编辑 | 编辑源代码]
另一种做法是使用mate-session-properties来启用Compiz。 在终端中输入下面的命令:
$ mate-session-properties
单击“添加”按钮,并在“命令”文本框中输入 compiz --replace &
命令。
名称和介绍栏目并不重要,只是用来说明的,不要在意这些细节。
注销再登录,Compiz应该就会顺利启动了。
Xfce[编辑 | 编辑源代码]
修改默认 (故障保护Failsafe) 会话[编辑 | 编辑源代码]
想要设置Xfce的默认会话 (也就是故障保护 Failsafe 会话) ,可以使用 xfconf-query
:
xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t string -t string -s compiz
或者可以编辑下面其中之一:
- 用户:
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
- 系统:
/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml
,你需要去编辑 /etc/xdg/xfce4/xfconf/xfce-perchannel-xml
中的文件。将 Xfwm 的启动命令:
<property name="Client0_Command" type="array"> <value type="string" value="xfwm4"/> </property>
替换为:
<property name="Client0_Command" type="array"> <value type="string" value="compiz"/> </property>
为了保护默认会话不被覆盖,你可能需要使用:
<property name="general" type="empty"> ... ... <property name="SaveOnExit" type="bool" value="false"/> </property>
然后移除已经存在的会话:
$ rm -r ~/.cache/sessions
现在你应该注销。请确保“保存默认会话”标签没有被勾选,否则刚才的编辑不会生效。 再次登录,Compiz应该就会运行了。当Compiz正常运行之后,你就可以重新钩上“保存将来的会话”了。
Starting Compiz from a restored Xfce session[编辑 | 编辑源代码]
By default, Xfce saves its sessions on logout which means that running applications will be restored on login. Therefore, to ensure that Compiz is autostarted with each session, you merely need to ensure that Compiz is running when you logout. To do so, hit Alt+F2
to start the Xfce run dialog. Then run the command to start Compiz: compiz --replace &
. Then you just need to logout. When logging out, ensure that the "Save session for future logins" option in the Xfce logout dialog is ticked. You should find that Compiz is autostarted in all future sessions.
Using Xfce application autostart[编辑 | 编辑源代码]
In the Xfce main menu navigate to 'Settings' and click on 'Session and Startup.' Click on the 'Application Autostart' tab. Click the add button and in the command section enter the compiz --replace &
command. The name and comment sections are unimportant and are just there to indicate what the entry does. Log out and log in again and Compiz should start.
Alt+F4
keybinding not working. To disable saved sessions, open the 'Session and Startup' menu entry, click on the 'Session' tab and click the 'Clear saved sessions' button. Then, untick the 'Save session for future logins' option in the Xfce logout dialog.LXDE & LXQt[编辑 | 编辑源代码]
The session files of LXDE and LXQt can be edited to start an alternative window manager (such as Compiz) with the session.
- For LXDE, see the following section: LXDE#Use a different window manager.
- For LXQt, see the following section: LXQt#Use a different window manager.
Using Compiz as a standalone window manager[编辑 | 编辑源代码]
Starting the session with a display manager[编辑 | 编辑源代码]
A standalone Compiz session can be started from a display manager. For most display manager's (LightDM, LXDM, GDM etc) all that's required is to create a .desktop file in /usr/share/xsessions
defining the Compiz session. See the article for your display manager to check if this is the case.
Firstly, create the /usr/share/xsessions
directory if it does not already exist. Then create the .desktop file. A basic example is provided below:
/usr/share/xsessions/compiz.desktop
[Desktop Entry] Version=1.0 Name=Compiz Comment=Start a standalone Compiz session Exec=compiz Type=Application
Then just choose 'Compiz' from your sessions list and log in.
Autostarting programs when using a display manager[编辑 | 编辑源代码]
One way in which you could start programs with your Compiz session, when it is started from a display manager, is to use an xprofile file. The xprofile file is similar in syntax to xinitrc - it can contain commands for programs you wish to start with your session. Most display managers will parse commands from an xprofile file by default.
Alternatively, you could use Compiz's 'Session Management' plugin. This plugin will save running programs on exit and restore them when the session is next started. Simply enable the 'Session Management' plugin in CCSM.
Starting the session with startx[编辑 | 编辑源代码]
To start Compiz with the startx
command, add the following line to your ~/.xinitrc
file:
~/.xinitrc
exec compiz
You can also use fusion icon as shown below:
~/.xinitrc
exec fusion-icon
You can autostart additional programs (such as a panel) by adding the relevant command to your ~/.xinitrc
file. Below is an example of a ~/.xinitrc
file which starts Compiz, the tint2 panel and the Cairo dock.
~/.xinitrc
tint2 & cairo-dock & exec compiz
See the xinitrc article for more details.
[编辑 | 编辑源代码]
To add a root menu similar to that in Openbox and other standalone window managers you can install the compiz-boxmenuAUR package. This program is a fork of compiz-deskmenuAUR. Among the changes that the fork introduces are the addition of some extra features such as a window list and a recent documents list.
After installing the compiz-boxmenuAUR package, copy the config files to your home directory as shown below:
# cp -R /etc/xdg/compiz /home/username/.config # chown -R username:group /home/username/.config/compiz
where username
is your username and group
is the primary group for your user.
Then, open CCSM, navigate to the 'Commands' plugin and in 'Command line 0' enter the command compiz-boxmenu
. In the 'Key Bindings' tab, set 'Run command 0' to Control+Space
(you can use the 'Grab key combination' option to simplify this process.)
Now navigate to the 'Viewport Switcher' plugin and click on the 'Desktop-based Viewport Switching' tab. Change the 'Plugin for initiate action' to core
and change 'Action name for initiate' to run_command0_key
.
You should now find that a menu appears when you click Control+Space
. To launch a graphical menu editor, click on the 'Edit' option or run compiz-boxmenu-editor
in a terminal. If you would prefer to edit your menu manually, open the following file in your favourite editor: ~/.config/compiz/boxmenu/menu.xml
. For your changes to take effect, you must click the 'Reload' option in your menu.
Control+Space
is the default keybinding for compiz-boxmenu
you can assign the menu to other keybindings or mousebindings as well. Take extreme care if doing so as Compiz bindings will take precedence over keybindings of all other programs. For instance, if you assign compiz-boxmenu
to Button3
then you may lose right click functionality in all programs. If the keybinding/mousebinding you are attempting to create has any conflicts, cssm
will notify you.Allow users to shutdown/reboot[编辑 | 编辑源代码]
An unprivileged user should be able to execute commands such as systemctl poweroff
and systemctl reboot
. You could assign a keyboard shortcut to one of these commands using the 'Commands' plugin in CCSM. Alternatively, you could create a launcher for one of these commands in compiz-boxmenuAUR - see above. For more detailed information on shutting down see the following article: Allow users to shutdown.
Utilities[编辑 | 编辑源代码]
Panels & docks[编辑 | 编辑源代码]
There are a number of panels and docks available in Arch however only a few are compatible with Compiz's viewports. They are listed below:
- xfce4-panel包
- mate-panel包
- perlpanelAUR[损坏的链接:package not found]
- gnome-panel包
- cairo-dock包
Run dialog[编辑 | 编辑源代码]
- mate-panel包 provides a run dialog. To enable it, see the following section: Compiz#MATE Panel[损坏的链接:无效的章节].
- gnome-panel包 provides a run dialog. To enable it, see the following section: Compiz#GNOME Panel[损坏的链接:无效的章节].
- lxpanel包 provides a run dialog. To enable it, see the following section: Compiz#LXDE Panel[损坏的链接:无效的章节].
Alternatively you could install one of the following:
- xfce4-appfinder包 - use the following command to launch a run dialog:
xfce4-appfinder --collapsed
- bbrunAUR - use the following command to launch a run dialog:
bbrun -w
- gmrun包 - use the following command to launch a run dialog:
gmrun
- fbrunAUR[损坏的链接:package not found] - use the following command to launch a run dialog:
fbrun
In each case, simply map the command to Alt+F2
(or a key combination of your choice) via the 'Commands' plugin in CCSM.
小技巧大放送[编辑 | 编辑源代码]
还原原生窗口管理器[编辑 | 编辑源代码]
你可以用下面的命令把Compiz改回你桌面环境原生的窗口管理器:
wm_name --replace
使用 kwin
、 metacity
或 xfwm4
替换掉 wm_name
.
启用 Alt+F2 运行对话框[编辑 | 编辑源代码]
GNOME Panel[编辑 | 编辑源代码]
在CCSM中启用 'Gnome Compatibility' 插件。
MATE Panel[编辑 | 编辑源代码]
有两种方法在Compiz中启动 MATE Panel 中的运行对话框,你自己选吧:
- 在CCSM中启用 'Gnome Compatibility' 插件
- 使用“命令”(Commands)插件,设置
Alt+F2
快捷键的绑定如下:
mate-panel --run-dialog
LXDE Panel[编辑 | 编辑源代码]
使用“命令”(Commands)插件,设置 Alt+F2
快捷键的绑定如下:
lxpanelctl run
Xfce 程序查看器(Appfinder)[编辑 | 编辑源代码]
当在Xfce会话中使用Compiz时,运行对话框(由xfce4-appfinder包提供)无需任何干预应该管用。
但是如果你是在Compiz独立会话中使用程序查看器的话,请查看这一章节:Compiz#Run dialog[损坏的链接:无效的章节]。
其他的运行对话框功能[编辑 | 编辑源代码]
请查看这一章节:Compiz#Run dialog[损坏的链接:无效的章节]。
疑难排解[编辑 | 编辑源代码]
Missing GLX_EXT_texture_from_pixmaps[编辑 | 编辑源代码]
On ATI cards (first solution)[编辑 | 编辑源代码]
You may run into the following error when trying to run Compiz on an ATI card:
Missing GLX_EXT_texture_from_pixmap
This is because Compiz's binary was compiled against Mesa's OpenGL library rather than ATI's OpenGL library.
Firstly, copy the library into a directory to keep it because ATI's drivers will over write it:
$ install -Dm644 /usr/lib/libGL.so.1.2 /usr/lib/mesa/libGL.so.1.2
Then you can reinstall your fglrx drivers. Now start Compiz as shown below:
LD_PRELOAD=/usr/lib/mesa/libGL.so.1.2 compiz --replace &
On ATI cards (second solution)[编辑 | 编辑源代码]
Another possible problem with 'GLX_EXT_texture_from_pixmap' on ATI cards is that the card can only render it indirectly. If so, you have to pass the option to your libgl as shown below:
LIBGL_ALWAYS_INDIRECT=1 compiz --replace &
(Workaround tested on the following card : ATI Technologies Inc Radeon R250 [Mobility FireGL 9000] (rev 02))
On Intel chips[编辑 | 编辑源代码]
Firstly, check that you are using the intel driver as opposed to i810. Then, run the following command to run Compiz (This must be used every time).
LIBGL_ALWAYS_INDIRECT=true compiz --replace --sm-disable &
Compiz starts without window borders with NVIDIA binary drivers[编辑 | 编辑源代码]
Firstly, ensure that your window decorator settings are configured correctly - see the following: Compiz#Starting the window decorator[损坏的链接:无效的章节]. If window borders still do not start try adding Option "AddARGBGLXVisuals" "True" and Option "DisableGLXRootClipping" "True" to your "Screen" section in /etc/X11/xorg.conf.d/20-nvidia.conf
. If window borders still do not load and you have used other Options elsewhere in /etc/X11/xorg.conf.d/
try commenting them out and using only the aformentioned ARGBGLXVisuals and GLXRootClipping Options.
Blank screen on resume from suspend-to-ram using the NVIDIA binary drivers[编辑 | 编辑源代码]
If you receive a blank screen with a responsive cursor upon resume, try disabling sync to vblank. To do so, open CCSM, navigate to the 'OpenGL' plugin and untick the 'Sync to VBlank' option.
Poor performance from capable graphics cards[编辑 | 编辑源代码]
NVIDIA and Intel chips: If everything is configured correctly but you still have poor performance with some effects, try disabling CCSM > General Options > Display Settings > Detect Refresh Rate and instead choose a value manually.
NVIDIA chips only: The inadequate refresh rate with 'Detect Refresh Rate' may be due to an option called 'DynamicTwinView' being enabled by default which plays a factor in accurately reporting the maximum refresh rate that your card and display support. You can disable 'DynamicTwinView' by adding the following line to the "Device" or "Screen" section of your /etc/X11/xorg.conf.d/20-nvidia.conf
, and then restarting your computer:
Option "DynamicTwinView" "False"
Screen flicks with NVIDIA card[编辑 | 编辑源代码]
To fix this behaviour create the file below:
/etc/modprobe.d/nvidia.conf
options nvidia NVreg_RegistryDwords="PerfLevelSrc=0x2222"
Compiz effects not working (GConf backend)[编辑 | 编辑源代码]
If you have installed the gtk-window-decorator, check if the GConf schema was correctly installed:
$ gconftool-2 -R /apps/compiz/plugins | grep plugins
Make sure that all plugins are listed. If they are not, try to install the Compiz schema manually (do not run this command as root):
$ gconftool-2 --install-schema-file=/usr/share/gconf/schemas/compiz-decorator-gtk.schemas
Fusion Icon fails to start[编辑 | 编辑源代码]
If you get an output like this from the command line:
$ fusion-icon
* Detected Session: gnome * Searching for installed applications... Traceback (most recent call last): File "/usr/bin/fusion-icon", line 57, in <module> from FusionIcon.interface import choose_interface File "/usr/lib/python2.5/site-packages/FusionIcon/interface.py", line 23, in <module> import start File "/usr/lib/python2.5/site-packages/FusionIcon/start.py", line 36, in <module> config.check() File "/usr/lib/python2.5/site-packages/FusionIcon/util.py", line 362, in check os.makedirs(self.config_folder) File "/usr/lib/python2.5/os.py", line 172, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/home/andy/.config/compiz'
the problem is with the permission on ~/.config/compiz/
. To fix it, use:
# chown -R username /home/username/.config/compiz/
Alt+F4 keybinding not working (Xfce)[编辑 | 编辑源代码]
See the following section: Compiz#Using Xfce application autostart[损坏的链接:无效的章节].
Emerald refuses to start (crashes with a segfault)[编辑 | 编辑源代码]
You may find that Emerald fails to start with your Compiz session and attempting to start it from a terminal gives you the following output (or something similar):
Segmentation fault (core dumped)
In this case, the solution is to reset the Emerald theme settings:
$ rm -rf ~/.emerald/theme
Emerald should now start successfully.
No system bell when Compiz is running[编辑 | 编辑源代码]
You may find that the system bell (such as the drip sound played when pressing backspace at the beginning of a line in GNOME or MATE Terminal) will not sound if Compiz is running. See the following upstream bug report.
For PulseAudio users the following workaround is available:
Append the following lines
load-sample-lazy bell /usr/share/sounds/freedesktop/stereo/bell.oga load-module module-x11-bell sample=bell
to your /etc/pulse/default.pa
file and then restart Pulseaudio.
Compiz crashes when enabling the Gnome Compatibility plugin (GSettings backend)[编辑 | 编辑源代码]
If you are using the GSettings backend, you may find that Compiz crashes if you try to enable the 'Gnome Compatibility' plugin. In order to enable this plugin whilst using the GSettings backend you need to open CCSM and navigate to 'Preferences.' Under the header 'Integration' untick the box labelled 'Enable integration into the desktop environment.' After unticking this option, you should find it possible to enable the 'Gnome Compatibility' plugin.
Known issues[编辑 | 编辑源代码]
Xfce panel window buttons are not refreshed when a window changes viewport[编辑 | 编辑源代码]
You may find that if you right click on a window title and choose an option such as 'Move to Workspace Right' then the window will move but the window button will still be visible in the viewport the window moved from until you switch viewports. See the following upstream bug report.
Compiz crashes when enabling the D-Bus plugin[编辑 | 编辑源代码]
The D-Bus plugin will cause Compiz to crash if enabled in conjunction with certain other plugins such as the Cube plugin. See the following upstream bug report.
See also[编辑 | 编辑源代码]
- Compiz in Launchpad
- Compiz Home, including wiki and forum (website and wiki are unmaintained)
- Troubleshooting - Compiz Wiki, (wiki is unmaintained)