Compiz Fusion

From openSUSE

(Redirected from Compiz-Fusion)


Compiz Fusion is a collection of plugins and a configuration system for the Compiz compositing window manager. It was created from the remerging of Beryl into Compiz. It aims to create an ecosystem of plugins, setting tools and other composited application.


Contents

Compiz Fusion Cube Reflection; more screenshots
Enlarge
Compiz Fusion Cube Reflection; more screenshots

Installation

Pre-installation checklist

  • Install and Compile " startup-notification-0.9 ".
  • Drivers installed correctly? See ATI and NVIDIA to set them up.
  • Composite enabled? See Using_Xgl_on_SUSE_Linux and enabling Xgl below or AIGLX if you have Intel/Nvidia and want to try that.
  • Test if composite is enabled: running grep Composite /var/log/Xorg.0.log as root should show Extension "Composite" is enabled
  • Continue only after the setup mentioned above is working correctly.

openSUSE 10.3

In openSUSE 10.3 all our Compiz Fusion installing will be done using One-Click-Install. This provides a simple wizard to guide you through everything.

If you are using the KDE Desktop Environment:
1667675818_0ecdb84583_o.png
If you are using the GNOME Desktop Environment:
1666815317_fff93e3494_o.png

openSUSE 10.2

If you are using the KDE Desktop Environment:
Run the following commands as root (You need to be connected to the internet):
zypper sa http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.2/ xgl
zypper in compiz-fusion-kde 
If you are using the GNOME Desktop Environment:
Run the following commands as root (You need to be connected to the internet):
zypper sa http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.2/ xgl
zypper in compiz-fusion-gnome

Enable/Disable XGL

Note: Skip this if you have AIGLX or NVIDIA's newer drivers and see the relevant links below to configure those.

Image:Shellscript.png Run the following command as root (works for both KDE and GNOME):
 gnome-xgl-switch --enable-xgl (to enable Xgl and activate Compiz at startup)
 gnome-xgl-switch --disable-xgl (to disable Xgl and deactivate Compiz)

After that reboot or run as root:

rcxdm restart

You can also launch gnome-xgl-settings: the Desktop Effects caplet in the gnome-control-center to do this the proper GUI way. It will help you install the necessary drivers as well as configure Xgl and compiz to start automatically.

Note: On newer xgl and compiz packages, the command is xgl-switch --enable-xgl

Enable/Disable Compiz Autostart

For GNOME add compiz-manager to gnome-control-center -> session

Image:Shellscript.png Run the following command as user to enable autostart in KDE:
 ln -s /usr/bin/compiz-manager ~/.kde/Autostart/compiz-manager


Image:Shellscript.png Run the following command as user to disable compiz-manager(works for both KDE and GNOME):
 touch $HOME/.config/compiz/disable-compiz (to disable Compiz at startup)
 rm $HOME/.config/compiz/disable-compiz (to enable Compiz to autostart on login)


~/bin/kde-start-compiz should contain one line, compiz-manager& if you are using Xgl.

Configuration

Once the drivers or Xgl/AIGLX configuration is complete, compiz can be launched with any one of the following ways. Note: It is no longer required to run Compiz manually if you installed it via 1-click above. Compiz will run automatically if your hardware/driver(nVIDIA) is set up correctly or Xgl(for ATI) is enabled.

Run Manually

Image:Shellscript.png Run the following command as user if you use (works for both KDE and GNOME with XGL):
  compiz-manager &
Image:Shellscript.png Run the following command as user (works for both KDE and GNOME with AIGLX or NVIDIA):
  compiz --replace ccp &
Image:Shellscript.png Run the following command as user if the fusion-icon is installed:
  fusion-icon &

Plugins and Decorator Configuration

Use compizconfig-settings-manager, a GUI plugin configuration tool. It can be launched with the command ccsm or find it in your menu under Utillities -> Desktop.

Change the preference backend to flat-file. Add your preferred window decorator command under 'decoration' plugin. Depending on what packages you have installed, the decorator commands available are :

If you are using the GNOME Desktop Environment:
gtk-window-decorator --replace
If you are using the KDE Desktop Environment:
kde-window-decorator --replace

