After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665061 - gnome-session-is-accelerated: Zaphod mode not supported.
gnome-session-is-accelerated: Zaphod mode not supported.
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: gnome-session
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on: 648156
Blocks:
 
 
Reported: 2011-11-28 16:01 UTC by Cesko Voeten
Modified: 2012-10-15 21:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1.02 KB, patch)
2012-10-15 17:31 UTC, Jürg Billeter
committed Details | Review

Description Cesko Voeten 2011-11-28 16:01:58 UTC
Hello,

I am unable to use my Xinerama set-up with the awesome Gnome Shell. gnome-session-is-accelerated doesn't deem my set-up worthy and therefore I only get fallback mode :-(

My xorg.conf is as follows:

Section "Device"
  Identifier    "RightCard"
  Driver        "ati"
  Option        "Monitor-VGA-0" "RightMonitor"
  Option        "DynamicPM" "true"
  BusID         "PCI:01:00:0"
EndSection
Section "Device"
  Identifier    "LeftCard"
  Driver        "intel"
  Option        "Monitor-HDMI-3" "LeftMonitor"
  BusID         "PCI:00:02:0"
EndSection
Section "Monitor"
  Identifier    "RightMonitor"
  VendorName    "CTX"
  Option        "Enable"   "true"
  Option        "Primary"  "true"
EndSection
Section "Monitor"
  Identifier    "LeftMonitor"
  VendorName    "SAM"
  Option        "Enable"   "true"
  Option        "Primary"  "false"
EndSection
Section "Screen"
  Identifier    "LeftScreen"
  Device        "LeftCard"
EndSection
Section "Screen"
  Identifier    "RightScreen"
  Device        "RightCard"
EndSection
Section "ServerLayout"
  Identifier    "BOTHSCREENS"
  Screen 0      "RightScreen"
  Screen 1      "LeftScreen" LeftOf "RightScreen"
EndSection
Section "ServerFlags"
  Option        "DontZap"    "false"
  Option        "DefaultServerLayout"  "BOTHSCREENS"
EndSection

I don't really know if zaphod mode not being supported is a bug or a feature to prevent bugs, so I didn't know what to file this bug report as; I apologize if I made any mistake.

Thanks for anything you can do :-)
Comment 1 Matthias Clasen 2011-11-29 12:16:35 UTC
It is not supported because gnome-shell (and mutter, on which it is based) do not support managing multiple screens: bug 648156
Comment 2 Lucas Clemente Vella 2012-01-14 17:55:21 UTC
So you can mark as confirmed?
Comment 3 Martin Dengler 2012-02-03 01:54:59 UTC
I've trivially patched mutter (see https://bugzilla.gnome.org/show_bug.cgi?id=648156 ) and gnome-session-check-accelerated (see attached patch and RPMS at 
http://koji.fedoraproject.org/koji/taskinfo?taskID=3757894 ).

  The problem now is that gnome-check-accelerated-helper returns:

$ /usr/libexec/gnome-session-check-accelerated-helper ; echo $?
gnome-session-is-accelerated: No hardware 3D support.
1

...despite:

$ glxinfo | grep -i render
direct rendering: Yes
OpenGL renderer string: Gallium 0.4 on llvmpipe

But I am getting abrts from glxinfo so I need to investigate further:

$ gdb glxinfo
GNU gdb (GDB) Fedora (7.3.50.20110722-10.fc16)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/glxinfo...Reading symbols from /usr/lib/debug/usr/lib64/mesa/glxinfo.debug...done.
done.
(gdb) run
Starting program: /usr/bin/glxinfo 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
name of display: :0.0
[New Thread 0x7ffff2a66700 (LWP 9700)]
[...threads...]
[New Thread 0x7fffeb257700 (LWP 9715)]
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and 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_EXT_framebuffer_sRGB, 
    GLX_MESA_copy_sub_buffer, GLX_MESA_multithread_makecurrent, 
    GLX_MESA_swap_control, 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_INTEL_swap_event
GLX version: 1.4
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_MESA_multithread_makecurrent, GLX_OML_swap_method, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe
OpenGL version string: 2.1 Mesa 7.11.2
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_ARB_multisample, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, 
[...]
0x138  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 24  8  0  0  0  0  0 0 None
0x139  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 24  8 16 16 16  0  0 0 Slow




