Translation(s): English - Italiano - Русский

(!) ?Discussion


Una breve introduzione su Compiz

Da Wikipedia (versione in lingua inglese, N.d.T):

"Compiz è uno dei primi window manager con compositing per il sistema X Window che è capace di sfruttare l'accelerazione OpenGL. L'integrazione permette ad esso di creare effetti di composizione nella gestione delle finestre, come effetti nella minimizzazione ed uno spazio di lavoro cubico. Compiz è conforme allo standard ICCCM e come tale può sostituire i predefiniti Metacity in GNOME o KWin in KDE. Compiz porta alcune delle funzionalità che si trovano nei competitori, come Exposé in Mac OS X della Apple e un nuovo commutatore di applicazioni via Alt-Tab, simile a quello che si trova in Windows Vista di Microsoft. Compiz è costruito sopra all'estensione Composite di X e all'estensione GLX_EXT_texture_from_pixmap di OpenGL. Compiz è stato rilasciato da Novell nel gennaio 2006 sulla scia di una nuova versione di Xgl."

Come installare compiz in Debian (per Lenny o successive versioni)

Per installare una configurazione standard basata su Gnome con alcuni plugin fusion standard:

aptitude install compiz compizconfig-settings-manager compiz-fusion-plugins-main compiz-gnome compiz-gtk

Per installare una configurazione standard basata su KDE con alcuni plugin fusion standard:

aptitude install compiz-kde compizconfig-settings-manager compiz-fusion-plugins-main

To install a minimal gtk-based compiz setup:

aptitude install compiz-gtk compizconfig-settings-manager

Add the following options to the corresponding sections in the file /etc/X11/xorg.conf: (although note that auto-detection by xserver-xorg video drivers is always improving: with the latest version of the intel video driver, possibly no manual changes are needed to xorg.conf)

# Dedicated "Extensions" section (may not be present already)
Section "Extensions"
        Option "Composite" "enable"
EndSection
# Section "Device" of you graphic card
Section "Device"
        # Already contains
        # ...
        # Identifier "..."
        # Driver     "..."
        # ...
        # Add this option :
        Option "XAANoOffscreenPixmaps" "true"
EndSection

Nvidia user may also need:

Section "Device"
        Option "AllowGLXWithComposite" "true"
EndSection
Section "Screen"
        Option "AddARGBGLXVisuals" "true"
EndSection
Section "Module"
        #Load "dri"
        #Load "GLcore"
EndSection

Restart your X.org server and login into GNOME. Open a terminal and issue the following command:

compiz --replace

If everything is correct you will be able to use all compiz resources.

Limitations

The water effect uses GL_ARB_fragment_program, which not currently work properly with the open source ATI drivers under AIGLX in X.org 7.1.

Troubleshooting

When I run compiz --replace, it informs me that XGL is not present. This message is just informing you that XGL is not present. It is not a requirement to run Compiz.

I've followed the instructions on this page, but when I run compiz, all the windows have lost their borders and title bars. There are no effects, and all the windows seem unusable. Window borders, resizing windows and moving windows are all plugins, which are initially disabled by default. To fix this, run the ccsm utility (from a terminal, or System -> Preferences -> ?CompizConfig Settings Manager). Go to the Effects Section and place a tick in the window decoration option. Go to the Window Management section and place a tick in the Resize Window and Move Window options.

If you still encounter problems with compiz, such as window title bars disappear, or cannot see any visual effects, refer to these web pages:

If something fail you could check /var/log/Xorg.0.log and search for possible problems with DRI and GLX. You also should verify if AIGLX was successfully loaded.

Default hot keys