Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

How do you enable the new extensions in Metacity 2.16?

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
19 posts • Page 1 of 1
Author
Message
Craig_Williamson
n00b
n00b
User avatar
Posts: 65
Joined: Tue Mar 04, 2003 11:57 pm
Location: New Zealand

How do you enable the new extensions in Metacity 2.16?

  • Quote

Post by Craig_Williamson » Wed Sep 13, 2006 6:40 pm

Hi all,

I'm wanting to try out metacity 2.16's new eye candy extensions in GNOME 2.16 but I'm not sure how to enable them. Is there a use flag available or do we have to manually compile the source code ourselves. If anyone could let me know that would be greatly appreciated. Thanks.


Craig
Top
aj2r
l33t
l33t
User avatar
Posts: 705
Joined: Sun Sep 11, 2005 2:00 pm
Location: Granada/Andalucí­a/España

  • Quote

Post by aj2r » Wed Sep 13, 2006 7:44 pm

You only need to edit metacity ebuild and change --disable-compositor to --enable-compositor, digest and emerge it and then with gconf-editor check /apps/metacity/general/compositing_manager, but surely you obtain a blue screen wih shadows.
Top
simkin
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Wed Jun 25, 2003 10:28 am

  • Quote

Post by simkin » Wed Sep 13, 2006 7:50 pm

--enable-compositor requires libcm at configure time but it's not present in the system. Do you know what's that?
Top
Dizzutch
Guru
Guru
User avatar
Posts: 463
Joined: Tue Nov 09, 2004 8:29 pm
Location: Worcester, MA
Contact:
Contact Dizzutch
Website

  • Quote

Post by Dizzutch » Wed Sep 13, 2006 8:02 pm

libcm doesn't exist yet in portage. so unless you install it manually you're best leaving the composite disabled until it is added.
Help the confused! Adopt an unanswered post!
prepend [solved] to your post title when you feel your issue is resolved.
Worcester Judo
Top
simkin
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Wed Jun 25, 2003 10:28 am

  • Quote

Post by simkin » Wed Sep 13, 2006 8:16 pm

I've googled for it but didn't even find the libcm sources. Is it related with gnome, xorg?
Top
nrl
Guru
Guru
User avatar
Posts: 446
Joined: Thu Mar 27, 2003 10:16 am
Location: Glasgow, UK
Contact:
Contact nrl
Website

  • Quote

Post by nrl » Wed Sep 13, 2006 10:25 pm

simkin wrote:I've googled for it but didn't even find the libcm sources. Is it related with gnome, xorg?
You can get libcm from GNOME CVS.
"Madness is something rare in individuals - but in groups, parties, peoples, ages it is the rule." -- Nietzsche
Top
Dizzutch
Guru
Guru
User avatar
Posts: 463
Joined: Tue Nov 09, 2004 8:29 pm
Location: Worcester, MA
Contact:
Contact Dizzutch
Website

  • Quote

Post by Dizzutch » Thu Sep 14, 2006 1:12 pm

nrl wrote:
simkin wrote:I've googled for it but didn't even find the libcm sources. Is it related with gnome, xorg?
You can get libcm from GNOME CVS.
There is also a version in the Xgl overlay: http://www.gentoo-wiki.org/Xgl#Checking ... ge_Overlay
Help the confused! Adopt an unanswered post!
prepend [solved] to your post title when you feel your issue is resolved.
Worcester Judo
Top
veilig
Apprentice
Apprentice
Posts: 153
Joined: Wed May 11, 2005 4:23 am

  • Quote

Post by veilig » Fri Sep 15, 2006 2:55 am

after I change the ebuild for metacity to --enable-compositor when I emerge metacity it complains that my file is the wrong size....what do I have to to to make this work?
Top
rituko_a
n00b
n00b
User avatar
Posts: 16
Joined: Sun Dec 04, 2005 12:25 am
Location: Moscow, Russia

  • Quote

Post by rituko_a » Fri Sep 15, 2006 4:53 am

veilig wrote:after I change the ebuild for metacity to --enable-compositor when I emerge metacity it complains that my file is the wrong size....what do I have to to to make this work?

Code: Select all

ebuild metacity-blahblah.ebuild digest
It will surely help you
Top
simkin
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Wed Jun 25, 2003 10:28 am

  • Quote

Post by simkin » Fri Sep 15, 2006 5:23 pm

