Friday, April 13, 2007

Beryl in Feisty with Xgl

This is the guide everyone has been waiting for, enjoy. The trick is that you have to force bery-core to use 0.2.0~0beryl1 because later versions don't work with Xgl. This not only works for the Dell Inspiron 1501 but works for any computer running an ATI card using Xgl.

Check ATI Driver
In a terminal type:
fglrxinfo

You should see this output on your terminal window:
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON XPRESS Series
OpenGL version string: 2.0.6334 (8.34.8)

Install Xgl & Beryl
Add the Beryl repositories to your source list.
In a terminal type:
sudo gedit /etc/apt/sources.list

Add this line to Your Source Lists
deb http://ubuntu.beryl-project.org/ feisty main
save and close file

Grab the Key for the repository, in a terminal type:
sudo wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

Update Your System
In a terminal type:
sudo apt-get update

Now install Xgl & Beryl
In a terminal type:
sudo apt-get install xserver-xgl beryl-ubuntu beryl-manager

Setting Up XGL
In a terminal type:
sudo gedit /usr/local/bin/startxgl.sh

and this to the file:
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session
save and close file

Then make the xgl script executable by entering this into a terminal:
sudo chmod a+x /usr/local/bin/startxgl.sh

Creating a XGL Login
Make the script, by typing this into a terminal:
sudo gedit /usr/share/xsessions/xgl.desktop

