Nicofo - English2022-10-17T19:14:28+02:00urn:md5:1d96afee1ed88826e3387febc8778ad2DotclearAutomatic installation of XGL, compiz and beryl on Fedoraurn:md5:6f1c375dc52b96c62b438b344440ff002007-02-23T23:33:38+00:002007-10-27T21:21:54+00:00NicofoEnglishBerylBureau 3DCompizCompiz-fusionXGL<p align="right"><img src="http://nicofo.tuxfamily.org/public/DC1/flag_france.gif" alt="" style="width: 22px; height: 15px;" /> <a href="http://nicofo.tuxfamily.org/dotclear/index.php/2007/01/20/21-installation-automatique-de-xgl-et-compiz" hreflang="fr">Version française</a></p>
<p><font color="grey"><i>
<img src="http://nicofo.tuxfamily.org/public/DC1/updated.gif" alt="<Mis à jour>"> 10/08/07 - The script is now compatible with <b>compiz-fusion</b>. It even makes it possible to install it on your Fedora 7: just run <b><code>installXGL_EN -cb</code></b><br />
<img src="http://nicofo.tuxfamily.org/public/DC1/updated.gif" alt="<Mis à jour>"> 22/06/07 - The script is now compatible with Fedora 6, <b>Fedora 7</b> and <b>64-bits</b> architecture.
</i></font></p>
<div id="cad" style="border-style:solid; border-width:thin; padding:4px">
<em><img src="http://nicofo.tuxfamily.org/public/DC1/warning1.png" alt="" align="left" style="padding:4px"/> <ins>Update</ins> - the ATI drivers finally support AIGLX since the version 8.42. Installing XGL is not needed anymore to benefit from the effects of a 3D desktop.</em></div> <br />
Here is a <a href="http://nicofo.tuxfamily.org/scripts/xgl/installXGL_EN" hreflang="fr">script</a> that installs and configures XGL on Fedora. It is particularly useful if you have an <strong>ATI video card</strong> with the <strong>fglrx</strong> drivers installed and you want to benefit from the 3D desktop (beryl or compiz). Indeed,
<ul>
<li>the free driver <em>radeon</em>, though it allows the 3D desktop thanks to AIGLX, has poorer performances compared with the proprietary one,</li>
<li>the proprietary driver <em>fglrx</em> will allow you to benefit from all the power of your video card, but is incompatible with AIGLX (no 3D desktop !)</li>
</ul>
It is however possible to benefit from both the performances of the proprietary driver and the 3D desktop thanks to <strong>XGL</strong>.<br /><br />
The solution proposed here applies for <strong>GNOME</strong>, <strong>KDE</strong> and <strong>XFCE</strong>.<br />
It will install XGL and give you the possibily to install <strong>compiz</strong> and <strong>beryl</strong> from the official repositories using yum. And henceforth the installation of <strong>compiz-fusion</strong> is also proposed.<br /><br />
<strong><em>How to proceed ?</em></strong><br /> <div id="cad" style="border-style:solid; border-width:thin; padding:4px">
<em><img src="http://nicofo.tuxfamily.org/public/DC1/warning.png" alt="" align="left" style="padding:4px"/> First of all, you <strong>must</strong> have installed the fglrx drivers and be ensured that they are working fine. To check the installation, run "<code>glxinfo | grep direct</code>": it should return "<code>direct rendering: Yes</code>". If not, follow the ATI drivers installation instructions below: </em>[<a href="javascript:visibilite('divid');">show/hide</a>]
<script>
function visibilite(thingId)
{
var targetElement;
targetElement = document.getElementById(thingId) ;
if (targetElement.style.display == "none")
{
targetElement.style.display = "" ;
} else {
targetElement.style.display = "none" ;
}
}
</script>
<div id="divid" style="display:none;">
<br />
<strong>1) Installation of the fglrx drivers</strong></ins><br><br>
Install the drivers with yum (livna repository):
<pre>yum install kmod-fglrx</pre>
And activate it:
<pre>cp /etc/X11/xorg.conf /etc/X11xorgORIG.conf #save your old xorg.conf
fglrx-config-display enable
</pre>
<ins><strong>2) Modify the xorg.conf</strong></ins><br><br>
a) Add the following sections in your xorg.conf (if not already present)
<pre>Section "ServerFlags"
Option "AIGLX" "false"
EndSection
Section "Extensions"
Option "Composite" "Disable"
EndSection
Section "DRI"
Mode 0666
EndSection</pre>
b) From drivers <strong>8.34</strong>, <ins>remove completely the section "Module"</ins>.<br>
c) Finally, the following options are useful in the section "Device" :
<pre> Option "UseFastTLS" "0"
Option "BlockSignalsOnLock" "on"
Option "ForceGenericCPU" "off"
Option "KernelModuleParm" "locked-userpages=0"
</pre>
<ins><strong>3) Check your installation</strong></ins><br><br>
Now, your driver should be working. Restart your X server and the fglrx service (<code>service fglrx restart</code>) (alternatively reboot your PC). To check, enter <code>fglrxinfo</code>: you should have a message similar to:
<pre>$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON X300/X550/X1050 Series
OpenGL version string: 2.0.6334 (8.34.8)</pre>
and the command "<code>glxinfo | grep direct</code>" should return "<code>Yes</code>" :
<pre>$ glxinfo | grep direct
direct rendering: Yes</pre>
But the best test is to try a 3D application (test like me with ppracer (<code>yum install ppracer</code>) for example <img src="/themes/default/smilies/wink.png" alt=";-)" class="smiley" /> )<br><br>
<img src="http://nicofo.tuxfamily.org/public/DC1/infoP.png" alt=""> If it doesn't work, have a look at the X errors: "<code>grep EE /var/log/Xorg.0.log</code>" and "<code>grep WW /var/log/Xorg.0.log</code>".<br><br>
<em>[<a href="javascript:visibilite('divid');">show/hide</a>] drivers installation instructions</em>
</div>
</div>
<br />
Download the script <a href="http://nicofo.tuxfamily.org/scripts/xgl/installXGL_EN" hreflang="en">installXGL_EN</a> (or <a href="http://nicofo.tuxfamily.org/scripts/xgl/installXGL_FC5_EN" hreflang="en">installXGL_FC5_EN</a> for FC5) and launch it (as root):
<pre>wget http://nicofo.tuxfamily.org/scripts/xgl/installXGL_EN
sh installXGL_EN</pre>
It downloads the RPM of XGL, installs it and configures it automatically:<br /><br />
<a href="http://nicofo.tuxfamily.org/public/DC1/xgl-FC6/installXGL_EN.png"><img src="http://nicofo.tuxfamily.org/public/DC1/xgl-FC6/installXGL_EN_THUMB.jpg" alt="install xgl FC6" style="margin: 0 auto; display: block;" /></a>
<br />
Now, you have just to open a new session (no need to reboot Fedora). At the login screen (GDM or KDM), click on the ("Options" > )"Session" menu and choose your preferred session:<br /><br />
<a href="http://nicofo.tuxfamily.org/public/DC1/xgl-FC6/xgl.jpg"><img src="http://nicofo.tuxfamily.org/public/DC1/xgl-FC6/xgl_THUMB.jpg" alt="xgl FC6 GDM" style="margin: 0 auto; display: block;" /></a>
<br />
That's it ! Enjoy <img src="/themes/default/smilies/wink.png" alt=";-)" class="smiley" /><br /><br />
<strong><em>Beryl, Compiz or Compiz-fusion ?</em></strong><br />
The script proposes to you to install compiz and beryl. But you can at any moment install them using yum (<code>yum install beryl compiz</code>). Next, you can choose which one you prefer:
<ul>
<li><ins>under GNOME</ins>: go to System -> Preferences -> XGL Window Manager<br /></li>
<li><ins>under KDE</ins>: in the K Menu -> Settings -> XGL Window Manager<br /></li>
<li>or execute <code>chooseCompositeWM</code></li>
</ul>
<img src="http://nicofo.tuxfamily.org/public/DC1/compiz-fusion/chooseCompositeWM_EN.jpg" alt="xgl Fedora compiz-fusion chooseCompositeWM" style="margin: 0 auto; display: block;" />
<br /><br />
<img src="http://nicofo.tuxfamily.org/public/DC1/warning1.png" style="width: 24px; height: 24px;" alt="" /> If you prefer to launch <em>manually</em> compiz / beryl / fusion-icon / desktop-effects /etc... (with an ATI card), add the variable <strong><code>LD_LIBRARY_PATH</code></strong>. For example :
<pre>LD_LIBRARY_PATH=/usr/lib/ beryl</pre>
<br />
<img src="http://nicofo.tuxfamily.org/public/DC1/tip.png" alt="" /> <strong>Infos...</strong><br />
<ul>
<li>How to <strong>update</strong> your XGL installation ? re-run <code>installXGL_EN</code>.</li>
<li>How to <strong>uninstall</strong> XGL ? run <code>installXGL_EN -r</code>.</li>
<li>The script can propose to install <strong>beryl</strong>, <strong>compiz</strong> and <strong>compiz-fusion</strong>: <code>installXGL_EN -cb</code> ...</li>
<li>... or propose to remove them: <code>installXGL_EN -rcb</code>.</li>
<li>If you encounter a problem running a <strong>game</strong> or a 3D application, just run it using <em><ins>noXgl</ins></em>. The option <code>-a</code> can be used to launch a not-full screen application. Examples :
<pre>noXgl ppracer
noXgl -a googleearth</pre></li>
<li><a href="http://nicofo.tuxfamily.org/dotclear/index.php/2007/01/13/20-ati-xgl-ca-marche-mode-d-emploi#instalXGL" hreflang="fr">Details</a> on the script or <a href="http://nicofo.tuxfamily.org/dotclear/index.php/2007/01/13/20-ati-xgl-ca-marche-mode-d-emploi#pb" hreflang="fr">problems</a> with it (French).</li>
<li>Screenshots of <a href="http://nicofo.tuxfamily.org/dotclear/index.php/2006/06/26/8-screenshots-xgl-compiz" hreflang="fr">Compiz</a> and <a href="http://nicofo.tuxfamily.org/dotclear/index.php/2007/01/03/18-screenshots-beryl-aiglx" hreflang="fr">Beryl</a> (and <a href="http://nicofo.tuxfamily.org/dotclear/index.php/2007/07/01/32-l-effet-beryl" hreflang="fr">here</a>).</li>
</ul>
<img src="http://nicofo.tuxfamily.org/public/DC1/download.png" alt="download" /> Download the script:
<ul>
<li><strong>Fedora 6 and 7</strong>: <a href="http://nicofo.tuxfamily.org/scripts/xgl/installXGL_EN" hreflang="en">installXGL_EN</a></li>
<li><strong>Fedora 5</strong>: <a href="http://nicofo.tuxfamily.org/scripts/xgl/installXGL_FC5_EN" hreflang="en">installXGL_FC5_EN</a> - works also with more recent versions of Fedora but uses FC5 packages of XGL and Compiz.</li>
</ul>http://nicofo.tuxfamily.org/index.php?post/2007/02/23/25-automatic-installation-of-xgl-compiz-and-beryl-on-fedora#comment-formhttp://nicofo.tuxfamily.org/index.php?feed/atom/comments/21