No OpenGL acceleration = no Compiz Fusion!

Compiz, KDE, Gnome, Fluxbox, etc...

Moderator: Moderators

No OpenGL acceleration = no Compiz Fusion!

Postby GrantTLC » Tue Jul 31, 2007 13:07

Hello.

Sorry if I'm posting this in the wrong place, but I'm very new here and very new to Linux generally - I've been using Sabayon 3.3 for a month or so (VERY impressive - I've even popped a badge to your site on my website by way of support!), and took the plunge yesterday to install 3.4a, but a couple of problems have arisen.

I'm keen to get compiz fusion up-and-running because using Beryl on 3.3 was fantastic, despite the noticeably weak window/menu performance. But I have another issue as well and I'm not sure if fixing one will fix the other, if you see what I mean: I don't know how to start sorting this out, or which problem I should tackle first. Let me explain:

1) OpenGL not working.

The drivers appear to be loaded - I'm getting excellent performance from the 2D side of my Radeon x1600pro on Kwin (GUI operations are much faster than I could achieve using Beryl on 3.3) - but there is no 3D acceleration available. Any screensavers I have tried are running at 1 frame per 3 seconds.

2) Compiz Fusion

Beryl worked fine in GLX in 3.3, but despite the 3.4a LiveCD managing to set up OpenGL the HD install has failed to do the same. (NB: Fusion DIDN'T work from the LiveCD, but at least I had OpenGL). On the install, The Acceleration Manager tells me no OpenGL support is availble, so doesn't even give me the choice of using it.

My theory is that if I can get OpenGL working first, then that should make it easier to gt compiz working. However, I see there are heaps of threads about sorting Compiz (mostly ATI issues) but despite a lengthy search can't find anything about fixing OpenGL. Will re-emerging the [official] ATI driver itself be enough? Are there any other pieces of software I should be looking at? Should I try a complete reinstall from the LiveCD?

Any help or pointers you can offer would be greatly appreciated!

Thanks.
User avatar
GrantTLC
Baby Hen
 
Posts: 13
Joined: Tue Jul 31, 2007 12:39
Location: Scotland, UK

Postby edgevision » Tue Jul 31, 2007 13:24

If you aren't experiencing any slowness under Kwin then you at least have DRI working, which means you probably have OpenGL working as well (unless it's running as Mesa indirect rendering.) Can you please post the output of the following (in a terminal as root):

Code: Select all
glxinfo | grep direct


If it says yes, try:

Code: Select all
glxgears


and see what kind of FPS you get.
User avatar
edgevision
Growing Hen
 
Posts: 180
Joined: Tue Jun 26, 2007 18:40
Location: New Brunswick, Canada

Postby GrantTLC » Tue Jul 31, 2007 17:36

okaaaay. I swear this wasn't working when I tried it this morning:

direct rendering: Yes

And this is the output I got from glxgears:

5810 frames in 5.0 seconds = 1161.836 FPS
6033 frames in 5.0 seconds = 1206.544 FPS
6007 frames in 5.0 seconds = 1201.159 FPS
5992 frames in 5.0 seconds = 1198.303 FPS
5976 frames in 5.0 seconds = 1195.098 FPS
5595 frames in 5.0 seconds = 1118.810 FPS
5640 frames in 5.0 seconds = 1127.875 FPS

Call that a HELL yes. Screensavers are now working, too. :oops:

Maybe I've accidentally sorted something when I was looking at xorg.conf last night. I'll do some more experiments and see how far I get - if everything's okay I'll move on to sorting Compiz! Thanks for looking, though, I'll be sure to remember those commands for the future!
User avatar
GrantTLC
Baby Hen
 
Posts: 13
Joined: Tue Jul 31, 2007 12:39
Location: Scotland, UK

Postby edgevision » Tue Jul 31, 2007 17:42

No worries! Glad your DRI & OpenGL are working OK. What kind of graphics card are you running? We should be able to get you up-and-running in Compiz Fusion with just a few small steps.
User avatar
edgevision
Growing Hen
 
