Differences between revisions 10 and 11
Revision 10 as of 2006-10-24 16:55:51
Size: 3363
Editor: ?MatheusMorais
Comment:
Revision 11 as of 2006-10-26 07:12:01
Size: 3799
Editor: ?ZhaoDifei
Comment: format polish up + modification
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== A small word about Compiz == == A short introduction about Compiz ==
Line 3: Line 3:
From Wikipedia,
"Compiz is one of the first compositing window managers for the X Window System that is able to take advantage of OpenGL-acceleration. The integration allows it to perform compositing effects in window management, such as a minimization effect and a cube workspace. Compiz conforms to the ICCCM standard and as such can substitute for the default Metacity in GNOME or KWin in KDE. Compiz brings some of the features found in competitors, such as Exposé in Apple's Mac OS X and a new Alt-Tab application-switcher, similar to the one found in Microsoft's Windows Vista. Compiz is built on the Composite extension to X and the GLX_EXT_texture_from_pixmap extension to OpenGL. Compiz was released by Novell in January 2006 in the wake of a new Xgl version."
From Wikipedia:
Line 6: Line 5:
"...Compiz works with modifications on the standard X.Org server, with AIGLX enabled. With AIGLX, Intel cards can also be used with Compiz. Even mobile cards work there." ''"Compiz is one of the first compositing window managers for the X Window System that is able to take advantage of OpenGL-acceleration. The integration allows it to perform compositing effects in window management, such as a minimization effect and a cube workspace. Compiz conforms to the ICCCM standard and as such can substitute for the default Metacity in GNOME or KWin in KDE. Compiz brings some of the features found in competitors, such as Exposé in Apple's Mac OS X and a new Alt-Tab application-switcher, similar to the one found in Microsoft's Windows Vista. Compiz is built on the Composite extension to X and the GLX_EXT_texture_from_pixmap extension to OpenGL. Compiz was released by Novell in January 2006 in the wake of a new Xgl version."''
Line 8: Line 7:
At september Compiz integrated with AIGLX in X.org server 7.1 was accepted into unstable. It currently maintained by Debian X Strike Force. ''"...Compiz works with modifications on the standard X.Org server, with AIGLX enabled. With AIGLX, Intel cards can also be used with Compiz. Even mobile cards work there."''
Line 10: Line 9:
Here is a small document about how to set up your X.org with AIGLX enabled and Compiz integrated with Gnome. From september 2006, X.org 7.1 (AIGLX merged) was accepted into debian unstable. It is currently maintained by the Debian X Strike Force.
Line 12: Line 11:
== The Procedure == Here is a Debian AIGLX + compiz HOWTO:

== Procedure ==
Line 18: Line 19:
 * NVIDIA graphics card which is supported in the 9xxx-series proprietary driver  * NVIDIA graphics card are supported in the 9xxx-series proprietary driver
