[regression] Cannot enable Compiz from gnome-appearance-properties

Bug #420308 reported by Andres Monroy-Hernandez
102
This bug affects 15 people
Affects Status Importance Assigned to Milestone
GTK+
Fix Released
Medium
gnome-control-center
Invalid
Undecided
Unassigned
gnome-control-center (Ubuntu)
Fix Released
High
Travis Watkins
gtk+2.0 (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: compiz

Enabling compiz with compiz --replace worked but it didn't work from gnome-appearance-properties.

$ compiz --replace
Checking for Xgl: not present.
xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.0.log
Detected PCI ID for VGA:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Checking screen 1Comparing resolution (1440x900) to maximum 3D texture size (4096): Passed.
Checking for Software Rasterizer: Not present.
Checking for nVidia: not present.
Checking for FBConfig: present.
Checking for Xgl: not present.
I/O warning : failed to load external entity "/home/andresmh/.compiz/session/102e52f0bf151aa8f5125143450055641100000095040010"
/usr/bin/compiz.real (cube) - Warn: Failed to load slide: /usr/share/gdm/themes/Human/ubuntu.png
/usr/bin/compiz.real (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format
Starting gtk-window-decorator

$ gnome-appearance-properties
There is no available graphics driver for your system which supports the composite extension, or the current one already supports it.
Checking for Xgl: not present.
xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.0.log
Detected PCI ID for VGA:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Checking screen 1Comparing resolution (1440x900) to maximum 3D texture size (4096): Passed.
Checking for Software Rasterizer: Not present.
Checking for nVidia: not present.
Checking for FBConfig: present.
Checking for Xgl: not present.
I/O warning : failed to load external entity "/home/andresmh/.compiz/session/102e52f0bf151aa8f5125143450055641100000095040010"
/usr/bin/compiz.real (cube) - Warn: Failed to load slide: /usr/share/gdm/themes/Human/ubuntu.png
/usr/bin/compiz.real (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format
Window manager warning: Failed to read saved session file /home/andresmh/.config/metacity/sessions/102e52f0bf151aa8f5125

ProblemType: Bug
Architecture: i386
CompizPlugins: [core,ccp,dbus,place,mousepoll,gnomecompat,move,resize,decoration,png,svg,imgjpeg,text,neg,video,wall,snap,animation,scale,scaleaddon,expo,staticswitcher,regex,resizeinfo,workarounds,ezoom,vpswitch,extrawm,fade,session]
Date: Fri Aug 28 00:51:12 2009
DistroRelease: Ubuntu 9.10
MachineType: LENOVO 64771ZU
Package: compiz 1:0.8.2-0ubuntu16
PackageArchitecture: all
PccardctlIdent:

PccardctlStatus:

PciDisplay: 00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller [8086:2a02] (rev 0c)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-7-generic root=UUID=e6e8ef1b-5e44-4d5c-b28a-7afbf11f009f ro quiet splash
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-7.27-generic
RelatedPackageVersions:
 xserver-xorg 1:7.4+3ubuntu5
 libgl1-mesa-glx 7.6.0~git20090817.7c422387-0ubuntu3
 libdrm2 2.4.12+git20090801.45078630-0ubuntu1
 xserver-xorg-video-intel 2:2.8.1-1ubuntu1
 xserver-xorg-video-ati 1:6.12.99+git20090629.f39cafc5-0ubuntu6
SourcePackage: compiz
Uname: Linux 2.6.31-7-generic i686
dmi.bios.date: 09/01/2008
dmi.bios.vendor: LENOVO
dmi.bios.version: 7TET34WW (1.08 )
dmi.board.name: 64771ZU
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7TET34WW(1.08):bd09/01/2008:svnLENOVO:pn64771ZU:pvrThinkPadX300:rvnLENOVO:rn64771ZU:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 64771ZU
dmi.product.version: ThinkPad X300
dmi.sys.vendor: LENOVO
system: distro = Ubuntu, architecture = i686, kernel = 2.6.31-7-generic

Revision history for this message
Andres Monroy-Hernandez (andresmh) wrote :
summary: - [regression] Compiz issues with Intel video card: unable to enable from
- Appearances
+ [regression] Cannot enable Compiz from gnome-appearance-properties
Nerd_bloke (nerd-bloke)
Changed in compiz (Ubuntu):
status: New → Confirmed
Revision history for this message
Travis Watkins (amaranth) wrote :

This seems to be a problem with either gnome-appearance-properties or jockey as compiz is clearly starting up all the way and not giving any errors.

 affects gnome-control-center

--
Travis Watkins
http://www.realistanew.com

Revision history for this message
Thomas Trummer (truetom) wrote :

The problem is the function "gdk_x11_screen_get_window_manager_name" which "gnome-appearance-properties" uses to test if Compiz has started. Here is a small test program that demonstrates the problem:

Build and run the program. It will output 'Metacity' all the time. Then start 'compiz --replace' while the program is running and it will continue to print 'Metacity'. Restart the program while compiz is running and it will output 'compiz'.

#include <gdk/gdk.h>
#include <gdk/gdkx.h>

// gcc -g intel.c -o intel-test `pkg-config --cflags gtk+-2.0 gdk-2.0` `pkg-config --libs gtk+-2.0 gdk-2.0`

int main(int argc, char *argv[])
{
    gdk_init(&argc, &argv);

    while(1)
    {
        GdkScreen *default_gdk_screen = gdk_screen_get_default();

        if (!default_gdk_screen)
            return 0;

        printf("%s\n", gdk_x11_screen_get_window_manager_name(default_gdk_screen));
    }
}

Revision history for this message
Thomas Trummer (truetom) wrote :

https://launchpad.net/ubuntu/+source/gnome-control-center
=> 1:2.26.0-1ubuntu4

I've installed the previous version and it works like a charm. So who owns me a beer now? :)

(To be clear: The problem is in "gdk_x11_screen_get_window_manager_name")

Changed in gnome-control-center:
status: New → Invalid
affects: compiz (Ubuntu) → gnome-control-center (Ubuntu)
Changed in gnome-control-center (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Thomas Trummer (truetom) wrote :

Updated version:

#include <X11/extensions/Xcomposite.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>

// gcc -g intel.c -o intel-test `pkg-config --cflags gtk+-2.0 gdk-2.0` `pkg-config --libs gtk+-2.0 gdk-2.0`

int main(int argc, char *argv[])
{
    gdk_init(&argc, &argv);

    while(1)
    {
        GdkScreen *default_gdk_screen = gdk_screen_get_default();

        if (!default_gdk_screen)
            return 0;

        printf("%s\n", gdk_x11_screen_get_window_manager_name(default_gdk_screen));

        gtk_main_iteration_do (FALSE);
    }
}

It seems that "gdk_x11_screen_get_window_manager_name" actually works, but takes too long to switch and the 8s timeout kicks in. I've also installed 1:2.26.0-1ubuntu4 and it is the first version that shows this behaviour.

Revision history for this message
Travis Watkins (amaranth) wrote :

Actually, iz gtk boog :D

Linked branch contains a fix but it is a bit of a hack as it just removes the time check and always pulls a new copy of _WM_NAME from the server.

affects: gnome-control-center (Ubuntu) → gtk+2.0 (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for opening the bug upstream too

Changed in gtk+2.0 (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
Changed in gtk:
status: Unknown → New
Revision history for this message
Travis Watkins (amaranth) wrote :

Technically there is a problem in gnome-control-center we can fix too since the function in gdk was never really meant for this purpose. Reopening for gnome-control-center.

Changed in gnome-control-center (Ubuntu):
assignee: nobody → Travis Watkins (amaranth)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Hans van den Bogert (hbogert) wrote :

side effect which I see is that when you try it with the gnome-appearance-settings-preferences, it fails, and after that a process gconfd-2 suddenly is wasting cpu cycles. Hope this helps

Revision history for this message
Travis Watkins (amaranth) wrote :

That sounds more like bug 389686.

Revision history for this message
Darren Worrall (dazworrall) wrote :

Fwiw, if I login with a freshly created user account, compiz starts fine.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-control-center - 1:2.27.91-0ubuntu3

---------------
gnome-control-center (1:2.27.91-0ubuntu3) karmic; urgency=low

  * debian/patches/95_desktop-effects-integration.patch:
    - use xlib intead of gdk to get the WM name (LP: #420308)

 -- Travis Watkins <email address hidden> Tue, 01 Sep 2009 11:24:06 -0500

Changed in gnome-control-center (Ubuntu):
status: In Progress → Fix Released
Changed in gtk+2.0 (Ubuntu):
importance: High → Low
Revision history for this message
Darren Worrall (dazworrall) wrote :

The fix has worked for me, thanks :)

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

This should be fixed in Ubuntu 9.10. Thanks for reporting.

Changed in gtk+2.0 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Henry (henryheberle) wrote :

I have this problem.
I installed ubuntu lucid alpha and i have upgraded it to the last one.

The Visual effects of Ubuntu doesn't work for me.

I have a notebook Acer 5610.
graphic: Intel GMA 950 128mb.

Changed in gtk:
importance: Unknown → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.