You are not logged in.

#1 2009-05-05 20:50:49

Wintershade
Member
From: Croatia
Registered: 2008-02-18
Posts: 175
Website

[SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

Hi, it's me and my ATi troubles again. I swear I'll buy a new laptop with nVidia ASAP, this is getting really annoying.
Anyway, at first I've thought it was a problem with my KDEmod configuration or something similar, as I have stated here. I've just switched to GNOME, and alas, Compiz doesn't work here either.

If I start Fusion-Icon and select Compiz as a window manager, I fail to get any window management or decoration at all. The windows I've had up to that moment stay in place but cannot be moved or switched, and there's no window decoration whatsoever.
OTOH, If I try something like

compiz --replace && emerald --replace &

from the gnome-terminal, I get the dreaded

Fatal: GLX_EXT_texture_from_pixmap is missing

error.

What gives? Any ideas would be appreciated very much. Oh, and if I need to post some more info, a log from somewhere or some config file, please do tell me.
(for the record, I'm still using Mobility Radeon 9700, the latest Mesa from the extra, together with the xf86-video-ati package)

Last edited by Wintershade (2009-05-12 08:24:35)


Only the best is good enough.

Offline

#2 2009-05-06 11:15:42

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: [SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

Enable ALL the plugins in Compiz Config Settings Manager and then try again.

Offline

#3 2009-05-07 09:51:35

Wintershade
Member
From: Croatia
Registered: 2008-02-18
Posts: 175
Website

Re: [SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

Ok, I did that and it worked. Thank you!

But now I've got another problem: once I switch back to Metacity, my X crashes to the login screen. What gives?


Only the best is good enough.

Offline

#4 2009-05-07 11:27:34

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: [SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

Hmm, I don't know. No prob here with that as I just tried.

Offline

#5 2009-05-07 16:57:40

Wintershade
Member
From: Croatia
Registered: 2008-02-18
Posts: 175
Website

Re: [SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

Are you using the ATi open-source driver as well?
Care to take a look at my xorg.conf file, and see if there's something wrong with it? I've put it in the pastebin.


Only the best is good enough.

Offline

#6 2009-05-07 18:14:59

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: [SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

Oh my, that's a ... large xorg.conf. This is mine, but, if you card won't run Compiz properly with EXA, try XAA:

I use xf86-video-ati-git

Section "Device"
    Identifier  "My Graphics Card"
    Driver      "radeon"
        Option      "DRI" "on" 
        Option      "ForceLowPowerMode" "on"
        #Option       "DynamicPM" "on"
        Option      "AccelMethod" "EXA"
        Option      "EXAVSync" "on" 
        Option      "DMAForXv" "on" 
        Option      "ScalerWidth" "2048" 
        Option      "EnablePageFlip" "on" 
        Option      "RenderAccel" "on" 
        Option      "AccelDFS" "on"
    BusID       "PCI:1:0:0"
EndSection

Section "ServerFlags"
    Option         "DontZap"             "False"
EndSection

Last edited by flamelab (2009-05-07 18:15:20)

Offline

#7 2009-05-08 10:25:54

BertiBoeller
Member
Registered: 2009-01-19
Posts: 58

Re: [SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

Ok, I've played around with compiz too, and here's what I've learned so far.
The error is by design, because AIGLX doesn't support direct rendering. Try to start compiz with the following command instead:

export LIBGL_ALWAYS_INDIRECT=1
compiz --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering &

Make sure you have the Window decorator plugin enabled (run ccsm). You can select the window decorator enginge from there:

emerald --replace

or

kde4-window-decorator

I don't know the command for the gtk window decorator.

I've made a bash script to use compiz with KDE 4. Place this file in "/usr/bin" and call it "compiz-kde-launcher". You have to make this file executable

#!/bin/bash                                      
function find_process() {                        
  ps ax | grep -v grep | grep "$1 " >/dev/null
  return $?
}

function run_compiz(){
  find_process compiz
  return_val=$?
  if [ "$return_val" -eq "0" ]; then
                  logger Compiz already running
  fi
  [[ "$return_val" -eq "0" ]] || compiz --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering&
}

function run_emerald(){
  find_process compiz
  return_val=$?
  [[ "$return_val" -eq "0" ]] || emerald --replace&
}

function run_kde_decorator(){
  find_process compiz
  return_val=$?
  [[ "$return_val" -eq "0" ]] || kde4-window-decorator --replace&
}

LIBGL_ALWAYS_INDIRECT=1
run_compiz
wait
# run_emerald

edit you "~/.bashrc" and add the following line:

export KDEWM=/usr/bin/compiz-kde-launcher

In your KDE Systemsettings go to Default Applications -> Window Manager and select "Compiz custom" as default window manager.

Hope this helps

edit 1: fixed the compiz-kde-launcher-script

Last edited by BertiBoeller (2009-05-08 17:48:01)

Offline

#8 2009-05-08 10:47:39

Wintershade
Member
From: Croatia
Registered: 2008-02-18
Posts: 175
Website

Re: [SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

Thanks! That bash script was very helpful; now I can run Compiz directly with KDE, without the need of a fusion-icon or something similar.

However, this does not solve the GNOME problem; X still crashes after switching back to Metacity from Compiz.
I'm sticking with KDE at the moment, though; been more fond of it since the beginning of my Linux experiences, but I'd like to solve this as well.


Only the best is good enough.

Offline

#9 2009-05-08 11:16:58

BertiBoeller
Member
Registered: 2009-01-19
Posts: 58

Re: [SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

Did you try to run fusion-icon? When you execute it from a shell you can see the parameters it passes to compiz.
Hm, different system different troubles. I had less troubles to get Compiz running in Gnome than I had to get it running in KDE. ;-)

When you use the kde4-window-decorator the windows look like they would look using kwin, but I would recommend using emerald because of the following reason: http://wiki.opencompositing.org/General … sktop_Size (difference between viewports and desktop)
http://forum.compiz-fusion.org/showthread.php?t=5325

Offline

#10 2009-05-08 12:28:41

Wintershade
Member
From: Croatia
Registered: 2008-02-18
Posts: 175
Website

Re: [SOLVED (mostly)]Compiz Fusion, Mesa 7.4 and ATi - trouble again

I understand. Yes, I've tried the fusion-icon; in KDE it works fine, while in GNOME every single method I've tried produces a crash.
Yes, I believe Emerald should be used rather than the kde4 window decorator; gtk window decorator seems to be OK, as far as I see it.

edit: SOLVED
I've switched the AccelMethod option in xorg.conf to XAA rather than EXA, and now I can switch from Compiz to Metacity and vice-versa without crashing. Seems like EXA is broken with my graphics card... again. XAA is slow as hell here, however, especially while scrolling and typing stuff in Firefox.

flamelab wrote:

I use xf86-video-ati-git

Is there any catch I should know about, concerning this? I remember compiling it from AUR once long ago, and my DRI failed to work after that.
Thanks in advance...

Last edited by Wintershade (2009-05-12 08:29:16)


Only the best is good enough.

Offline

Board footer

Powered by FluxBB