add this text to the file:
[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application
save and close file

Change Your Repository Settings
In a terminal type:
sudo gedit /etc/apt/preferences

Then add this ext to the file
Package: *
Pin: release o=lupine
Pin-Priority: 1000
save and close file

Update Your System
In a terminal type:
sudo apt-get update

Roll Back Beryl-Core
Downgrade beryl- core to a version that works with Xgl
In a terminal type:
sudo apt-get install beryl-core=0.2.0~0beryl1

Now you just have to log off and log into your Xgl session and run Beryl.
edited by pHreaksYcle

62 comments:

jigar657 said...

awesome work man..

have been watchin ur blog everyday bout this..and finally u r here with it.

xgl and beryl work like breeze. any link u know which shows how to play around with beryl.

keep comin with other tuts for 1501 feisty dude..i ve ur blog in my bookmarks.

jigar trivedi

Juan said...

Nice work.. I follow all the steps and make beryl works great :D
The only problem that I have is whit the keybord... it seems that the gnome "Keybord preference" doesnt work and I cant get mi keybord to spanish.

Any way, continue working on this blog, is really great i always read it. And maybe next time you can explain a little how to configure beryl, thats will be great. (Sorry the bad english)

Burgui from chile

JC said...

Gah. This is the only thing I can never get working properly. Guess I'll have to live without it.

bfrond said...

I've followed your guide thoroughly but got no success: beryl is there, the script works, but no acceleration, red diamond icon or fancy effect.
I guess my problem is that the video chip is Ati Xpress 200M.
Also I'm running AMD64.
Desktop effects with free drivers also do not work: I'm left with a dumb white screen... It seems it might be a memory issue to be adjusted in the bios, but I haven't tested it so far.
Also Sabayon 3.3 and Mandriva One 2007 (which are coming with 3D effects already installed and working, especially sabayon) do not work on my 1501.

As jc in the previous post, it seems I'll have to live without it...

Brad said...

Awesome. I got this to work great for me! Beryl works good, all you have to do is install emerald-themes and the beryl-manager packages and you're set.

Anyone get direct acceleration working under beryl?

Paolo said...

Sorry, Help me PLEASE...When I try to create a XGL Login I cant save in xgl.desktop because it said "file not found"

redDEAD said...

Paolo follow the guide, its that easy

Owen said...

Great blog, thanks for all your post I'v not got Ubuntu on my Inspiron 1501 with everything working perfect.
One thing about Beryl, I could only get it working in the 32bit ubuntu?.. But I dont care just happy I got it working.

Hernan said...

Following the instructions all seems to work, however, let's say I'm browsing a webpage, I scroll down and text isn't redrawn properly, leaving black (text-color) noise all over the screen. Text on selected windows titlebar seems odd also.

Moved back from this installation, tried installing compiz, and similar errors happened. So I guess it has probably something to do with the video driver.

I made a feisty clean install the day after the final version was released.

Anyone else had this problem?

Pasto said...

Following the guide made beryl to work, but with some video issues, specially about text drawing. Vertically scrolling a web page would make text not to be 'moved' but redrawn again, ending with a huge mess of overriding letters all over which makes it impossible to use. Titlebars also seem odd.

Tried Compiz and had the same problem.

Anyone else having this problem with the 1501, ati restricted driver?

Gaucho said...

Thank You man.... Beryl Work fine!!! in Feisty...
Great Blog... right now I'll fix my Wi-Fi, in Edgy worked but in Feisty not... i'll try again...

Gaucho from Argentina.

Andrei N. said...

Great work for us with 1501 dell inspiron, but there's still some problems. The thing is that some of us have the x200 chipset and that's what's causing the problems, I think. If I understand you correctly, you have something else.
In my case after running beryl-manager, my screen just goes white-blank. The cube still works (rotates) but I don't see anything on the screen. The top of the cube is a red diamond... but that's it. Any ideas? Btw, I got the same thing with the scrolling part, but it was because I missed a few steps, or didn't do them exactly. You should try again.

redDEAD said...

Andrei N.

I have the x1150 which is basically the x200 express chipset.

steffel said...

On behalve all the 1501 users with a ubuntu installation, I think you earned our respect for making such a good howto... Almost everything just worked out for me except the part where my desktop rotates in a cube.. I followed every line of your steps but it does nothing.. Not even crash whatsoever... A couple of blinks and that's it. Beryl just don't come up..Sniff sniff.. Don't know what I did wrong, perhaps I need a new installation... I think al those Beryl guides messed up my feisty installation...

I thank you for your time putting this together and plz don's remove your block or my new installation will be a living hell!

From The Netherlands We greet You!
Keep up the good work!

PS: I'm gonna re-install Feisty for now...

redDEAD said...

steffel let me know how the beryl guide goes after you reinstall. I guarantee it will work.

Steffel said...

My humble exuses... Cause I've installed a Dutch version it's proberly something essential I've missed... Log out & log in with XGL was my problem... I even manage to installed screenlets so I'm very happy now.. Thank a lot for your help...

diskötek said...

hi there, thank you so much for that great easy how to. it works great with my ati x200...

by the way. should i need to edit xorg.conf for adjusting my keyboard lay out?

Sundance said...

Your page is probably the best linux ease of use page I've ever seen. Thanx.
The wierd thing is when I had edgy the guide worked and now that I have fiesty I just get the white cube of death. Did a fresh install and I still only can get the white cube.
Thanks for the great page thou.

redDEAD said...

Sundance, did you follow the guide word or word? What Driver are you using? You should be using ATI Propriety Driver 8.34.8. Is it configured properly? Let me know how your doing.

safoo said...

I got this installed and working from your tut today... the only problem is when i shutdown the lappy and went home it did not work again.. I booted up in glx and it just froze the terminal, i can move around in it but can not get it to work again. The important thing is, it does work on the 200m, but how do i get it working again? any help would be greatly appreciated.

thanks for a great post on this, at least i know its possible, i about gave up before i found your blog and reinstalled... =)

safoo

AEbh said...

Thanks man....

My Feisty is workin' with Beryl, in a P4, asus P4C800-e, 1 Gb RAM, >>>Ati Sapphire x1650 Pro 512 Mb<<< in Xgl mode.

I salute you!!!!!!!

Tom said...

Thanks! i have followed about 5 different tutorials, and this is the only one that has worked! (although that is probably my fault!)

noe said...

Thank you so much for the very easy to use guide. I also have an inspiron 1501 and I was wondering if anyone else has a problem logging off. My screen goes black and my machine doesn't seem to respond to any input when I log off.

Maybe I'm just not waiting long enough - anyone else running into this?

Thanks

redDEAD said...

noe

talked about that fix already

http://ubuntu1501.blogspot.com/2007/04/fix-logout-problem.html

Michael said...

Didn't find clearer information on how to downgrade beryl core anywhere else. Good job!

stancho said...

Hello,

I install beryl from your tutorial (step by step) and my ATI driver is 8.34.8.
But after running beryl-manager, my screen just goes white-blank. The cube still works (rotates) but I don't see anything on the screen. The top of the cube is a red diamond... but that's it.

