disable compiz when disabling nvidia

Bug #93734 reported by Martin Pitt
26
Affects Status Importance Assigned to Milestone
desktop-effects (Ubuntu)
Fix Released
Medium
Martin Pitt
restricted-manager (Ubuntu)
Invalid
Medium
Martin Pitt

Bug Description

Binary package hint: restricted-manager

d-e does r-m --check-composite on enabling. Therefore disabling those drivers should disable desktop-effects.

Martin Pitt (pitti)
Changed in restricted-manager:
assignee: nobody → pitti
importance: Undecided → Medium
status: Unconfirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

We cannot fix this in restricted-manager, since it runs as root and thus should not modify user settings. Also, when disabling the nvidia module, we do not need to immediately stop compiz and start metacity (which would interrupt the users's desktop session heavily), but it is enough to detect this at session start and start metacity instead of compiz.

Revision history for this message
Martin Pitt (pitti) wrote :

Seb, do you have a recommendation how to solve this?

Revision history for this message
Sebastien Bacher (seb128) wrote :

That's something compiz should handle better, the bug I opened on compiz has been marked duplicate from this one:
"When compiz can't be used it would be nice to run the GNOME window manager instead"

Do you think it would do the trick?

Revision history for this message
Sebastien Bacher (seb128) wrote :

That's fixed with this upload:

 compiz (1:0.3.6-1ubuntu9) feisty; urgency=low
 .
   * debian/compiz.wrapper:
     - run gnome-wm if compiz can't be used correctly (Ubuntu: #93734)
   [ Nicolas Bruguier ]
   * debian/patches/011_snap-by-default.patch:
     disable patch (close #88733, #89592).
   * debian/patches/016-add-ignore-desktop-hints.patch:
     Add --ignore-desktop-hints command line option, which can be used
     to make compiz not read "number of desktops" and "current desktop"
     hints left by previous WM.
   * debian/compiz.wrapper:
     Add --ignore-desktop-hints in default options
   * debian/patches/086-workspaces-terminal-keybindings.patch:
   * debian/patches/088-gnome-bridge-keybindings-plugin.patch:
   * debian/patches/093-add-toggle-window-on-all-desktop.patch:
     Add toggle window on all desktop keybinding (close #94402)
   * debian/patches/094-fix-gtk-window-decorator-no-argb-crash.patch:
     Fix gtk-window-decorator crash when ARGB isn't enabled and only
     that, in this case window-decoration are invisible
     (Close #94140, #82205).
   * debian/patches/098-schemas:
     Schemas regeneration
   * debian/patches/088-gnome-bridge-keybindings-plugin-schemas.patch:
     Dropped.
   * debian/compiz-plugins.gconf-defaults:
     Add left click to TopRight corner scale activation (Close #92493)
     Add zoom plugin by default (Close #93046) Keenan Pepper patch

Changed in desktop-effects:
status: In Progress → Fix Released
Revision history for this message
VF (vfiend) wrote :

No, it hasn't been fixed. This doesn't work correctly, see bug 99269

Changed in desktop-effects:
status: Fix Released → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

not a duplicate

Revision history for this message
VF (vfiend) wrote :

This was fixed with Compiz 0.3.6-1ubuntu11 , wasn't it?

Martin Pitt (pitti)
Changed in desktop-effects:
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Argh, that was too fast. As I already explained to myself above, we cannot fix this in r-m.

Changed in restricted-manager:
assignee: nobody → pitti
importance: Undecided → Medium
status: Unconfirmed → In Progress
status: In Progress → Rejected
Revision history for this message
Martin Pitt (pitti) wrote :

No, latest compiz still doesn't get along with this. When being started with nv, you just get a white screen and compiz is running.

Revision history for this message
VF (vfiend) wrote :

I just changed nvidia to nv in my xorg.conf and restarted X, I could log in fine, it started metacity instead for me. No white screen. no compiz running. It used to not work but it's worked ever since Compiz 0.3.6-1ubuntu11 was released.

So it's working fine here.

Revision history for this message
Martin Pitt (pitti) wrote :

First cut at a solution: This Xsession.d script disables compiz if nv is configured in xorg.conf.

Itch: if people have both KDE and Gnome installed and run KDE, they will have a lingering gconfd.

Revision history for this message
Nanley Chery (nanoman) wrote :

This behavior is now in Gutsy.

Changed in desktop-effects:
status: In Progress → Fix Released
Revision history for this message
Todd Deshane (deshantm) wrote :

Could this fix also be applied to the ati side of things?

I am running the latest packages after an install of hardy beta and ran into the white screen when going from the fglrx back to the default ati or radeon driver.

The gconf key setting (from the "proposed Xsession.d script" above) back to metacity works fine and should just have a flag for the ati/radeon driver I think. Does that sound right?

Revision history for this message
Martin Pitt (pitti) wrote :

Can you please open a new bug against desktop-effects for the fglrx issue?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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