Program received signal SIGSEGV, Segmentation fault.
XCreateDrawable (visualid=531, drawable=54525961, dpy=0x606010, pdp=0x85e180) at drisw_glx.c:94
94         pdp->ximage = XCreateImage(dpy,
(gdb) bt
  • #0 XCreateDrawable
    at drisw_glx.c line 94
  • #1 driswCreateDrawable
    at drisw_glx.c line 381
  • #2 driFetchDrawable
    at dri_common.c line 377
  • #3 drisw_bind_context
    at drisw_glx.c line 273
  • #4 MakeContextCurrent
    at glxcurrent.c line 269
  • #5 print_screen_info
    at glxinfo.c line 486
  • #6 main
    at glxinfo.c line 1255
  • #0 cairo_pattern_reference
    from /usr/lib64/libcairo.so.2
  • #1 gdk_window_set_background_pattern
    at gdkwindow.c line 6538
  • #2 gdk_window_set_background_pattern
    at gdkwindow.c line 6529
  • #3 gtk_style_context_set_background
    at gtkstylecontext.c line 3207
  • #4 gtk_widget_real_style_updated
    at gtkwidget.c line 6545
  • #5 gtk_window_style_updated
    at gtkwindow.c line 5499
  • #6 g_closure_invoke
    from /lib64/libgobject-2.0.so.0
  • #7 ??
    from /lib64/libgobject-2.0.so.0
  • #8 g_signal_emit_valist
    from /lib64/libgobject-2.0.so.0
  • #9 g_signal_emit
    from /lib64/libgobject-2.0.so.0
  • #10 style_context_changed
    at gtkwidget.c line 14503
  • #11 g_closure_invoke
    from /lib64/libgobject-2.0.so.0
  • #12 ??
    from /lib64/libgobject-2.0.so.0
  • #13 g_signal_emit_valist
    from /lib64/libgobject-2.0.so.0
  • #14 g_signal_emit
    from /lib64/libgobject-2.0.so.0
  • #15 gtk_style_context_invalidate
    at gtkstylecontext.c line 3175
  • #16 gtk_widget_get_style_context
    at gtkwidget.c line 14552
  • #17 gtk_window_realize
    at gtkwindow.c line 5083
  • #18 g_closure_invoke
    from /lib64/libgobject-2.0.so.0
  • #19 ??
    from /lib64/libgobject-2.0.so.0
  • #20 g_signal_emit_valist
    from /lib64/libgobject-2.0.so.0
  • #21 g_signal_emit
    from /lib64/libgobject-2.0.so.0
  • #22 gtk_widget_realize
    at gtkwidget.c line 4401
  • #23 gtk_window_show
    at gtkwindow.c line 4656
  • #24 g_closure_invoke
    from /lib64/libgobject-2.0.so.0
  • #25 ??
    from /lib64/libgobject-2.0.so.0
  • #26 g_signal_emit_valist
    from /lib64/libgobject-2.0.so.0
  • #27 g_signal_emit
    from /lib64/libgobject-2.0.so.0
  • #28 gtk_widget_show
    at gtkwidget.c line 3905
  • #29 gtk_widget_show
    at gtkwidget.c line 3882
  • #30 meta_ui_new
    at ui/ui.c line 288
  • #31 meta_screen_new
  • #32 meta_display_open
    at core/display.c line 806
  • #33 meta_run
    at core/main.c line 552
  • #34 main
    at main.c line 571

Comment 4 Vincent Untz 2012-02-03 06:30:45 UTC
(In reply to comment #3)
>   The problem now is that gnome-check-accelerated-helper returns:
> 
> $ /usr/libexec/gnome-session-check-accelerated-helper ; echo $?
> gnome-session-is-accelerated: No hardware 3D support.
> 1
> 
> ...despite:
> 
> $ glxinfo | grep -i render
> direct rendering: Yes
> OpenGL renderer string: Gallium 0.4 on llvmpipe

At least upstream, llvmpipe is marked as not supported in gnome-session. See http://git.gnome.org/browse/gnome-session/tree/data/hardware-compatibility

(We might want to change this, I've no idea what's the current state of llvmpipe)
Comment 5 Martin Dengler 2012-02-15 05:26:36 UTC
(In reply to comment #4)
> At least upstream, llvmpipe is marked as not supported in gnome-session. See
> http://git.gnome.org/browse/gnome-session/tree/data/hardware-compatibility
> 
> (We might want to change this, I've no idea what's the current state of
> llvmpipe)

I don't see an upstream change (perhaps cgit is defeating me) but looks like ajax has already confirmed that llvmpipe is now good enough for F17:

http://lists.fedoraproject.org/pipermail/devel/2011-November/158976.html

As I see TFP in my F16 driver I have rebuilt gnome-session without the patched-in-rejection-of-llvmpipe and see how far I get.

Koji build is http://koji.fedoraproject.org/koji/taskinfo?taskID=3791842
Comment 6 Jürg Billeter 2012-10-15 17:31:55 UTC
Created attachment 226495 [details] [review]
Proposed patch

Now that mutter no longer crashes in Zaphod mode (see bug 648156), can we please update gnome-session-check-accelerated?
Comment 7 Matthias Clasen 2012-10-15 21:07:10 UTC
Review of attachment 226495 [details] [review]:

Looks good to me
Comment 8 Jürg Billeter 2012-10-15 21:29:50 UTC
Comment on attachment 226495 [details] [review]
Proposed patch

commit e2e38fc7902d1fe3d12053b446770f917c833b69
Author: Jürg Billeter <j@bitron.ch>
Date:   Mon Sep 10 20:10:17 2012 +0200

    gnome-session-check-accelerated: Support zaphod mode
    
    Mutter no longer crashes in zaphod mode.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=665061