Please help.

Sreenivas said...

when i enter the first step
i got this message what to do now?

sreeni@sreeni-desktop:~$ sudo apt-get install gnome-compiz-manager
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gnome-compiz-manager
sreeni@sreeni-desktop:~$

redDEAD said...

Where do you see gnome-compiz-manager? I don't.

Will said...

Hey, I have followed but i get the following out of the terminal:

Failed to fetch http://ubuntu.beryl-project.org/dists/feisty/main/binary-i386/Packages.gz 404 Not Found [IP: 80.77.247.17 80]

and...

E: Version '0.2.0~0beryl1' for 'beryl-core' was not found

Please Help!!

redDEAD said...

Will,

Thats an issue with the Beryl repo. I have no control over it. Make sure you copy everything thing correctly and add the key.

Phasmatis said...

I have a bit of a problem: Beryl works. I can rotate the cube, and the top of the cube (the red beryl) can be seen. However, all other sides of the cube are perfectly white. My windows just sort of disappear.

I would think that it's a driver issue, but fglrxinfo spits out exactly what you said it would.

Phasmatis de Apparatus said...

I should probably add that this white-screen problem happened when I tried using Desktop Effects in normal Gnome. Even before I installed Xgl/Beryl.

Thanks for any help!

ghun said...

Thanks for the guides! Been following them to get wifi and things working - would never have done it without your blog. Thanks!

Keep getting the white screen, which rotates, when loading beryl(reinstalled feisty twice now)

Im using the 8.37.6 driver, i realize its different to the one in your tutorial, im guessing this is why?

Thanks again

EcoRI said...

Thanks a lot! Getting Beryl to work was the hardest part of installing Ubuntu for me (Mobility x700 video). The trick appeared to be rolling back beryl packages.
I, too got the white cube first but
$ beryl-manager --no-force-window-manager
$ beryl-xgl --use-copy
sorted things out for me.

Jason said...

Cheers for the how-to! Great site you've got here (wish I'd found it earlier...).

Does this work in the 64-bit version of Feisty? I tried it and beryl installs, but I cannot switch over to using it as the Window Manager. The screen flashes a couple of times, but then it defaults back to metacity. In terminal I can get this:
**************************************************************
* Beryl system compatiblity check *
**************************************************************

Detected xserver : AIGLX

Checking Display :0.0 ...

Checking for XComposite extension : failed

No composite extension
beryl: No composite extension

Did I mess up a step somewhere? Any help would be greatly appreciated.

redDEAD said...

Jason
64 bit version sucks, use the 32 bit one. Second you trying to use AIGLX, ATI cards require Xgl.

Mario said...

Got it to work on my inspiron 1501. Thanks a lot !

- I tried this on 64bit as well: no luck...

One minor problem remains: when I log out of my Xgl session, no other user can log back into Xgl until the machine is rebooted (it even crashes on "switch user"). Any ideas?

redDEAD said...

Mario look here http://ubuntu1501.blogspot.com/2007/04/fix-logout-problem.html

answer wasn't hard to find you just had to look

Jared said...

hey, thanks for the awesome blog, just a quick question. Is there any reason why you don't use emerald anymore?

Adán said...

Beryl ready in mi 1501, thanks very useful blog.

Kari said...

Thank you very much! This works for the Lenovo z61p laptop with ATI FireGL v5200 as well!
At first my screen reminded me of a snapshot of a C64 loader back in the old days. Suddenly out of nowhere I saw the restart arrows appear clearly in the top panel. Click - reboot - Running smoothly!

Dustin said...

Thanks for getting this running on the 1501, it works great. I have a question. Is it possible to get the grouper plugin installed into beryl? with your guide, the grouper plugin is not present. can it be added in?

redDEAD said...

dont know about the grouper plugin, ask in the beryl forums they'll have an idea.

kun-terk said...

