AIGLX/Compiz-Beryl Nvidia
From Knowledge76
Contents |
Introduction
This guide covers the newer way to install freedesktop Compiz / Beryl.
Because beta drivers supports Xorg 7.1 and, therefore, AIGLX, which is included in Xorg 7.1, you don't need to install anything but compiz.
The methods maked with an '*' are the preferred ones.
What you need
You need only three things:
- Ubuntu Edgy Eft Knot 3 or upper
- nVIDIA graphic card supported by beta drivers
- Internet
Installing beta driver
You can install the driver using ONE of these two methods. I'm using the first one, but you can choose the one you want.
Installing from repository *
Add ONE these repositories to your /etc/apt/sources.list
deb http://dev.realistanew.com/beryl edgy beryl deb http://beryl-mirror.lupine.me.uk/beryl edgy beryl
and install the beta driver and sched hack with
sudo apt-get install nvidia-glx libxorg-sched-yield-hack0
Note: The hack is a known problem with the current beta drivers that make OpenGL applications unsuable due to cpu overload, and this hack fix it.
And restart X with Ctrl+Alt+BackSpace.
Installing from official nVIDIA package
- Download the beta driver from nVIDIA beta driver (Linux 32 & 64 bits)
- Install requiered packages to build drivers:
sudo apt-get install linux-headers-$(uname -r) libc6-dev
- Install beta driver. Open a real terminal (Ctrl+Alt+F1) and, after login in, type:
sudo /etc/init.d/gdm stop sudo sh NVIDIA-Linux-x86-1.0-9625-pkg1.run
NOTE: At the end of the install process, installer will ask you to run the configuration script. Say "yes".
- Restart GDM
sudo /etc/init.d/gdm start
Note: To add the sched hack, look here for the info and the howto.
Adding sources
Now, you can choose Compiz freedesktop (the official Compiz) or Beryl (the community Compiz branch).
Compiz freedesktop
- Edit /etc/apt/sources.list and add this line:
deb http://gandalfn.club.fr/ubuntu edgy .
NOTE: Don't forget there is a "." at the end of the line!
Updating system
sudo apt-get update sudo apt-get upgrade
Installing Compiz freedesktop
sudo apt-get install gnome-compiz-manager compiz-freedesktop compiz-freedesktop-gnome
Beryl
- Edit /etc/apt/sources.list and add ONE of these lines:
deb http://dev.realistanew.com/beryl edgy beryl deb http://beryl-mirror.lupine.me.uk/beryl edgy beryl
Updating system
sudo apt-get update sudo apt-get upgrade
Installing Beryl
sudo apt-get install beryl-core beryl-plugins emerald beryl-settings beryl-manager beryl beryl-dev emerald-themes
Note: Remember, it's still in development and there's no support for it.
Post-install configuration
- Edit /etc/X11/xorg.conf and add the Option line in the Screen section:
Section "Screen"
[...your configuration...]
Option "AddARGBGLXVisuals" "True"
EndSection
- Add this to /etc/X11/xorg.conf :
Section "Extensions"
Option "Composite" "Enable"
EndSection
NOTE: I own a nVIDIA 7600GS 512DDR2 and it works without the "Extensions" section. To know if you need one of these options, look at /var/log/Xorg.0.log and search for
(WW) NVIDIA(0): 32-bit ARGB GLX visuals require the Composite extension. (II) NVIDIA(0): Disabling 32-bit ARGB GLX visuals.
If there, there're not these strings, you can skip the "Extensions".
- Add this to /etc/X11/xorg.conf (optional) :
Section "Device"
[...your configuration...]
Option "TripleBuffer" "true"
EndSection
It seems that adding this option, your fps maybe be stable and higher, I don't use it, but maybe useful for you.
Configuring Compiz/Beryl
Compiz freedesktop
You only need to restart your session and Compiz will load a tray icon.
Right click on that icon (a red cube) and select GL Desktop.
Preferences are in Preferences option.
Beryl
We need to add a startup script to our session startup. The easiest way to do this is to click on the "System" menu in the gnome panel at the top of your screen (providing you are using the default gnome configuration). Select "Preferences" then at the bottom select "Sessions". Click on the "Startup Programs" tab and click the "Add" button. Type the following:
/usr/bin/beryl-manager
And click on "OK".
Restart and join. Right click on the tray icon (a red beryl gem) and you'll see the configuration programs.
HOWTO Compiz and Beryl
You can use both freedesktop.org Compiz and Beryl at the same time. You only need to to this:
- Install Compiz but don't check the GL Desktop
- Install Beryl and configure it
To set Compiz on
- Beryl -> Check Select Window Manager -> Metacity (GnomeWindowManager)
- Compiz -> Check GL Desktop
NOTE: You may see that the window bar is not fully loaded. Simply close session. Open your session. Unckech Compiz -> GL Desktop and check Compiz -> GL Desktop again.
Think that Compiz is in development and Beryl is in deep development :)
To set Beryl on
- Compiz -> Uncheck GL Desktop
- Beryl -> Check Select Window Manager -> Beryl
Authorship
This HOWTO is a mix from multiple howtos in the net, so I (Franz Rogar)am not the author :)