You are not logged in.

#1 2007-05-05 10:10:19

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Compiz not working on my Gnome install

I've read the wiki and downloaded and installed

compiz-core-0.5.0-3
compiz-decorator-gtk-0.5.0-3

I then updated the System > Preferences > Sessions as per the wiki and restarted X.
Everything was then completely unstable.
So I took out the adjustments to System > Preferences > Sessions, restarted X and then opened a terminal and ran the commands manually:

[n00b@thinkpad .gconf]$ gtk-window-decorator --replace
gtk-window-decorator: Could not acquire decoration manager selection on screen 0 display ":0.0"

[n00b@thinkpad .gconf]$ compiz --use-cow --strict-binding --replace gconf
compiz: Unknown option '--use-cow'
compiz: Unknown option '--strict-binding'
libGL warning: 3D driver claims to not support visual 0x4b
compiz: GLX_EXT_texture_from_pixmap is not supported by direct rendering context, trying indirect rendering context instead
compiz: decoration: property ignored because version is 20061011 and decoration plugin version is 20070319
compiz: decoration: property ignored because version is 20061011 and decoration plugin version is 20070319
compiz: decoration: property ignored because version is 20061011 and decoration plugin version is 20070319

Please, can anyone suggest what I'm doing wrong?

Beryl works without a problem, but I wanted to use Compiz instead.

I'm using AIGLX with the 'radeon' open source driver and here are the relevant sections of my /etc/X11/xorg.conf file:

Section "ServerLayout"
    Identifier         "X.org Configured"
    Screen          0  "Screen0" 0 0
    InputDevice        "Mouse0" "CorePointer"
    InputDevice        "Keyboard0" "CoreKeyboard"
    Option        "AIGLX"    "true"
EndSection

Section "Module"
    Load  "xtrap"
    Load  "dbe"
    Load  "record"
    Load  "extmod"
    Load  "glx"    # needed for DRI
    Load  "dri"    # needed for DRI
    Load  "drm"    # needed for DRI
    Load  "type1"
    Load  "freetype"
EndSection

Section "Device"
        Option     "AGPMode"                "4"    # <i>
        Option     "EnablePageFlip"         "true"    # [<bool>]
        Option     "ColorTiling"            "true"    # [<bool>]
    Option       "XAANoOffscreenPixmaps"    "true"    # needed for AIGLX
    Option       "DRI"            "true"  # needed for AIGLX
    Identifier  "Card0"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "Radeon Mobility M7 LW [Radeon Mobility 7500]"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor     "Monitor0"
    DefaultDepth    24
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Section "DRI"        # needed for DRI
    Mode    0666    # needed for DRI
EndSection        # needed for DRI

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

Last edited by Shagbag (2007-05-05 10:50:56)

Offline

#2 2007-05-05 17:38:47

karmapolice
Member
Registered: 2007-01-31
Posts: 113

Re: Compiz not working on my Gnome install

You have to change the DRI section to 0660 or start compiz as:
LIBGL_ALWAYS_INDIRECT=1 compiz --replace gconf &

And it seems that your compiz version and the decorator doesn't match, it was built for another version. You may try rebuilding it using the PKGBUILD.

Last edited by karmapolice (2007-05-05 17:39:57)

Offline

#3 2007-05-05 18:44:51

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: Compiz not working on my Gnome install

karmapolice wrote:

You have to change the DRI section to 0660 or start compiz as:
LIBGL_ALWAYS_INDIRECT=1 compiz --replace gconf &

Thanks.  I'll try that.

And it seems that your compiz version and the decorator doesn't match, it was built for another version.

I did see that, but as I got them from Community, I figured they would work anyway.  It seems Community is broken, then.

You may try rebuilding it using the PKGBUILD.

Will do.

Last edited by Shagbag (2007-05-06 06:28:48)

Offline

#4 2007-05-06 06:32:27

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: Compiz not working on my Gnome install

I tried building compiz-core-0.5.0-3 from the PKGBUILD but I get an error on the line:

source=(http://xorg.freedesktop.org/archive/individual/app/compiz-$pkgver.tar.gz \
        tfp-server-extension.patch )

It tells me

==> ERROR: tfp-server-extension.patch was not found in the build directory and is not a proper URL.
==> Aborting...

I had a look at http://xorg.freedesktop.org/archive/individual/app and, sure enough, there's no tfp-server-extension.patch listed (nor is there any ftp-server-extension.patch listed, btw).

It seems to me that the PKGBUILD needs to be updated.

Offline

#5 2007-05-06 07:00:13

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: Compiz not working on my Gnome install

OK.  I got the tfp-server-extension.patch from the AUR page.  I didn't see it there originally **red face**

Now I'm getting the error:

checking for COMPIZ... configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables COMPIZ_CFLAGS
and COMPIZ_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
See `config.log' for more details.
==> ERROR: Build Failed.  Aborting...

Offline

#6 2007-05-06 07:48:49

karmapolice
Member
Registered: 2007-01-31
Posts: 113

Re: Compiz not working on my Gnome install

First remove every Compiz package completely and make sure you have all the dependencies installed.

Offline

#7 2007-05-06 09:46:10

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: Compiz not working on my Gnome install

Thx. 

I did remove all compiz packages (pacman -R compiz-core compiz-decorator-gtk) before I started to build the PKGBUILD.

Pkgconfig was not listed as a dependency but after I installed it from the repos, I managed to build both PKGBUILDs and install the .pkg.tar.gz files neutral

However, I'm still getting the same errors as per my original post, ie.:

compiz: Unknown option '--use-cow'
libGL warning: 3D driver claims to not support visual 0x4b
compiz: GLX_EXT_texture_from_pixmap is not supported by direct rendering context, trying indirect rendering context instead
compiz: decoration: property ignored because version is 20061011 and decoration plugin version is 20070319

and

gtk-window-decorator: Could not acquire decoration manager selection on screen 0 display ":0.0"

What I find strange is that I seem to be getting a different result almost everytime.  At one attempt I had the compiz window borders clearly around each of my windows but I couldn't see any evidence of the effects, eg. no wobbly windows, Ctrl+Alt+ArrowKeys would do nothing, etc.  The window borders were there but no effects.  I restarted X (Ctrl+Alt+BackSpace) and then no window borders at all.  Disabling the code (as per the Arch Wiki entry for Compiz) in System > Preferences > Sessions and then trying each of the two commands separately give me the abovecaptioned errors.  Compiz wierdness.

I guess I'll try everything again and see if I can get a consistent result. roll

Offline

#8 2007-05-06 10:42:25

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: Compiz not working on my Gnome install

I tried your suggestion of

LIBGL_ALWAYS_INDIRECT=1 compiz --replace gconf &

and it's gotten rid of the Unknown option error for '--use-cow' but I'm still getting the different versions error.  I suspect this is the key problem, but I don't know how to build compatible versions.

When I build the PKGBUILDs from AUR, I simply:

i)   removed all existing compiz binaries
ii)  installed any missing dependencies
iii) downloaded the CVS files (PKGBUILD and *.install)
iv) ran 'makepkg PKGBUILD'
v)  ran 'pacman -U *.pkg.tar.gz'

And that was it.  Should I do something differently to get compatible compiz-core and gtk-window-decorator?

P.S. thanks for your guidance so far.

Last edited by Shagbag (2007-05-06 11:36:11)

Offline

Board footer

Powered by FluxBB