Aiglx an Fedora

Installing Aiglx

Presently, metacity with the accelerated compositing manager is available in Rawhide.

Packages for FC-5 are available from this location:

http://download.fedora.redhat.com/pub/fedora/projects/aiglx/

There's a aiglx.repo config file that you can drop into /etc/yum.repos.d and then do

yum --enablerepo=aiglx update

to pull the aiglx packages.

To turn on the compositing manager, type:

gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool true

or navigate to and set the /apps/metacity/general/compositing_manager key in gconf-editor.

Also, make sure you have something like

Section "extensions"
 Option "Composite"
EndSection

in your /etc/X11/xorg.conf

Adding Option "XAANoOffscreenPixmaps" to the "Device" section of your /etc/X11/xorg.conf will also give you increased performance.

Some options like page-flipping may make things not work very well.

Stopping the bling

To change metacity to run without the compositing manager,run:

gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool false

Turn the Service on and Off with a Right Click

Open a terminal and type

gedit ~/.gnome2/nautilus-scripts/aiglx

Add the following text below

#!/bin/bash
title="Aiglx Service"
#Date: 3-19-2006 
# Wriiten By: fedorajim@gmail.com
zenity --question --text "Do you want to turn On or Off the AIGLX Service? Yes=On / Cancel=Off" --title="$title"
if [ "$(echo $?)" == "1" ] #They clicked "no" 
     then  # Turn off the AIGLX Service
        
        gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool false
else 
# turn on the AIGLX Service
        
        gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool true
fi

Save the file Now open ~/.gnome2/nautilus-scripts folder and make the script executable, Right click the file and choose Properties. Select the Permissions tab and check execute for Owner. Close Nautilus and right click the Desktop. You should now have a new menu option named Scripts. Selecting AIGLX and answer the question. Note: [Zenity] doesn't have a yes/no option as of now. Zenity is included in your Fedora Core installation.

Diego Torres Milano has a python implementation of the dialog box that has Yes and No buttons:

#! /usr/bin/env python
#----------------------------------------------------------------------
# Copyright (C) 2006 by Diego Torres Milano <diego@pxes.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
# USA
#----------------------------------------------------------------------

import gtk
import gconf

q = gtk.MessageDialog(type=gtk.MESSAGE_QUESTION,
        buttons=gtk.BUTTONS_YES_NO)
q.set_markup('Do you want to turn ON the AIGLX Service ?')
gconf.client_get_default().set_bool(
        '/apps/metacity/general/compositing_manager',
        (q.run() == gtk.RESPONSE_YES))

which can be installed in the nautilus script folder in a similar way.