Xubuntu Edgy, XGL and Beryl (NVIDIA)

I have an NVIDIA graphics card, so I opted out of using AIGLX for the mom. AIGLX apparently uses an extension called GLX_EXT_texture_from_pixmap, which is only supported in the latest beta NVIDIA binaries.

So for the moment I am going to stick with XGL. My work PC has an ATI graphics card, so perhaps I could try AIGLX there?

Installing and setting up XGL on Xubuntu Edgy is a snap. This was all extracted from here and here

Assuming that you have 3D acceleration enabled, first you need to add the repository containing Beryl and the xserver-xgl package.
(Edited these as the repositories have changed – cheers chestnut!)

deb http://ubuntu.beryl-project.org/ edgy main

You can also obtain the GPG for the packages in the repository, so you don’t get any annoying ‘unauthenticated package warnings’. Plus you have the upside of being sure that they are valid. I don’t really know how it all works, but there you go. (This is one whole command BTW)

wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

So now go get those packages. The last week or so I’ve really come to see the light of using aptitude. Something for another day.

sudo aptitude update
sudo aptitude install beryl xserver-xgl

To use XGL as the X windows server instead of Xorg there are options that you can take. You can set up XGL to be the default X server for your login manager, replacing Xorg. Or you can set up the XGL server to be run as a desktop session, allowing you to easily change from XGL to Xorg should any problems arise.

If you are using the GDM (GNOME Display Manager), default in Xubuntu, setting this up is achieved by creating a X session .desktop file, which can be selected at the login screen.

gksudo mousepad /usr/share/xsessions/xgl.desktop &

Then just add the following

[Desktop Entry]
Encoding=UTF-8
Name=XGL Session
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application

Last thing that is required is to create the script that actually executes the XGL server when an XGL session is started.

gksudo mousepad /usr/bin/startxgl.sh

Then add the following script, which will start XGL, as well as the Beryl manager and then the XFCE session manager.

#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:fbo -accel glx:pbuffer &
sleep 4
export DISPLAY=:1
beryl-manager
exec xfce4-session

After saving the file, you should also change the permission bits to allow execution

sudo chmod a+x /usr/bin/startxgl.sh

Now just logout and log back in, choosing the XGL session available at the login screen.

If things turn out ok, you should be greeted with the wavy Beryl splash screen.

Wobbly Beryl Splash Screen

Then you can get down to the fun of customising! Beryl has a very large number of effects and ways to configure them.

You may find Beryl exceedingly cool, yet in some cases a little overwhelming. Sometimes there is just too much going on.

I’d recommend saving several different profiles in the Beryl Settings Manager. I have one for day to day use; eye candy I can be happy to work with, and one for ‘wowing’ people, with lots of wobble, sticky and water effects.

Beryl Rain Effect

I love the ’sidekick’ feature when closing windows. Unfortunately that effect doesn’t lend itself to screenshots, but it really looks cool.



5 Responses to “Xubuntu Edgy, XGL and Beryl (NVIDIA)”


  1. 1 W. Scott Friday December 22, 2006 at 10:24 am

    I’m running problems with this part of the script:

    Xgl :1 -fullscreen -ac -accel xv:fbo -accel glx:pbuffer &
    sleep 4
    export DISPLAY=:1

    When I am running as the admin user (first user), it seems to work fine. Then I log out, freeing :0 and :1. Other users cannot get this to work. If I change the DISPLAY to :0 in both instances in the script, it works, but the graphics are more sluggish.

    How can I enable other users to use the script as written?

  2. 2 Sutekh Saturday December 23, 2006 at 1:10 pm

    Sorry I don’t quite understand..

    You log in as admin? Why?

    When you try to log in as a user, what happens?

    For myself, I did nothing more to enable ordinary users to use the script. It just worked as written.

    ———-

    According to the Ubuntu Wiki – Composite Manager – XGL it won’t work properly if you use

    export DISPLAY=:0

    XGL is run as a separate X server, so it must be run on DISPLAY=:1 as the ordinary X.Org sever needs to be run on DISPLAY=:0.

    This is only if you want the XGL session to be an option at login. (Method A)

    The other method (Method B) is to use XGL as the default X server. In this case XGL is on DISPLAY=:0 and X.Org on DISPLAY=:93. This method doesn’t use that script, nor does it allow you to simply change between XGL and X.Org.

  3. 3 chestnut Wednesday January 24, 2007 at 5:14 pm

    Hi,

    I found that the repositories have changed.

    deb http://ubuntu.beryl-project.org edgy main
    deb-src http://ubuntu.beryl-project.org edgy main

    wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

    Missing ‘install’ here

    sudo aptitude install beryl xserver-xgl

    Cheers,

  4. 4 Sutekh Wednesday January 24, 2007 at 6:13 pm

    Ahh thanks … I realised that the other day and made a mention of it, but I forgot to update this post.

    Appreciate it!


  1. 1 Finally getting the latest version of Beryl « customising life Trackback on Saturday January 13, 2007 at 6:47 pm

Leave a Reply




a

My Photos

James getting dragged up the hill

Another insane run

img_0104

Insane run

More Photos

How many times has this site been visited?

  • 180,618 apparently

Site Stats