Line 20: Line 21:
We will need to fetch some packages from unstable, so point Debian official Unstable repository in your sources.list. (deb http://ftp.debian.org main unstable) and update it. We will need to fetch some packages from unstable, so point Debian official Unstable repository in your "/etc/apt/sources.list". (deb [http://ftp.debian.org] main unstable) and "apt-get update".
Line 22: Line 23:
Use aptitude to install the follow packages: Install the following packages:
Line 38: Line 39:
Now edit your /etc/X11/xorg.conf adding the section Extensions as you can see below: Edit the corresponding sections in your "/etc/X11/xorg.conf":

{{{
Section "ServerLayout"
        Option "AIGLX" "true"
EndSection
Line 41: Line 47:
     Option "Composite" "enable"         Option "Composite" "enable"
Line 44: Line 50:
Also, you will need to add "XAANoOffscreenPixmaps" option in section "Device": Section "Device"
        Option "XAANoOffscreenPixmaps" "true"
EndSection
}}}
Line 46: Line 55:
Option "XAANoOffscreenPixmaps" "true" Nvidia user may also need:
Line 48: Line 57:
Restart your X.org server and login into Gnome. Open terminal window and type the following command: {{{
Section "Device"
        Option "AllowGLXWithComposite" "true"
EndSection
Line 50: Line 62:
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:

{{{
Line 51: Line 76:
}}}
Line 53: Line 79:
[[BR]]
You may want to start your compiz automatically with GNOME:
[[BR]]
Add "compiz --replace" to "Desktop -> Preferences -> Sessions -> Startup Programs".
Line 57: Line 86:
The water resource wich use GL_ARB_fragment_program, doesnt work propely using AIGLX in X.org 7.1 The water effect uses GL_ARB_fragment_program, which not currently work propely with the open source drivers under AIGLX in X.org 7.1.
Line 59: Line 88:

== Troubleshoting ==
== Troubleshooting ==
Line 64: Line 92:
Line 67: Line 94:
Switch desktops on cube: Ctrl + Alt + Left/Right Arrow

Switch desktops on cube - with active window following: Ctrl + Shift + Alt + Left/Right Arrow

Rotate cube manually: Ctrl + Alt + left-click

Zoom-in once: Super-key right-click

Zoom-in manually: Super-key + wheel mouse up

Zoom-out manually: Super-key + wheel mouse down

Move window: Alt + left-click

Slow-motion: Shift + F10

Transparency: Put mouse cursor over the window then press Alt + wheel mouse down

Exposé effect: Ctrl + Alt + Up Arrow or Point the mouse in top right at screen
 * Switch desktops on cube: Ctrl + Alt + Left/Right Arrow
 * Switch desktops on cube - with active window following: Ctrl + Shift + Alt + Left/Right Arrow
 * Rotate cube manually: Ctrl + Alt + left-click
 * Zoom-in once: Super-key + right-click
 * Zoom-in manually: Super-key + wheel mouse up
 * Zoom-out manually: Super-key + wheel mouse down
 * Move window: Alt + left-click
 * Slow-motion: Shift + F10
 * Transparency: Put mouse cursor over the window then press Alt + wheel mouse down
 * Expose effect: Ctrl + Alt + Up Arrow or Point the mouse in top right at screen

A short introduction about Compiz

From Wikipedia:

"Compiz is one of the first compositing window managers for the X Window System that is able to take advantage of OpenGL-acceleration. The integration allows it to perform compositing effects in window management, such as a minimization effect and a cube workspace. Compiz conforms to the ICCCM standard and as such can substitute for the default Metacity in GNOME or KWin in KDE. Compiz brings some of the features found in competitors, such as Exposé in Apple's Mac OS X and a new Alt-Tab application-switcher, similar to the one found in Microsoft's Windows Vista. Compiz is built on the Composite extension to X and the GLX_EXT_texture_from_pixmap extension to OpenGL. Compiz was released by Novell in January 2006 in the wake of a new Xgl version."

"...Compiz works with modifications on the standard X.Org server, with AIGLX enabled. With AIGLX, Intel cards can also be used with Compiz. Even mobile cards work there."

From september 2006, X.org 7.1 (AIGLX merged) was accepted into debian unstable. It is currently maintained by the Debian X Strike Force.

Here is a Debian AIGLX + compiz HOWTO:

Procedure

First, you should verify if your video card is supported. Check the list of supported cards below.

  • Intel i830 through i945 graphics cards
  • ATI Radeon cards up to X800 series
  • NVIDIA graphics card are supported in the 9xxx-series proprietary driver

We will need to fetch some packages from unstable, so point Debian official Unstable repository in your "/etc/apt/sources.list". (deb [http://ftp.debian.org] main unstable) and "apt-get update".

Install the following packages:

  • xserver-xorg
  • xserver-xorg-core
  • libglitz1
  • libglitz-glx1
  • libdrm2
  • libgl1-mesa-dri
  • libgl1-mesa-glx
  • compiz
  • compiz-core
  • compiz-plugins
  • compiz-gtk
  • compiz-gnome
  • mesa-utils

Edit the corresponding sections in your "/etc/X11/xorg.conf":

Section "ServerLayout"
        Option "AIGLX" "true"
EndSection

Section "Extensions"
        Option "Composite" "enable"
EndSection

Section "Device"
        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. ?BR You may want to start your compiz automatically with GNOME: ?BR Add "compiz --replace" to "Desktop -> Preferences -> Sessions -> Startup Programs".

Limitations

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

Troubleshooting

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.

Hot keys

  • Switch desktops on cube: Ctrl + Alt + Left/Right Arrow
  • Switch desktops on cube - with active window following: Ctrl + Shift + Alt + Left/Right Arrow
  • Rotate cube manually: Ctrl + Alt + left-click
  • Zoom-in once: Super-key + right-click
  • Zoom-in manually: Super-key + wheel mouse up
  • Zoom-out manually: Super-key + wheel mouse down
  • Move window: Alt + left-click
  • Slow-motion: Shift + F10
  • Transparency: Put mouse cursor over the window then press Alt + wheel mouse down
  • Expose effect: Ctrl + Alt + Up Arrow or Point the mouse in top right at screen