Beryl

From openSUSE

(Difference between revisions)
Revision as of 13:22, 1 March 2007
Guillaume G (Talk | contribs)

� Previous diff
Revision as of 15:53, 6 March 2007
Mhopf (Talk | contribs)
Beryl with nVidia drivers - no Xgl/AIGLX - Misleading, changed to EXT_pixmap_from_texture
Next diff →
Line 75: Line 75:
== Beryl with nVidia drivers - no Xgl/AIGLX == == Beryl with nVidia drivers - no Xgl/AIGLX ==
-Since Xorg 7.x, composite effects can be used without Xgl and simply an nVidia card. This uses nVidia's AIGLX; not Xorg's inbuilt/optional AIGLX, nor with [[Xgl]].+Since Xorg 7.x, composite effects can be used without Xgl and simply an nVidia card. This uses nVidia's implementation of <tt>EXT_pixmap_from_texture</tt>, not the one from Xorg's inbuilt/optional AIGLX or from [[Xgl]].
Prerequisites: Prerequisites:
Line 113: Line 113:
</div> </div>
<div class="hp_box"> <div class="hp_box">
 +
== Beryl with X.org AIGLX or native NVIDIA == == Beryl with X.org AIGLX or native NVIDIA ==

Revision as of 15:53, 6 March 2007


Geeko Beryl is an OpenGL accelerated desktop that seeks to provide a free, open source desktop experience to the community that reflects the wishes of the users. Above all, the project seeks to listen to and respond to the requests of the user base. Beryl is a fork of Compiz. Beryl has some additional effects to the standard Compiz window manager, including new animations such as Window Burns, a 3D Plugin (pictured), and more.



Beryl: Transparent Cube
Enlarge
Beryl: Transparent Cube


Contents


Installation on openSUSE 10.2

Beryl with Xgl

In this method we would be setting up Beryl to run on Xgl. This is the recommended way to run Beryl or Compiz on openSUSE as other methods (AIGLX/NVIDIA) still do not provide reliable performance.

Prerequisites:

1.

  • nVidia card: Install the nVidia accelerated drivers. See: NVIDIA
  • ATI card: Install the new ATI driver for Xorg 7.2. Check here
  • Intel card: Make sure that 3D acceleration ("Active 3D Acceleration" box is ticked) in:
K Menu -> Computer -> YaST. Then: Hardware -> Graphics Card and Monitor. 

2. Add the additional Beryl repository, from the openSUSE build service.

zypper sa http://ftp.skynet.be/pub/software.opensuse.org/X11:/XGL/openSUSE_10.2/ xgl
  • To add this repository via Smart, type:
su
smart channel --add http://ftp.skynet.be/pub/software.opensuse.org/X11:/XGL/openSUSE_10.2/X11:XGL.repo

3. Now install the following packages:

  • xgl
  • beryl-core-snapshot
  • beryl-plugins-snapshot
  • emerald-snapshot : window decorator
  • emerald-themes-snapshot
  • aquamarine-snapshot
  • beryl-settings-snapshot
  • beryl-manager-snapshot
  • compiz

If you don't want the latest svn snapshot version, and would rather go for a stable Beryl version, then install all packages packages just like above, but without the -snapshot. This can of course be easily done with rug, zypper, smart or YaST. Compiz is required for the easy Xgl-switch, you can also choose to run beryl or compiz from beryl-manager later on.

4. Enable Xgl:

su
gnome-xgl-switch --enable-xgl

(you do NOT need to be running GNOME: this command applies for GNOME or KDE users)

5. Restart your X server:

su
rcxdm restart

6. Run beryl!

beryl-manager

Beryl with nVidia drivers - no Xgl/AIGLX

Since Xorg 7.x, composite effects can be used without Xgl and simply an nVidia card. This uses nVidia's implementation of EXT_pixmap_from_texture, not the one from Xorg's inbuilt/optional AIGLX or from Xgl.

Prerequisites:

  • nVidia (> geforce 4)

1. Install the nVidia accelerated drivers. See: NVIDIA

2. Add the additional Beryl repository, from the openSUSE build service.

  • To add this to Yast, see:

Additional_YaST_Package_Repositories#Beryl_Packages

  • To add this repository via Smart, type:
smart channel --add http://ftp.skynet.be/pub/software.opensuse.org/X11:/XGL/openSUSE_10.2/X11:XGL.repo

3. Now install the following packages:

  • beryl-core-snapshot
  • beryl-plugins-snapshot
  • emerald-snapshot : window decorator
  • emerald-themes-snapshot
  • aquamarine-snapshot
  • beryl-settings-snapshot
  • beryl-manager-snapshot

4. Enable composite in Xorg:

su
nvidia-xconfig --composite
nvidia-xconfig --allow-glx-with-composite
nvidia-xconfig --render-accel
nvidia-xconfig --add-argb-glx-visuals

5. Restart your X:

su
rcxdm restart

6. Run beryl!

beryl-manager

Beryl with X.org AIGLX or native NVIDIA

