Beryl with Xgl

320pxberyl3dplugintrans2fz openSUSE 10.2: Installing Beryl

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://software.opensuse.org/download/X11:/XGL/openSUSE_10.2/X11:XGL.repo

3. Now install the following packages:

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

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 AIGLX; not Xorg’s inbuilt/optional AIGLX, nor with 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://software.opensuse.org/download/X11:/XGL/openSUSE_10.2/X11:XGL.repo

3. Now install the following packages:

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

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

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:

  • If you’re using KDE:
kdesu kate /etc/X11/xorg.conf
  • If you’re using GNOME:
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

  • If Using KDE:

Simply type (as user, not root):

ln -s /usr/bin/beryl-manager ~/.kde/Autostart/beryl-manager
ln -s /usr/bin/beryl ~/.kde/Autostart/beryl
  • If using GNOME:

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.

>> Original and updted can always be found @opensuse.org

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Print This Post Print This Post

If you like this article then subscribe to Linux and Open Source Blog and get the latest articles delivered to your Feedreader. If you want to recieve latest articles in your email click here.

Similar & Related Posts: