{"id":1441,"date":"2006-11-21T23:54:46","date_gmt":"2006-11-21T14:54:46","guid":{"rendered":"http:\/\/pchero21.com\/?p=1441"},"modified":"2006-11-21T23:54:46","modified_gmt":"2006-11-21T14:54:46","slug":"install-ubuntu-edgy-xgl","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=1441","title":{"rendered":"Install\/ Ubuntu\/ Edgy\/ XGL"},"content":{"rendered":"<h1>Install\/Ubuntu\/Edgy\/XGL<\/h1>\n<div id=\"bodyContent\">\n<h3 id=\"siteSub\">From Beryl Wiki<\/h3>\n<div id=\"jump-to-nav\">Jump to: navigation, search<\/div>\n<table id=\"toc\" summary=\"Contents\">\n<tbody>\n<tr>\n<td>\n<div id=\"toctitle\">\n<h2>Contents<\/h2>\n<p>[<a id=\"togglelink\">hide<\/a>]<\/p>\n<\/div>\n<ul>\n<li>1 Introduction<\/li>\n<li>2 Graphic Card Drivers and 3D Video Acceleration<\/li>\n<li>3 Migrating from Compiz-QuinnStorm<\/li>\n<li>4 Adding the Beryl Project repositories<\/li>\n<li>5 Installing Xgl and Beryl<\/li>\n<li>6 Configuration\n<ul>\n<li>6.1 Adding an Xgl login session<\/li>\n<li>6.2 Changing your standard login<\/li>\n<\/ul>\n<\/li>\n<li>7 Running Beryl\n<ul>\n<li>7.1 Adding Beryl to Session Startup<\/li>\n<li>7.2 Adding Beryl to an Existing Session<\/li>\n<\/ul>\n<\/li>\n<li>8 Troubleshooting<\/li>\n<li>9 See also<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Introduction<\/p>\n<\/div>\n<p>Installing Xgl and Beryl in (K)ubuntu Edgy Eft is simple. Getting it  working is slightly more complex, but this how-to should make it easy.  If you have used compiz previously, it will be very familiar ground  indeed. And yes, if you think you can update \/ clarify \/ improve the  instructions on this page, please register, log in and go ahead and add  your suggestions. Have fun!<\/p>\n<hr \/>\n<p><strong>Note:<\/strong> Lennart Hansen has written an all-graphical guide, <strong><a title=\"http:\/\/lhansen.blogspot.com\/2006\/10\/3d-desktop-beryl-and-xgl-on-ubuntu-edgy.html\" rel=\"nofollow\" href=\"http:\/\/lhansen.blogspot.com\/2006\/10\/3d-desktop-beryl-and-xgl-on-ubuntu-edgy.html\">Beryl and Xgl on Ubuntu Edgy Eft with ATI card<\/a><\/strong>. Lots of screenshots and handy for those who prefer not to use the terminal.<\/p>\n<p><strong>Suggestions:<\/strong> Maybe a section on migrating from the previous  Compiz setup, including what packages need to be removed first, such as  Compiz, to avoid conflict. (<strong>Update<\/strong>: pilfered from dapper guide, see below)<\/p>\n<hr \/>\n<div>[edit]<\/div>\n<p><a name=\"Graphic_Card_Drivers_and_3D_Video_Acceleration\"><\/a><\/p>\n<h2>Graphic Card Drivers and 3D Video Acceleration<\/h2>\n<p>Note: If you have previously used Xgl with compiz, you should be good to go and you can skip this step.<\/p>\n<hr \/>\n<p>The Xgl X server requires 3D video acceleration. Most graphics cards  should automatically support 3D acceleration in Edgy Eft; some graphics  cards might need some tweaking though.<\/p>\n<p>You can check whether direct rendering is enabled by invoking<\/p>\n<pre>$ glxinfo | grep direct\n<\/pre>\n<p>in a terminal. If it returns<\/p>\n<pre>direct rendering: Yes\n<\/pre>\n<p>For ATI Graphics-Card you can check with<\/p>\n<pre>\"fglrxinfo\"\n<\/pre>\n<p>then you&#8217;re ready to install Xgl and Beryl. If it doesn&#8217;t, you might  need to install the appropriate driver for your graphics card. Follow  the official Ubuntu Desktop Guide&#8217;s instructions for Nvidia or ATI graphics card drivers, or check the <a title=\"http:\/\/wiki.cchtml.com\/index.php\/Ubuntu_Edgy_Installation_Guide#C\" rel=\"nofollow\" href=\"http:\/\/wiki.cchtml.com\/index.php\/Ubuntu_Edgy_Installation_Guide#C\">ATI Linux Drivers Wiki<\/a> for ATI <strong>fglrx<\/strong> drivers.<\/p>\n<div>[<a title=\"Edit section: Migrating from Compiz-QuinnStorm\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=3\">edit<\/a>]<\/div>\n<p><a name=\"Migrating_from_Compiz-QuinnStorm\"><\/a><\/p>\n<h2>Migrating from Compiz-QuinnStorm<\/h2>\n<p>If you have the QuinnStorm version of Compiz installed on your system  and want to migrate to Beryl, it&#8217;s best to uninstall Compiz first and  then install Beryl from scratch. Simply use Synaptic (GNOME) or Adept  (KDE) to remove the <strong>compiz<\/strong>, <strong>compiz-gnome<\/strong> and <strong>gset-compiz<\/strong> meta-packages or use the command line:<\/p>\n<pre>$ sudo apt-get remove compiz compiz-gnome gset-compiz\n<\/pre>\n<p>and continue on with the rest of the tutorial.<\/p>\n<div>[<a title=\"Edit section: Adding the Beryl Project repositories\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=4\">edit<\/a>]<\/div>\n<p><a name=\"Adding_the_Beryl_Project_repositories\"><\/a><\/p>\n<h2>Adding the Beryl Project repositories<\/h2>\n<p>Now add the Beryl Project&#8217;s repository to <code>\/etc\/apt\/sources.list<\/code>. This can be done using the <a title=\"https:\/\/help.ubuntu.com\/community\/Repositories\/Ubuntu\" rel=\"nofollow\" href=\"https:\/\/help.ubuntu.com\/community\/Repositories\/Ubuntu\">Synaptic<\/a> or <a title=\"https:\/\/help.ubuntu.com\/community\/Repositories\/Kubuntu\" rel=\"nofollow\" href=\"https:\/\/help.ubuntu.com\/community\/Repositories\/Kubuntu\">Adept<\/a> graphical interfaces, or <a title=\"https:\/\/help.ubuntu.com\/community\/Repositories\/CommandLine\" rel=\"nofollow\" href=\"https:\/\/help.ubuntu.com\/community\/Repositories\/CommandLine\">from the command line<\/a>. The line to be added is<\/p>\n<pre>deb <a title=\"http:\/\/ubuntu.beryl-project.org\/\" rel=\"nofollow\" href=\"http:\/\/ubuntu.beryl-project.org\/\">http:\/\/ubuntu.beryl-project.org\/<\/a> edgy main-edgy\n<\/pre>\n<p>For amd64 architectures, append &#8216;main-edgy-amd64&#8217; like so:<\/p>\n<pre>deb <a title=\"http:\/\/ubuntu.beryl-project.org\/\" rel=\"nofollow\" href=\"http:\/\/ubuntu.beryl-project.org\/\">http:\/\/ubuntu.beryl-project.org\/<\/a> edgy main-edgy main-edgy-amd64\n<\/pre>\n<p><strong>Note<\/strong>: A number of mirrors are available if you find yourself getting slow speeds from the primary host. The <a title=\"http:\/\/ubuntu.beryl-project.org\/\" rel=\"nofollow\" href=\"http:\/\/ubuntu.beryl-project.org\/\">current list of mirrors<\/a> includes<\/p>\n<pre>deb <a title=\"http:\/\/www.beerorkid.com\/compiz\" rel=\"nofollow\" href=\"http:\/\/www.beerorkid.com\/compiz\">http:\/\/www.beerorkid.com\/compiz<\/a> edgy main-edgy\ndeb http:\/\/media.blutkind.org\/xgl\/ edgy main-edgy\ndeb <a title=\"http:\/\/compiz-mirror.lupine.me.uk\/\" rel=\"nofollow\" href=\"http:\/\/compiz-mirror.lupine.me.uk\/\">http:\/\/compiz-mirror.lupine.me.uk\/<\/a> edgy main-edgy\ndeb <a title=\"http:\/\/ubuntu.compiz.net\/\" rel=\"nofollow\" href=\"http:\/\/ubuntu.compiz.net\/\">http:\/\/ubuntu.compiz.net\/<\/a> edgy main-edgy\ndeb <a title=\"http:\/\/beryl.xglusers.de\/\" rel=\"nofollow\" href=\"http:\/\/beryl.xglusers.de\/\">http:\/\/beryl.xglusers.de\/<\/a> edgy main-edgy (main-edgy-amd64)\n<\/pre>\n<p>The packages in the repository are signed with a <a title=\"http:\/\/wiki.debian.org\/SecureApt\" rel=\"nofollow\" href=\"http:\/\/wiki.debian.org\/SecureApt\">gpg signature<\/a> so you can verify that they are valid. To add the gpg key to your  keychain, use Synaptic \/ Adept or invoke the following command:<\/p>\n<pre>$ wget <a title=\"http:\/\/ubuntu.beryl-project.org\/quinn.key.asc\" rel=\"nofollow\" href=\"http:\/\/ubuntu.beryl-project.org\/quinn.key.asc\">http:\/\/ubuntu.beryl-project.org\/quinn.key.asc<\/a> --quiet -O - | sudo apt-key add -\n<\/pre>\n<p>Next, make apt aware of the new software repositories by issuing the following command<\/p>\n<pre>$ sudo apt-get update\n<\/pre>\n<p>Done\u00a0! The new software repositories should now be available for use.<\/p>\n<div>[<a title=\"Edit section: Installing Xgl and Beryl\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=5\">edit<\/a>]<\/div>\n<p><a name=\"Installing_Xgl_and_Beryl\"><\/a><\/p>\n<h2>Installing Xgl and Beryl<\/h2>\n<p>Use Synaptic or Adept to install the <strong>xserver-xgl<\/strong> package, or use the command line<\/p>\n<pre>$ sudo apt-get install xserver-xgl\n<\/pre>\n<p>Next, install the <strong>beryl<\/strong> and <strong>emerald-themes<\/strong> packages<\/p>\n<pre>$ sudo apt-get install beryl emerald-themes\n<\/pre>\n<p><strong>Note<\/strong>: <strong>beryl<\/strong> is a metapackage that will install the dependencies (<strong>beryl-core<\/strong>, <strong>beryl-plugins<\/strong>, <strong>beryl-manager<\/strong>, <strong>beryl-settings<\/strong>) as well as the <strong>emerald<\/strong> decorator but not <strong>emerald-themes<\/strong>.<\/p>\n<div>[<a title=\"Edit section: Configuration\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=6\">edit<\/a>]<\/div>\n<p><a name=\"Configuration\"><\/a><\/p>\n<h2>Configuration<\/h2>\n<p>There are a number of ways to log into an Xgl Session and start the  Beryl composite manager. Check and see which one suits you best.<\/p>\n<div>[<a title=\"Edit section: Adding an Xgl login session\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=7\">edit<\/a>]<\/div>\n<p><a name=\"Adding_an_Xgl_login_session\"><\/a><\/p>\n<h3>Adding an Xgl login session<\/h3>\n<p>Adding a separate Xgl session to your (gdm or kdm) login screen is  recommended for most situations because it allows you to switch easily  between Xgl and standard Xorg sessions. After all, Xgl is not meant to  be a full-fledged replacement for the standard Xorg server. Some  applications (such as OpenGL games) might not run properly in an Xgl  session; and keep in mind that the Beryl composite manager is still very  much a work in progress. If you run into bugs or problems, you&#8217;ll have  your standard X session at your fingertips.<\/p>\n<p>Adding an X session to your login screen is a two-step process: first  we&#8217;ll create a startup script that invokes the Xgl session and our  desktop environment. Then we&#8217;ll create the login screen entry that uses  our script.<\/p>\n<p><strong>The startup script<\/strong>: Use your favourite text editor to create a script <strong>startxgl.sh<\/strong> in your path, like so:<\/p>\n<pre>$ sudo gedit \/usr\/local\/bin\/startxgl.sh\n<\/pre>\n<hr \/>\n<p><strong>Note:<\/strong> The contents of the script varies depending on your  desktop environment and the graphics card you use. And yes, users of  other window managers, please help out and add your own startup scripts  here.<\/p>\n<hr \/>\n<hr \/>\n<p><strong>GNOME &amp; Nvidia graphics card<\/strong><\/p>\n<hr \/>\n<pre>#!\/bin\/sh\n\/usr\/bin\/Xgl\u00a0:1 -fullscreen -ac -br -accel xv:fbo -accel glx:pbuffer &amp;\nsleep 4\nexport DISPLAY=:1\nexec gnome-session\n<\/pre>\n<p>For <strong>KDE<\/strong>, change the last line to<\/p>\n<pre>exec startkde\n<\/pre>\n<hr \/>\n<p><strong>GNOME &amp; ATI graphics card<\/strong><\/p>\n<hr \/>\n<pre>#!\/bin\/sh\nXgl -fullscreen\u00a0:1 -ac -br -accel glx:pbuffer -accel xv:pbuffer &amp;\nsleep 4\nexport DISPLAY=:1\nexec gnome-session\n<\/pre>\n<p><strong>Note:<\/strong> If you have Problems with the original script take this one:<\/p>\n<pre>#!\/bin\/sh\nXgl\u00a0:1 -fullscreen -ac -br -accel glx:pbuffer -accel xv:pbuffer &amp;\nsleep 4\nexport DISPLAY=:1\nexec gnome-session\n<\/pre>\n<p>For <strong>KDE<\/strong>, change the last line to<\/p>\n<pre>exec startkde\n<\/pre>\n<hr \/>\n<p><strong>User Note:<\/strong> <a title=\"http:\/\/forum.beryl-project.org\/topic-6063-screen-setting-session-manager\" rel=\"nofollow\" href=\"http:\/\/forum.beryl-project.org\/topic-6063-screen-setting-session-manager\">Not happy with Xgl? Want to try AIGLX?<\/a><\/p>\n<hr \/>\n<p>For me, on Ubuntu Edgy, XGL didn&#8217;t work right after upgrading, but with the <a title=\"Install\/Ubuntu\/Edgy\/nVIDIA\" href=\"http:\/\/wiki.beryl-project.org\/index.php\/Install\/Ubuntu\/Edgy\/nVIDIA\">Beta nVidia driver<\/a> installed, I use the built-in <a title=\"Install\/Ubuntu\/Edgy\/AiGLX\" href=\"http:\/\/wiki.beryl-project.org\/index.php\/Install\/Ubuntu\/Edgy\/AiGLX\">AIGLX<\/a> support in xorg 7.1.1 by changing the startup script to read:<\/p>\n<p><strong>GNOME<\/strong><\/p>\n<pre>#!\/bin\/sh\nberyl-manager\nsleep 4\nexec gnome-session\n<\/pre>\n<p>For <strong>KDE<\/strong>, change the last line to<\/p>\n<pre>exec startkde\n<\/pre>\n<p><strong>Making the script executable:<\/strong> Now make sure the script has the  right permissions settings set so that it can be invoked by session  login entry &#8211; this can be done in Nautilus or Konqueror or simply by  typing the following into a terminal:<\/p>\n<pre>$ sudo chmod a+x \/usr\/local\/bin\/startxgl.sh\n<\/pre>\n<p><strong>IMPORTANT NOTE<\/strong> <strong>I recently found that if we start Gnome\/KDE  this way, we may lose font or mouse pointer configuration, since they  don&#8217;t get loaded with Xgl. The correct way that I found was to use &#8220;exec  \/etc\/X11\/Xsession&#8221; instead of gnome-session or startkde.<\/strong> &#8211; Lesterchakyn<\/p>\n<p><strong>Creating the login session entry:<\/strong> To create the login entry, create a new file <strong>\/usr\/share\/xsessions\/xgl.desktop<\/strong> and make it look like this:<\/p>\n<pre>[Desktop Entry]\nEncoding=UTF-8\nName=Xgl\nExec=\/usr\/local\/bin\/startxgl.sh\nIcon=\nType=Application\n<\/pre>\n<p><strong>Note:<\/strong> The <strong>Name=Xgl<\/strong> entry is the description of the  session that you&#8217;ll see in your login menu, so you could change it to  &#8216;Xgl-Gnome&#8217; or &#8216;Xgl-Beryl&#8217; if it suits you better.<\/p>\n<hr \/>\n<p><strong>Done!<\/strong><\/p>\n<hr \/>\n<p>When you get to the GDM or KDM login screen, you should now have a  session called &#8216;Xgl&#8217; available; if you log into this session, Xgl will  run as an overlay to the standard Xorg X session (that is, on DISPLAY:  1) and load your desktop environment. Logging into your normal session  will give you the standard, un-accelerated desktop for trouble-shooting  or running programs which don&#8217;t play nicely with Xgl.<\/p>\n<div>[<a title=\"Edit section: Changing your standard login\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=8\">edit<\/a>]<\/div>\n<p><a name=\"Changing_your_standard_login\"><\/a><\/p>\n<h3>Changing your standard login<\/h3>\n<p><strong>For GNOME:<\/strong> Instead of adding a separate desktop session, you  could alter your standard X session. This is not recommended for most  users (see above). It might be useful however if you do not want to set  up a separate X session for Beryl for some reason.<\/p>\n<p>First change <strong>gdm.conf-custom<\/strong>:<\/p>\n<pre>$ sudo nano \/etc\/gdm\/gdm.conf-custom\n<\/pre>\n<p>Go to the very bottom of the file and add:<\/p>\n<pre>0=Xgl\n[server-Xgl]\nname=Xgl server\ncommand=\/usr\/bin\/Xgl\u00a0:0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo\nflexible=true\n<\/pre>\n<p>When you reboot or restart the graphical session, the Xgl server should be running.<\/p>\n<div>[<a title=\"Edit section: Running Beryl\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=9\">edit<\/a>]<\/div>\n<p><a name=\"Running_Beryl\"><\/a><\/p>\n<h2>Running Beryl<\/h2>\n<p>Now it&#8217;s time to test your Beryl installation. Open a terminal and type<\/p>\n<pre>$ <strong>beryl-manager<\/strong>\n<\/pre>\n<p>If all goes well, you should see the Beryl splash screen and your  windows will become wobbly! Your system tray should show the Beryl icon &#8211;  a red gem &#8211; that you can use to adjust beryl&#8217;s and emerald&#8217;s settings.  Click on &#8216;Beryl settings manager&#8217; or Emerald, the theme manager. It also  provides fallback to another window manager (metacity for example), in  case Beryl crashes.<\/p>\n<p>If you don&#8217;t see the beryl splash screen immediately, you may need to  tell the manager to load Beryl &#8211; right-click on the red gem, go to  &#8220;Select Window Manager&#8221; and choose &#8220;Beryl&#8221;. If that doesn&#8217;t work,  there&#8217;s a problem somewhere! Often, useful debugging output will show in  the terminal window you used to start beryl with.<\/p>\n<hr \/>\n<p>IRC channels<\/p>\n<hr \/>\n<p>Ubuntu users can ask for help on the <strong>#ubuntu-xgl<\/strong> or <strong>#xgl<\/strong> channels on <a title=\"irc:\/\/irc.freenode.net\/\" rel=\"nofollow\" href=\"irc:\/\/irc.freenode.net\/\">irc:\/\/irc.freenode.net\/<\/a><\/p>\n<div>[<a title=\"Edit section: Adding Beryl to Session Startup\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=10\">edit<\/a>]<\/div>\n<p><a name=\"Adding_Beryl_to_Session_Startup\"><\/a><\/p>\n<h3>Adding Beryl to Session Startup<\/h3>\n<p>Assuming all goes well, you can set up Beryl Manager to start up every time you load into your Xgl session.<\/p>\n<hr \/>\n<p><strong>GNOME<\/strong><\/p>\n<hr \/>\n<p><strong>Note:<\/strong> This method will add <strong>beryl-manager<\/strong> to <em><strong>every<\/strong><\/em> gnome session, not just the Xgl session. Not very useful for those who  wish to keep their Xorg and Xgl sessions separate. See below.<\/p>\n<ul>\n<li>Go to System \u2192 Preferences \u2192 Sessions<\/li>\n<li>Go to the &#8216;Startup Programs&#8217; tab<\/li>\n<li>Click the &#8216;Add&#8217; button and type <strong>beryl-manager<\/strong> into the dialog box<\/li>\n<li>Click &#8216;Close&#8217;<\/li>\n<\/ul>\n<p><strong>Addenda:<\/strong><\/p>\n<p>1) If the window decorations do not show up when starting beryl this way, try adding <strong>beryl-xgl<\/strong> to the startup programs as well. See the Tourbleshooting section below.<\/p>\n<p>2) A command line version of this tip can be seen here.<\/p>\n<hr \/>\n<p><strong>KDE<\/strong><\/p>\n<hr \/>\n<p>Add <strong>beryl-manager<\/strong> to KDE&#8217;s autostart. Open a terminal and create the following symlink:<\/p>\n<pre>$ <strong>ln -s \/usr\/bin\/beryl-manager ~\/.kde\/Autostart\/beryl-manager<\/strong>\n<\/pre>\n<div>[<a title=\"Edit section: Adding Beryl to an Existing Session\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=11\">edit<\/a>]<\/div>\n<p><a name=\"Adding_Beryl_to_an_Existing_Session\"><\/a><\/p>\n<h3>Adding Beryl to an Existing Session<\/h3>\n<hr \/>\n<p><strong>GNOME<\/strong><\/p>\n<hr \/>\n<p>To start beryl-manager only when the session &#8220;xgl&#8221; is started, I modified a script from Gentoo Wiki scripts. so:<\/p>\n<p><strong>Create the script<\/strong>: Use your favourite text editor to create a script <strong>start_beryl.sh<\/strong>. I placed and created it in \/usr\/local\/bin\/ so:<\/p>\n<pre>$ sudo gedit \/usr\/local\/bin\/start_beryl.sh\n<\/pre>\n<p>In the file paste this:<\/p>\n<pre>#!\/bin\/bash\n#\n# Start beryl-manager within gnome-session\n#\nif [ `ps -A -o comm | grep -c '^Xgl$'` == \"1\" ]; then\n       DISPLAY=:1 beryl-manager\n       DISPLAY=:1 beryl-xgl\nelse echo \"${0}: Error: beryl-manager not launched. Xgl not running?\"\nfi\n<\/pre>\n<p>and save the file.<\/p>\n<p><strong>Making the script executable:<\/strong> Now make sure the script has the  right permissions settings set so that it can be invoked by session  login entry &#8211; this can be done in Nautilus or Konqueror or simply by  typing the following into a terminal:<\/p>\n<pre>$ sudo chmod a+x \/usr\/local\/bin\/start_beryl.sh\n<\/pre>\n<p><strong>Add the script to gnome session startup:<\/strong><\/p>\n<pre>   * Go to System \u2192 Preferences \u2192 Sessions\n   * Go to the 'Startup Programs' tab\n   * Click the 'Add' button and type \/usr\/local\/bin\/start_beryl.sh into the dialog box\n   * Click 'Close'\n<\/pre>\n<p>Now, you can logout and start a session. When you start a gnome  session, the script looks if XGL is started, and so, if you are in a  xgl-session, it launches beryl-manager.<\/p>\n<hr \/>\n<p><strong>KDE<\/strong><\/p>\n<hr \/>\n<hr \/>\n<p>The Gentoo Wiki offers several startup scripts that allow you to start beryl or compiz only when the Xgl server is  running. If this script is added to GNOME&#8217;s session startup programs or  KDE&#8217;s autostart, beryl won&#8217;t start unless we have entered the Xgl  session &#8211; a more elegant solution to beryl startup automation. However,  these scripts were written for compiz and also include various  workarounds for font and keyboard-related issues that might not be  needed for most situations. So please, everyone<\/p>\n<hr \/>\n<p><strong>test these scripts and take the time to write up what works and what doesn&#8217;t<\/strong>, either here or in the Troubleshooting section below. Thanks on behalf of the community!<\/p>\n<hr \/>\n<p>Also, the script mentioned above for starting beryl in gnome also works if added to KDE&#8217;s autostart.<\/p>\n<div>[<a title=\"Edit section: Troubleshooting\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=12\">edit<\/a>]<\/div>\n<p><a name=\"Troubleshooting\"><\/a><\/p>\n<h2>Troubleshooting<\/h2>\n<p>Here are some tips and tricks that have been harvested from the beryl  forums. Please add your own, and link back to the thread \/ post  whenever possible.<\/p>\n<hr \/>\n<p><strong>The window decorations do not show up. What&#8217;s wrong?<\/strong><\/p>\n<hr \/>\n<p>Try running <strong>beryl-xgl<\/strong>. Open a terminal and type:<\/p>\n<pre>$ <strong>beryl-xgl<\/strong>\n<\/pre>\n<p>If this solves the problem, add <strong>beryl-xgl<\/strong> to Gnome&#8217;s session startup programs or KDE&#8217;s Autostart using the methods mentioned above.<\/p>\n<hr \/>\n<p><strong>Help, the window borders are fine, but my window widgets, dialog boxes, icons etc. look <a title=\"http:\/\/forum.beryl-project.org\/attachment.php?item=2734\" rel=\"nofollow\" href=\"http:\/\/forum.beryl-project.org\/attachment.php?item=2734\">funny<\/a> \/ not so funny \/ really grey \/ very 1990&#8217;s \/ like gtk-1 fallbacks. What&#8217;s up with that?<\/strong><\/p>\n<hr \/>\n<p>According to forum posters, there are several ways to solve this issue:<\/p>\n<p>1) Try running <strong>gnome-settings-daemon<\/strong> from a terminal:<\/p>\n<pre>$ <strong>gnome-settings-daemon &amp;<\/strong>\n<\/pre>\n<p>You should now see the widgets and icons you selected. To run this command at session login, go to <em>System \u2192 Preferences \u2192 Sessions<\/em>, go to the &#8220;Startup Programs&#8221; tab, click the &#8220;Add&#8221; button and type <strong>gnome-settings-daemon<\/strong> into the dialog box.<\/p>\n<p>2) If you are using the startxgl.sh script described above and if you are using GNOME, try replacing the final command <strong>exec gnome-session<\/strong> with <strong>exec dbus-launch &#8211;exit-with-session gnome-session<\/strong><\/p>\n<pre>#!\/bin\/sh\nXgl -fullscreen\u00a0:1 -ac -accel glx:pbuffer -accel xv:pbuffer &amp; sleep 2 &amp;&amp; DISPLAY=:1\nexec dbus-launch --exit-with-session gnome-session\n<\/pre>\n<p>3) Disable Beryl&#8217;s splash screen in Beryl Settings Manager.<\/p>\n<p>(sources: <a title=\"http:\/\/forum.beryl-project.org\/topic-5685-emerald-doesn-use-gtk-themes\" rel=\"nofollow\" href=\"http:\/\/forum.beryl-project.org\/topic-5685-emerald-doesn-use-gtk-themes\">link<\/a>, <a title=\"http:\/\/forum.beryl-project.org\/topic-5179-beryl-kills-gtk2-default-theme-edgy\" rel=\"nofollow\" href=\"http:\/\/forum.beryl-project.org\/topic-5179-beryl-kills-gtk2-default-theme-edgy\">link<\/a>)<\/p>\n<hr \/>\n<p><strong>I&#8217;ve added beryl-manager and beryl-xgl to my session startup  programs, and now I can&#8217;t log into my X session any more. How do I  remove them again?<\/strong><\/p>\n<hr \/>\n<p>In case you have trouble starting up after adding <strong>beryl-manager<\/strong> and <strong>beryl-xgl<\/strong> to the GNOME session startup programs (such as getting the White  Cube\/blank screen after the Beryl logo) and hence can&#8217;t get to the GUI  to remove them, try removing the autostart entries manually:<\/p>\n<p>Press <strong>Ctrl-Alt-F2<\/strong> to get to a console. Log in as usual and type:<\/p>\n<pre>cd ~\/.config\/autostart\nrm beryl-manager.desktop beryl-xgl.desktop\n<\/pre>\n<p>Now you should be able to log back into your X session by pressing <strong>Ctrl-Alt-F7<\/strong> (to get back to the stalled display) followed by <strong>Ctrl-Alt-Backspace<\/strong> (to restart the X server). If your X session isn&#8217;t running at all, type<\/p>\n<pre>$ <strong>sudo \/etc\/init.d\/gdm start<\/strong>\n<\/pre>\n<p>in the terminal.<\/p>\n<p>(source:<a title=\"http:\/\/forum.beryl-project.org\/topic-6063-screen-setting-session-manager\" rel=\"nofollow\" href=\"http:\/\/forum.beryl-project.org\/topic-6063-screen-setting-session-manager\">link<\/a>)<\/p>\n<hr \/>\n<p><strong>I noticed that emerald starts twice at login, and there are two  instances of emerald running, which is causing some problems. How can I  get around this?<\/strong><\/p>\n<hr \/>\n<p>Create a new startup script containing the following commands<\/p>\n<pre>beryl-manager &amp;\nkillall emerald\nemerald &amp;\n<\/pre>\n<p>Make it executable and add it to GNOME&#8217;s Session Startup or KDE&#8217;s Autostart.<\/p>\n<p>(sources: <a title=\"http:\/\/forum.beryl-project.org\/topic-5867-change-emerald-theme-manually-every-restart\" rel=\"nofollow\" href=\"http:\/\/forum.beryl-project.org\/topic-5867-change-emerald-theme-manually-every-restart\">link<\/a>, <a title=\"http:\/\/forum.beryl-project.org\/topic-6148-emerald-loaded-twice\" rel=\"nofollow\" href=\"http:\/\/forum.beryl-project.org\/topic-6148-emerald-loaded-twice\">link<\/a>)<\/p>\n<hr \/>\n<p><strong>My favourite hardware-accelerated application (google earth for example) doesn&#8217;t play well with Beryl. What can I do?<\/strong><\/p>\n<hr \/>\n<p>Try adding DISPLAY=:0 in front of the command:<\/p>\n<pre>$ <strong>DISPLAY=:0 googleearth<\/strong>\n<\/pre>\n<p>(sources: link, <a title=\"http:\/\/wiki.beryl-project.org\/index.php\/Troubles\/Xgl#Error_on_running_hardware_accerlated_3d-applications\" rel=\"nofollow\" href=\"http:\/\/wiki.beryl-project.org\/index.php\/Troubles\/Xgl#Error_on_running_hardware_accerlated_3d-applications\">link<\/a>, link)<\/p>\n<hr \/>\n<p><strong>XGL starts ok, but the window manager (gnome or kde) stops responding at startup<\/strong><\/p>\n<hr \/>\n<p>Does this apply to one user but not others? If so, try removing .beryl-managerrc<\/p>\n<pre>$ <strong>rm ~\/.beryl-managerrc<\/strong>\n<\/pre>\n<div>[<a title=\"Edit section: See also\" href=\"http:\/\/wiki.beryl-project.org\/index.php?title=Install\/Ubuntu\/Edgy\/XGL&amp;action=edit&amp;section=13\">edit<\/a>]<\/div>\n<p><a name=\"See_also\"><\/a><\/p>\n<h2>See also<\/h2>\n<p>Introduction to 3D Video Acceleration (Ubuntu Desktop Guide)<\/p>\n<p>Installing Beryl (Ubuntu Community Documentation)<\/p>\n<p><a title=\"https:\/\/help.ubuntu.com\/community\/CompositeManager\" rel=\"nofollow\" href=\"https:\/\/help.ubuntu.com\/community\/CompositeManager\">Composite Manager page (Ubuntu Community Documentation)<\/a><\/p>\n<p>Installing Xgl (Gentoo Wiki)<\/p>\n<p>Installing Beryl (Gentoo Wiki)<\/p>\n<p><a title=\"http:\/\/gentoo-wiki.com\/HOWTO_XGL\/Troubleshooting\" rel=\"nofollow\" href=\"http:\/\/gentoo-wiki.com\/HOWTO_XGL\/Troubleshooting\">Troubleshooting Xgl (Gentoo Wiki)<\/a><\/p>\n<p><a title=\"http:\/\/doc.gwos.org\/index.php\/CustomXSession\" rel=\"nofollow\" href=\"http:\/\/doc.gwos.org\/index.php\/CustomXSession\">How to build a custom X Session (GWOS)<\/a><\/p>\n<p><a title=\"http:\/\/doc.gwos.org\/index.php\/VirtualX\" rel=\"nofollow\" href=\"http:\/\/doc.gwos.org\/index.php\/VirtualX\">How to start virtual X sessions (GWOS)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install\/Ubuntu\/Edgy\/XGL From Beryl Wiki Jump to: navigation, search Contents [hide] 1 Introduction 2 Graphic Card Drivers and 3D Video Acceleration 3 Migrating from Compiz-QuinnStorm 4 Adding the Beryl Project repositories 5 Installing Xgl and Beryl 6 Configuration 6.1 Adding an &hellip; <a href=\"http:\/\/pchero21.com\/?p=1441\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/1441"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1441"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/1441\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1441"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}