Thanks, nrl and Dizzutch, for the source.
I couldn't compile libcm from CVS (errors), but the ebuilds in Hanno's Xgl overlay worked fine (Mesa-6.5.1*, libcm-0.22*). With those installed I could finally emerge metacity with --enable-composite. However if I check on compositing_manager for metacity, It crashes. Seems like GLX_texture_from_pixmap extension is missing.
Do you know if I've to enable it in the xorg conf? or may be this requires something else like Xgl? Mine is a radeon 9250 and it's supposed to be supported. Thanks for the help.
Top
Dizzutch
Guru
Guru
User avatar
Posts: 463
Joined: Tue Nov 09, 2004 8:29 pm
Location: Worcester, MA
Contact:
Contact Dizzutch
Website

  • Quote

Post by Dizzutch » Fri Sep 15, 2006 6:18 pm

simkin wrote:Thanks, nrl and Dizzutch, for the source.
I couldn't compile libcm from CVS (errors), but the ebuilds in Hanno's Xgl overlay worked fine (Mesa-6.5.1*, libcm-0.22*). With those installed I could finally emerge metacity with --enable-composite. However if I check on compositing_manager for metacity, It crashes. Seems like GLX_texture_from_pixmap extension is missing.
Do you know if I've to enable it in the xorg conf? or may be this requires something else like Xgl? Mine is a radeon 9250 and it's supposed to be supported. Thanks for the help.
It's only available on certain cards, IIRC only ATI and Intel cards at the moment, Nvidia doesn't support it yet. This is described on the GNOME release notes for 2.16
gnome.org release notes wrote:Not yet enabled by default, new compositing affects are only available when Metacity is compiled with the special --enable-compositor option. The new compositing features also depend on support for the GLX_texture_from_pixmap extension, which is only available to owners of Intel i830 to i945, and ATI Radeon 7000 to 9250 chips at the present time.
Search the output of

Code: Select all

glxinfo
for that flag. It needs to be mentioned in there for it to work.
Help the confused! Adopt an unanswered post!
prepend [solved] to your post title when you feel your issue is resolved.
Worcester Judo
Top
simkin
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Wed Jun 25, 2003 10:28 am

  • Quote

Post by simkin » Fri Sep 15, 2006 9:19 pm

My ATI card is supported. The packages required are installed and configured to enable composite.
The AIGLX option is set in the xorg.conf. Seems that the texture_from_pixmap extension is loaded.

Code: Select all

direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method, 
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe, 
    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, 
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, 
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, 
    GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method, 
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI R200 20060602 AGP 8x x86/MMX+/3DNow!+/SSE2 TCL
OpenGL version string: 1.3 Mesa 6.5.1
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture, 
    GL_ARB_texture_border_clamp, GL_ARB_texture_compression, 
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add, 
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar, 
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat, 
    GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, 
    GL_ARB_vertex_buffer_object, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, 
    GL_EXT_blend_color, GL_EXT_blend_equation_separate, 
    GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract, 
    GL_EXT_clip_volume_hint, GL_EXT_compiled_vertex_array, GL_EXT_convolution, 
    GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord, 
    GL_EXT_histogram, GL_EXT_packed_pixels, GL_EXT_polygon_offset, 
    GL_EXT_rescale_normal, GL_EXT_secondary_color, 
    GL_EXT_separate_specular_color, GL_EXT_stencil_wrap, GL_EXT_subtexture, 
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp, 
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine, 
    GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic, 
    GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp, 
    GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array, 
    GL_APPLE_packed_pixels, GL_ATI_blend_equation_separate, 
    GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once, 
    GL_ATI_fragment_shader, GL_IBM_rasterpos_clip, 
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate, 
    GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_MESA_window_pos, 
    GL_NV_blend_square, GL_NV_light_max_exponent, GL_NV_texture_rectangle, 
    GL_NV_texgen_reflection, GL_OES_read_format, GL_SGI_color_matrix, 
    GL_SGI_color_table, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp, 
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
However it's present with a different name: GLX_EXT_texture_from_pixmap
May be that's the reason why metacity is crashing?

Code: Select all

libGL warning: 3D driver claims to not support visual 0x4c
depth: 24
DISPATCH ERROR! _glapi_add_dispatch failed to add glBlendEquationSeparate!
Window manager warning: Log level 16: No texture created - maybe Texture From
Pixmap extension is not present?

