ATI/fglrx workaround patch

Bug #740298 reported by David Barth
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Medium
Jay Taoko
compiz (Ubuntu)
Fix Released
Medium
Jay Taoko
unity (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: compiz

We need a patch to force the FGLRX driver to go into direct rendering mode. The trick is to change the compiz program name before and after the GL driver is initialized.

David Barth (dbarth)
tags: added: compiz-0.9 unity
Revision history for this message
David Barth (dbarth) wrote :

This is a potential FFE request that we may choose to drop depending on the speed at which we can fix other compiz/GL problems.
The impact is that systems requiring fglrx for 3D (ie, not supported by radeon) won't be able to get the Unity experience.

David Barth (dbarth)
Changed in unity:
assignee: nobody → Jay Taoko (jaytaoko)
Changed in compiz (Ubuntu):
assignee: nobody → Jay Taoko (jaytaoko)
importance: Undecided → Medium
Changed in unity:
importance: Undecided → Medium
Changed in compiz (Ubuntu):
status: New → Confirmed
Changed in unity:
status: New → Confirmed
milestone: none → 3.8
Jay Taoko (jaytaoko)
Changed in compiz (Ubuntu):
assignee: Jay Taoko (jaytaoko) → nobody
assignee: nobody → Jay Taoko (jaytaoko)
Changed in unity:
milestone: 3.8 → 3.8.2
Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Jay Taoko (jaytaoko) wrote :

For historic reasons, if fglrx detects the compiz program, it falls back to "indirect mode" OpenGL.
This fix works in combination with a soon to be released fglrx driver (version latter than 8.84.60).
With this patch, Unity will work on systems with the fglrx driver.

Symptoms:
    With a non-patched version of fglrx the following fails:
        - running "compiz --replace" with the Unity plugin enable will fail at startup.
        - running "unity" also fails at startup.
    Make a copy of the compiz binary (in /usr/bin) and name it "compiz-hack". If you run "compiz-hack --replace" with the Unity plugin enable, then Unity will not fail.

Evidences of fglrx working with this compiz patch:
    - running "compiz --replace" with the Unity plugin enable should not fail at startup.
    - running "unity" should not fail at startup.

    - The following examples in Nux should run:
        gputests/texture_copy_blur
        gputests/texture_blur

    - auto-pilot reported PASS:
        Xlib.protocol.request.QueryExtension
        Showing tool tip...
        Showing quicklist...
        Dragging entire launcher...
        (32, 57)
        pressing
        releasing
        Moving launcher icon along edge...
        Dragging launcher straight out and dropping...
        Dragging a launcher icon out, and moving it...
        PASS

Revision history for this message
Jay Taoko (jaytaoko) wrote :

The fix has been merge in lp:~unity-team/compiz/trunk revision 2721
This fix needs a patched driver from AMD.

David Barth (dbarth)
Changed in unity:
status: Confirmed → Fix Committed
Changed in compiz (Ubuntu):
status: Confirmed → Fix Committed
Changed in unity (Ubuntu):
status: Confirmed → Fix Committed
Changed in unity:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.9 KiB)

This bug was fixed in the package unity - 3.8.2-0ubuntu1