Dude!!!!
i can't get the public key.. i'v put this :- sudo wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add - in terminal n then come uot this :-
--13:07:19-- http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg
=> `-'
Resolving ubuntu.beryl-project.org... 80.77.247.17, 82.140.42.54, 88.191.250.18, ...
Connecting to ubuntu.beryl-project.org|80.77.247.17|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:07:22 ERROR 404: Not Found.

gpg: no valid OpenPGP data found.

>>>>>whats that mean huh????
[the worst english, sorry]

kun-terk said...

bro....
issue to my problem that i posted b4 this,
I've ignored it and the result, walla!!!
thanks alot!!

redDEAD said...

kun-terk

I have no control over the beryl repos, try again later

Alvaro said...

Good job!,

Work for me!.

Alvaro

Manuel said...

Hi redDEAD, i do everithing like in the guide but the cube still white, but when i run beryl in console in can see "Detected xserver : AIGLX" but i'm using XGL, there are a specific way to change de xserver to XGL?
Thanks for advance.

redDEAD said...

you have to log onto your xgl session when you first boot into ubuntu. you know where you type your username and password. before hitting enter click the sessions button and choose xgl.

asidz13 said...

thank q very2 muchh..... i really love linux now....
your instuction works fine on my x1650xt...

i.ve try over 2 weeks already.....

thanks agains

asidz13 said...

thank q very2 muchh..... i really love linux now....
your instuction works fine on my x1650xt...

i.ve try over 2 weeks already.....

thanks agains

Pete S said...

Red, I have Beryl works great with no problem. Is it possible to install compiz-fusion in the 1501? I believe compiz-fusion uses compiz-core, not beryl-core. So what version of compiz-core works with XGL and how would I roll it back?

redDEAD said...

pete s,

Yes, compiz-fusion works on the dell 1501. people have sent me email wondering why i havent posted about it yet. I'm going to hop on the compiz-fusion bandwagon when it comes out of alpha. Until then try the compiz-fusion forums.

Lory said...

This tutorial is just what I was looking for. After a week of searching and trying things your instructions worked like a charm on my Radeon Xpress 200.

Thanks for sharing with us!

mitul4u said...

Dude!
Nice work!
But I have one problem. When I gave this command, it shows that it is not in my system and I have to get it from net. And I get it and installed. After that when I issued this command it shows this output:
Xlib: extension "XFree86-DRI" missing on display ":0.0".
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (1.5 Mesa 6.5.2)

Now what I have to do?
Waiting for your reply.

redDEAD said...

mitul4

you don't have the ati driver installed properly. Either use the restricted driver manager or compile it yourself.

unclesamslair said...

hey, I got all the steps down working fine and everything when I type

sudo apt-get install xserver-xgl beryl-ubuntu beryl-manager

though I get this

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
beryl beryl-plugins beryl-plugins-data beryl-settings
beryl-settings-bindings heliodor libberyldecoration0 libberylsettings0-gconf
libglitz-glx1 libglitz1
The following NEW packages will be installed:
beryl beryl-manager beryl-plugins beryl-plugins-data beryl-settings
beryl-settings-bindings beryl-ubuntu heliodor libberyldecoration0
libberylsettings0-gconf libglitz-glx1 libglitz1 xserver-xgl
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 5180kB of archives.
After unpacking 13.4MB of additional disk space will be used.
Do you want to continue [Y/n]?

I type 'Y'

Do you want to continue [Y/n]? y
Abort.
ubuntu@ubuntu:~$

and then I do the rest of the steps.

when i try to log in and change the session to xgl it just gives me a blank screen then throws me back to the logon screen

help please

redDEAD said...

unclesamslair

press y(es)
You getting a black screen because you haven't installed xgl yet

trmbonedude said...

this is a great tutorial! thank you so much!

i dont know if it was covered in the comments anywhere, but just a note to KDE (Kubuntu) users, this works with you too! just switch all the "gedit" to "kate", and switch "gnome-session" to "startkde"!

Thanks again!
Steve from Kalamazoo, MI

redDEAD said...

No THANK YOU Steve from Kalamazoo, MI

KDE users this works, I knew this the whole time but was too lazy to note it.

Don said...

Would this work for gusty?

I downloaded the 64bit version of feisty, and now that i know i should have the 32, they stopped offering it on their site.

redDEAD said...

don,

feisty's complete downloads:
http://releases.ubuntu.com/7.04/

This guide could work for Gutsy but Beryl's been merged back into Compiz. Gutsy uses the new combined Compiz-Fusion.