Backtrace:
0: X(xf86SigHandler+0x81) [0x80d1f01]
1: [0xffffe420]
2: /usr/lib/dri/r200_dri.so(_mesa_BlendFunc+0x39) [0xaef80c89]
3: /usr/lib/xorg/modules/extensions/libglx.so [0xb7bed330]
4: /usr/lib/xorg/modules/extensions/libglx.so(__glXRender+0xef) [0xb7be4f9f]
5: /usr/lib/xorg/modules/extensions/libglx.so [0xb7be9dce]
6: X(Dispatch+0x18d) [0x80867ed]
7: X(main+0x47e) [0x806e58e]
8: /lib/libc.so.6(__libc_start_main+0xdc) [0xb7cad87c]
9: X(FontFileCompleteXLFD+0xa5) [0x806d8c1]

Fatal server error:
Caught signal 11.  Server aborting

(**) RADEON(0): RADEONLeaveVT
(**) RADEON(0): EngineRestore (32/32)
(**) RADEON(0): RADEONRestore
(**) RADEON(0): RADEONRestoreMode()
(**) RADEON(0): RADEONRestoreMode(0x81f72e0)
(**) RADEON(0): RADEONRestoreMemMapRegisters() :
(**) RADEON(0):   MC_FB_LOCATION   : 0x1fff0000
(**) RADEON(0):   MC_AGP_LOCATION  : 0x27ff2000
(**) RADEON(0):   Map Changed ! Applying ...
(**) RADEON(0):   Map applied, resetting engine ...
(**) RADEON(0): Updating display base addresses...
(**) RADEON(0): Memory map updated.
(**) RADEON(0): Programming CRTC1, offset: 0x00000000
(**) RADEON(0): Wrote: 0x00000007 0x00060065 0x00000000 (0x0000bf00)
(**) RADEON(0): Wrote: rd=7, fd=101, pd=6
(**) RADEON(0): Ok, leaving now...
The application 'gnome-session' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed
the application.
xinit:  connection to X server lost.
gnome_segv2: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
gnome_segv2: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
Window manager warning: Could not find display for X display 0x817c2b0,
probably going to crash
Bug in window manager: IO error received for unknown display?
Top
hoschi
Advocate
Advocate
User avatar
Posts: 2517
Joined: Sat Jul 19, 2003 9:08 pm
Location: Ulm, Germany, Europe
Contact:
Contact hoschi
Website

  • Quote

Post by hoschi » Mon Sep 18, 2006 11:54 am

I think we need the libcm cvs-build
Just you and me strogg!
Top
tylerwylie
Guru
Guru
User avatar
Posts: 458
Joined: Sun Sep 19, 2004 6:08 pm
Location: /US/Georgia/Atlanta

  • Quote

Post by tylerwylie » Sun Oct 08, 2006 11:40 am

Tried today got the blue screen with shadows, anyone have a fix yet?
Top
Black Zer0
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 131
Joined: Sat Feb 03, 2007 3:56 am
Location: Almonte Ontario Canada

  • Quote

Post by Black Zer0 » Tue Mar 13, 2007 6:25 pm

Code: Select all

(chroot) livecd / # layman -a xeffects
* Running command "/usr/bin/svn co "svn://svn.gentoo-xeffects.org/xeffects/trunk/" "/usr/portage/local/layman/xeffects""...
/usr/bin/svn: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory
* Failed to add overlay "xeffects".
* Error was: Adding the overlay failed!
I tried a emerge -s libexpat but no results

Does anyone have a DIRECT link for libcm or a solution to this missing lib
Top
tarpman
Veteran
Veteran
User avatar
Posts: 1083
Joined: Thu Nov 04, 2004 2:55 am
Location: Victoria, BC, Canada

  • Quote

Post by tarpman » Tue Mar 13, 2007 6:43 pm

Black Zer0 wrote:

Code: Select all

(chroot) livecd / # layman -a xeffects
* Running command "/usr/bin/svn co "svn://svn.gentoo-xeffects.org/xeffects/trunk/" "/usr/portage/local/layman/xeffects""...
/usr/bin/svn: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory
* Failed to add overlay "xeffects".
* Error was: Adding the overlay failed!
you need to revdep-rebuild
Top
Black Zer0
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 131
Joined: Sat Feb 03, 2007 3:56 am
Location: Almonte Ontario Canada

  • Quote