Posts: 180
Joined: Tue Jun 26, 2007 18:40
Location: New Brunswick, Canada

Postby GrantTLC » Tue Jul 31, 2007 17:49

The plot thickens.

I logged out of KDE and went back to the acceleration manager to see if that had changed, if the GLX option had appeared but it still said no, OpenGL wasn't working. When I went back into KDE and tried your commands again, I got the following:

Xlib: extension "XFree86-DRI" missing on display ":0.0".
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect

And:

Xlib: extension "XFree86-DRI" missing on display ":0.0".
X connection to :0.0 broken (explicit kill or server shutdown)

I'm confused (but not so embarrased as I was before!)
User avatar
GrantTLC
Baby Hen
 
Posts: 13
Joined: Tue Jul 31, 2007 12:39
Location: Scotland, UK

Postby edgevision » Tue Jul 31, 2007 17:55

Go into the accel manager, select No Desktop Acceleration, click the button, and then go back into KDE. What happens then?

And please post some system specs, I have no idea what you're working with. Is it a laptop?
User avatar
edgevision
Growing Hen
 
Posts: 180
Joined: Tue Jun 26, 2007 18:40
Location: New Brunswick, Canada

Postby GrantTLC » Tue Jul 31, 2007 18:09

Sorry, thoughtless of me:-
    Desktop - Athlon XP3000+, ATI Radeon x1600pro, 1Gb ram, ASUS NV8X2-deluxe motherboard (onboard sound - nForce 2) screen res: 1280x1024 (75hz).

And, um, I rebooted in the meantime. OpenGL working again. This time, going into the Accel Manager didn't affect it at all. OpenGL is still working, despite being told it wasn't.

Will wait for your response this time before doing anything else. :)
User avatar
GrantTLC
Baby Hen
 
Posts: 13
Joined: Tue Jul 31, 2007 12:39
Location: Scotland, UK

Postby edgevision » Tue Jul 31, 2007 18:23

Ok, now to get Compiz Fusion going (provided you wish to do so) hit Alt+F2, type:

Code: Select all
accel-manager-bin


and hit Enter. If OpenGL reports that it's working, select XGL, click Configure Desktop Acceleration, and that window will close. Then open /etc/X11/xorg.conf as root, and remove the # in the following line (near the bottom):

Code: Select all
#Composite    "Enable"


Save, then Ctrl+Alt+Backspace to restart X. If it displays the login window ok, you're good. Log in. Everything will be ridiculously slow. Until you run Compiz Fusion with:

Code: Select all
LD_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/libs compiz --replace ccp --sm-disable


If you have no window decorations, run emerald.

If this doesn't work for some reason, you can get back to Kwin using:

Code: Select all
kwin --replace


Note that when you're running XGL, DRI will report itself as NOT running. This is normal.

Let me know if this helps.
User avatar
edgevision
Growing Hen
 
Posts: 180
Joined: Tue Jun 26, 2007 18:40
Location: New Brunswick, Canada

Postby GrantTLC » Tue Jul 31, 2007 18:53

You weren't kidding about everything being horribly slow! Everything was going well until I got to:

Code: Select all
LD_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/libs compiz --replace ccp --sm-disable

When I received the following:
compiz (core) - Fatal: GLX_EXT_texture_from_pixmap is missing
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

Though the Fusion icon did pop into the tray. I can't say the same for Emerald: window decorations didn't appear.
User avatar
GrantTLC
Baby Hen
 
Posts: 13
Joined: Tue Jul 31, 2007 12:39
Location: Scotland, UK

Postby edgevision » Tue Jul 31, 2007 19:28

Alright. Switch back to DRI (No Acceleration) to get your windows drawing again until we figure this out. Could you pastebin the contents of your /var/log/Xorg.0.log file?
User avatar
edgevision
Growing Hen
 
Posts: 180
Joined: Tue Jun 26, 2007 18:40
Location: New Brunswick, Canada

Next

Return to 3D Desktops and Window Managers

Who is online

Users browsing this forum: No registered users and 1 guest

cron