---------------
unity (3.8.2-0ubuntu1) natty; urgency=low

  * New upstream release.
    - compiz crashed with SIGSEGV in std::_List_node_base::_M_hook()
      (LP: #711916)
    - New window tracking system breaks in the case where windows try to
      restack relative to destroyed windows that were never mapped
      (LP: #723014)
    - does not display icons until hovered (LP: #726033)
    - Unity Launcher has black spaces where icons should be (LP: #729353)
    - compiz crashed with SIGSEGV in sigc::internal::signal_emit0<void,
      sigc::nil>::emit() (LP: #729715)
    - compiz crashed with SIGSEGV in SimpleLauncherIcon::OnIconThemeChanged()
      (LP: #741652)
    - compiz crashed with SIGSEGV in free() (LP: #738864)
    - compiz crashed with SIGSEGV in g_closure_invoke() (LP: #741674)
    - compiz crashed with SIGSEGV in free() (LP: #742300)
    - Unity can't get touch the touch initialization signals from GEIS
      (LP: #742555)
    - Windows that reparent away from the root before they are mapped can
      cause other windows to become invisible (and compiz to crash)
      (LP: #743011)
    - compiz crashed with SIGSEGV in gdk_cairo_set_source_pixbuf()
      (LP: #744231)
    - [dash] Keyboard navigation not implemented as specified (LP: #608132)
    - xterms broken in unity (LP: #692463)
    - Unity opens application menu on Alt+F10 shortcut (LP: #722674)
    - First four items in Dash begin "Find" "Find" "Find" "Find" (LP: #729002)
    - Increase the size of the top left Launcher reveal area from 1px to a
      slightly larger triangle that comes out of the top left corner
      (LP: #736034)
    - Add a test case for invisible windows regressions (LP: #736876)
    - Re-sync with xquerytree to avoid stacking order issues (LP: #740465)
    - Keyboard navigation: quicklist not opening for Trash launcher item
      (LP: #741793)
    - Wrong window moves (LP: #741656)
    - compiz crashed with SIGSEGV in
      SimpleLauncherIcon::ActivateLauncherIcon() (LP: #742110)
    - Combo in the search bar did not disappear after the places was closed
      (LP: #742712)
    - Expo doesn't quit reliably when using keynav or shortcut (LP: #744196)
    - Make the BFB icon turn blue when an application goes urgent
      (LP: #744973)
    - Launcher - increase "launcher reveal %" for 'Fade and slide' launcher
      reveal transition to 65% (LP: #745602)
    - Arrows do not fade out with rest of launcher durring DND (LP: #746811)
    - Don't create windows over the launcher (LP: #688816)
    - Launcher - Indicate which application is currently focused with a
      glowing Launcher icon (LP: #676604)
    - Unity Grid is broken for multi-monitor setups (LP: #709221)
    - dynamic quicklists are not working (LP: #729074)
    - When windows open for the first time they should not hide the launcher
      (LP: #723878)
    - it is still possible to quit unity from the panel (LP: #733725)
    - Selection does not fit small icons in Unity Dash (LP: #735746)
    - Unmounting media gives no error when failed (LP: #737633)
    - ATI/fglrx workaround patch (LP: #740298)
    - "Files & Folders" tooltip say...

Read more...

Changed in unity (Ubuntu):
status: Fix Committed → Fix Released
David Barth (dbarth)
Changed in unity:
milestone: 3.8.2 → 3.8.4
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package compiz - 1:0.9.4+bzr20110406-0ubuntu1

---------------
compiz (1:0.9.4+bzr20110406-0ubuntu1) natty; urgency=low

  * new upstream bzr tarball:
    - display/size problems with xterm (LP: #748137)
    - fix crashes on tcl/tk applications (LP: #741074, #747439)
    - fix grab on compose keys (LP: #747323)
    - resync stack at regular interval to avoid invisible windows
      (LP: #723014, #743011, #736876, #740465, #684590)
    - fix weird order in alt + tab (LP: #175874)
    - fix crash in gitk (LP: #743011, #741074)
    - avoid compiz detection by fglrx driver (LP: #740298)
    - Wrong window moves (LP: #741656, #743634)
    - Unity Grid is broken for multi-monitor setups (LP: #709221)
    - Feature Freeze Exception: Animation for Grid Plugin Previews (LP: #744104)
    - unity-window-decorator crashed with SIGSEGV in gdk_window_get_events()
      (LP: #725284)
    - fix xterm (LP: #692463)
    - start the decorator on a secondary screen (LP: #730495)
  * debian/patches/090_git_fix_new_invisible_windows.patch,
    debian/patches/100_bump_core.h.patch:
    - upstreamed
  * debian/patches/01_unity_window_decorator.patch
    debian/patches/085_add_grid_plugin.patch:
    - in bzr upstream tarball
 -- Didier Roche <email address hidden> Wed, 06 Apr 2011 19:37:45 +0200

Changed in compiz (Ubuntu):
status: Fix Committed → Fix Released
Changed in unity:
status: Fix Committed → 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.