Post by Black Zer0 » Tue Mar 13, 2007 6:45 pm

I think i tried that and it wasnt a command, I might have typed it wrong ill try again

EDIT:

Code: Select all

(chroot) livecd / # revdep-rebuild
bash: revdep-rebuild: command not found
EDIT thanks nightmorph, running revdep-rebuild now
Last edited by Black Zer0 on Tue Mar 13, 2007 7:13 pm, edited 1 time in total.
Top
96140
Retired Dev
Retired Dev
Posts: 1324
Joined: Sun Jan 23, 2005 9:18 pm

  • Quote

Post by 96140 » Tue Mar 13, 2007 6:50 pm

--
Last edited by 96140 on Fri Sep 13, 2013 9:31 am, edited 1 time in total.
Top
Hypnos
Advocate
Advocate
User avatar
Posts: 2889
Joined: Thu Jul 18, 2002 5:12 pm
Location: Omnipresent

  • Quote

Post by Hypnos » Wed Mar 21, 2007 3:24 pm

Metacity compositing works well for me under AIGLX.

INSTALLATION TIPS:

* Make sure AIGLX and Composite are enabled in your xorg.conf as described here. (With AIGLX but w/o Composite, you get nothing; with Composite but w/o AIGLX, all your windows turn into shaded blue boxes.)

* If you are using the open source radeon driver like me, in the "Device" section make sure that you use the default XAA render method rather than EXA. Also, and this is critical, have the following line:

Code: Select all

Option     "XAANoOffscreenPixmaps" "True"
Without this the Xserver will crash. (Also mentioned in the above.)

* Here are the x11-libs/libcm-0.1.1 and x11-wm/metacity-2.16.3 ebuilds:

Code: Select all

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="A library with a xlib wrapper and a gl based scene graph"
HOMEPAGE="http://www.gnome.org"
SRC_URI="ftp://ftp.gnome.org/pub/gnome/sources/${PN}/0.1/${P}.tar.bz2"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-libs/glib-2.0
                x11-libs/libX11
                x11-libs/libXext
                x11-libs/libXcomposite
                x11-libs/libXdamage
                x11-libs/libXtst
                virtual/glut"
RDEPEND="${DEPEND}"

src_compile() {
        econf || die "econf failed"
        emake || die "emake failed"
}

src_install() {
        emake DESTDIR="${D}" install || die "emake install failed"
}

Code: Select all

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/metacity/metacity-2.16.3.ebuild,v 1.11 2007/01/18 23:51:54 jer Exp $

inherit eutils gnome2

DESCRIPTION="Gnome default windowmanager"
HOMEPAGE="http://www.gnome.org/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
IUSE="xinerama"

# not parallel-safe; see bug #14405
MAKEOPTS="${MAKEOPTS} -j1"

RDEPEND=">=x11-libs/gtk+-2.10
        >=x11-libs/pango-1.2
        >=gnome-base/gconf-2
        >=dev-libs/glib-2.6
        >=x11-libs/startup-notification-0.7
        !x11-misc/expocity
        x11-libs/libcm"

DEPEND="${RDEPEND}
        sys-devel/gettext
        >=dev-util/pkgconfig-0.9
        >=dev-util/intltool-0.35"

DOCS="AUTHORS ChangeLog HACKING NEWS README *.txt doc/*.txt"

pkg_setup() {
        G2CONF="$(use_enable xinerama) --enable-compositor"
}
Stick them in your local overlay and keyword unmask libcm.

* In the GConf editor, under apps/metacity/general, activate "compositing_manager". Voila.


RESULTS:

There is a "bounce" effect when you focus or grab/release a window; since I use sloppy focus, it's a little much -- I'd rather have a wobble/shimmy effect as I move a window. When you kill a window, there's an "exploding shards" effect that is rather cheesy. Finally, there's a "shrink" effect when minimizing. I hope these will be options in version 2.18 so one can pick and choose.

Transparency and alpha blending of terminals, menus, and transient windows work quite well.

Anyway, this is all better than Beryl, which gives me a headache. (The same xorg.conf tips above apply to Beryl, obviously with different Portage installation.)

HTH.
Personal overlay | Simple backup scheme
Top
Post Reply

19 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic