RenderingProject/AiglxOnFedora

From FedoraProject

< RenderingProject
Revision as of 14:13, 24 May 2008 by ImportUser (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

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"
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

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:

#----------------------------------------------------------------------
#
#
#
#----------------------------------------------------------------------

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.