Prerequisites:

  • nVidia Card (> geforce 4), or
  • Relevant Intel Card: i830 through i945. i810 works, but DRI requires 16 bit depth. Or
  • Relevant ATI Card: Radeon 7000 through X850 (r100 through r400 generations).

1.

  • nVidia card: Install the nVidia accelerated drivers. See: NVIDIA
  • ATI card: Install the new ATI driver for Xorg 7.2. Check here
  • Intel card: Make sure that 3D acceleration ("Active 3D Acceleration" box is ticked) in:
K Menu -> Computer -> YaST. Then: Hardware -> Graphics Card and Monitor. 

2. If you were running Xgl, make sure that it is now disabled:

su
gnome-xgl-settings --disable-xgl

Note: this command is required for GNOME and KDE users.

3. Backup your Xorg configuration:

su
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.$(date +%y%m%d-%H%M%S)

4. Open up xorg.conf for editing:

For the KDE Desktop Environment:
 kdesu kate /etc/X11/xorg.conf
For the GNOME Desktop Environment:
 gksu gedit /etc/X11/xorg.conf

You'll notice now that the file is demarcated into Sections. You'll need to edit these to add a few lines, which are options:

To Section "ServerLayout", add:

Option "AIGLX" "true"

To Section "DRI", add:

Group 0
Mode 0666

To Section "Device", add:

Option      "XAANoOffscreenPixmaps" "true"
Option      "DRI"     "true"

Now also create a new section that looks just like this:

Section "Extensions"
      Option   "Composite"   "Enable"
EndSection

The relevant parts of your xorg.conf should look something like this now (it may vary a little):

Section "Extensions"
  Option   "Composite"   "Enable"
EndSection

Section "DRI"
   Group      0
   Mode       0666
EndSection

Section "ServerLayout"
 Identifier   "Layout[all]"
 InputDevice  "Keyboard[0]" "CoreKeyboard"
 InputDevice  "Mouse[1]" "CorePointer"
 InputDevice  "Mouse[3]" "SendCoreEvents"
 Option       "Clone" "off"
 Option       "Xinerama" "off"
 Option       "AIGLX"   "true"
 Screen       "Screen[0]"
EndSection

Section "Device"
 BoardName    "915 GM"
 BusID        "0:2:0"
 Driver       "i810"
 Identifier   "Device[0]"
 Option       "NoDDC"
 VendorName   "Intel"
 Option       "XAANoOffscreenPixmaps" "true"
 Option       "DRI"   "true"
EndSection

Now make sure you save the file, and then close the editor.

5. Now restart X:

su
rcxdm restart

6. Run Beryl!

beryl-manager

Configuration

Making Beryl start automatically

For the KDE Desktop Environment:

Simply type (as user, not root):

ln -s /usr/bin/beryl-manager ~/.kde/Autostart/beryl-manager
ln -s /usr/bin/beryl ~/.kde/Autostart/beryl
For the GNOME Desktop Environment:

Go to GNOME's Control Center -> Sessions. Go to the last tab, "Startup Programs". Over there, add the following two to the list:

beryl-manager
beryl

Using other decorations

Compiz (GTK-W-D) and Metacity

Make sure that the latest compiz package is installed, and then simply run:

gtk-window-decorator --replace &

Using KDE instead of emerald

Simply type (as user, not root):

aquamarine --replace &

To go back to using the emerald theme decorator after, type:

emerald --replace &

Troubleshooting

Another composite manager is already running

Most likely KDE is running its own composite manager effects (using kompmgr), and Beryl therefore can't run. To disable KDE's window effects, open up the control center and disable the translucency effects:

K Menu -> Configure Desktop (Personal Settings). Then go to Desktop -> Window Behaviour. 

Go to the last tab, "Translucency", and uncheck the "Use Translucency/shadows" box. Now you can fire up beryl-manager again, and everything should run just fine.

Note: If the above doesn't work, you may need to add the line

Option       "Composite" "0"

to the Extensions area of your /etc/X11/xorg.conf. So far, this option must be present if you are using the fglrx driver (Tested on ATI Radeon 9600)

White cube problem with AIGLX

Start beryl by giving the following command.

 beryl --use-copy

Alternatively select from beryl-manager -> Advanced Beryl Options -> Rendering path -> Copy

or

put the following in ~/.beryl-managerrc


 [beryl-settings]
 render_path=2

Using Beryl on Xgl with compiz and KDE

if Beryl#Making Beryl start automatically does not work well
You getting problem like (while lunching beryl):

beryl: pixmap 0x30001e9 can't be bound to texture
beryl: Couldn't bind redirected window 0x2e00007 to texture
.....

I saw just white desktop maybe gray windows

That happends on my PC - the solution is to use in kde autostart beryl-xgl (it will replace compiz)
(well before this remove files ~/.kde/Autostart/beryl-manager and ~/.kde/Autostart/beryl if exists)
So just type in any term

ln -s /usr/bin/beryl-xgl ~/.kde/Autostart/beryl-xgl
touch ~/.kde/Autostart/beryl-manager

put the following in ~/.kde/Autostart/beryl-manager :

#!/bin/sh
beryl-manager --no-force-window-manager &

to get beryl manager menu... That's all.

Links