Or if you just want to use emerald (beryl's window decorator, works in KDE, GNOME or XFCE), then:

emerald --replace

Use emerald-theme-manager to change the window decoration if using emerald decorator.


Troubleshooting

Remove compiz

To get back to your earlier setup with all the traces of compiz-fusion removed, run these commands as root after disabling Xgl:

init 3
rpm -qa '*compiz*' #This will list all the packages installed
rpm -e <package list from the above command>
sax2 -a #will regenerate xorg.conf
gconftool-2 --recursive-unset /apps/compiz
rm -rf /home/<yourusername>/.config/compiz
init 5

If you prefer GUI way, run YaST2 -> Software Management, search compiz and remove everything including all packages that depend on compiz.

No window decoration

  • Try and start compiz using compiz-manager&
  • Manually run compiz-decorator&
  • To fix your beryl/compiz window decorations (titlebars) with an nVidia graphics card, run sudo nvidia-xconfig --add-argb-glx-visuals -d 24 , then restart X.
  • Try running kde-window-decorator --replace & manually from the konsole(kde)
  • Try running gtk-window-decorator --replace & manually from gnome-terminal(gnome)
  • Install compiz-emerald and compiz-emerald-themes packages and run emerald --replace & manually (kde or gnome)
  • Launch ccsm and insert the correct command without any typing mistake in 'decoration' plugin commandline configuration. Check Plugins and Decorator Configuration carefully.
  • Make sure that 'Translucency/shadows' in not checked inside the KDE Control Center under Desktop > Window Behavior > Translucency

In kde:-If you find commands that work for you, but when you close your terminal window, your screen goes entirely white, precede the commands with 'nohup'. eg > nohup compiz-manager&. If this works better, you can put them (with nohup) in a script called kde-start-config in your ~/bin directory. You might also want to add a command to delete ~/bin/nohup.out if you are not interested in reviewing the stdout/stderr output from these commands.

None of the ccsm settings apply

  • Please change ccsm's preference backend to flat-file
  • rpm -e libcompizconfig-backend-gconf or rpm -e libcompizconfig-backend-kconfig remove whichever is installed.

Compiz can't start under KDE

compiz --replace ccp
compiz (core) - Error: Another window manager is already running on screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

Make sure you have "Show icons on desktop" enabled in your kcontrol and restart your X server.

Alt+F1 Does not work in KDE

  • To raise a start menu in KDE add to ccsm -> General Options -> Commands -> Command line 1 -> dcop kicker kicker popupKMenu 0 and associate this with "execute command binding" to ALT+F1 in "Actions" tab. It works ONLY AFTER deleting the ALT+F1 association for "Show main menu field"

Alt+F2 Does not work in KDE

  • To start a run dialog in KDE add to ccsm -> General Options -> Commands -> Command line 0 -> dcop kdesktop KDesktopIface popupExecuteCommand and associate this with "execute command binding" to ALT+F2 in "Actions" tab. It works ONLY AFTER deleting the ALT+F2 association for "Execute Run dialog field"


Unable to start Compiz Fusion using an older Radeon graphics card

If you are using an older Radeon card, e.g. Radeon 9250, you will be running the open-source ati driver. The Compiz Fusion wiki has help.

Xgl/ATI fglrx driver: Compiz starts, I see decorations, the mouse moves and changes shape on windows, but nothing moves?

It's possible you're stuck with a Xgl/fglrx specific bug of Compiz that prevents screen updates. If this is the case, your actions work but you don't see the results. For instance, if you type ls and press enter, you can only see the output after doing an alt-tab.

To fix this problem, you need to activate the 'Fix screen updates in XGL with fglrx' option in the "Workarounds" plugin of Compiz. Run the ccsm command on a terminal, or right-click the Compiz logo in the toolbar and select "Settings Manager". Type "Workarounds" in the search box, or choose the Utility category, to reach the Workarounds plugin options tab and activate the above-mentioned box. Since your actions work, but you don't see what's happening on the screen, I used the alt-tab as a way to update the screen after each of my actions.

Intel users if things run very slow

  • Add this line to the Device section of your /etc/X11/xorg.conf file: « Option "XAANoOffscreenPixmaps" "true" » Then restart your X server. (Without <<>>)

Black Window Bug on Nvidia

See Nvidia Black Window Bug Fix

Google Earth freezing on splash screen

The following (modified) extract from n01getsout.com’s blog should hopefully do the trick:

'Apparently, all versions of ATI’s proprietary Linux (fglrx) drivers version 2.28 and newer will not work for Google Earth (at least on some systems). So here is how to get Google Earth working again:

  • Get a copy of libGL.so.1.2
  • Put the file in the Google Earth directory (usually /usr/local/google-earth)
  • Rename the file to libGL.so.1
  • Start Google Earth and enjoy!

If for some reason this doesn’t work, I have a file on my system in the /usr/lib/ directory called FGL.renamed.libGL.so.1.2. When I copied that file to the Google Earth directory and renamed it to libGL.so.1, Google Earth ran in OpenGL software mode (which was slow but usable).'

See Also


External Links