karmic: Compositing broken on resume from suspend

Bug #421736 reported by Hezekiah Carty
58
This bug affects 12 people
Affects Status Importance Assigned to Milestone
xf86-video-intel
Fix Released
Critical
xserver-xorg-video-intel (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

Karmic x86 64bit, install from alpha 4 with all updates as of August 30, 2009.

Lenovo Thinkpad R61
Intel 965GM

After resuming from a suspend-to-ram, compiz seems to lock up or simply stop displaying the desktop. I can still see and move the mouse cursor, apparently interact the desktop (switch desktops, click on windows, the mouse cursor changes shape when moving over buttons versus text). I can not actually _see_ any of the desktop though, only a black screen aside from the mouse cursor.

I can work around this by switching to a different VT and killing all of the compiz processes. I have to kill -9 compiz.real in order to get it to stop. After that, I can switch back to X and start either compiz or metacity and once again have a working desktop with all of my applications still in place.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Just to confirm, this isn't fixed by the recent suspend/resume ordering fix in the drm-intel-next kernel?

Revision history for this message
In , Ben Gamari (bgamari) wrote :

Unfortunately it doesn't seem to be.

Revision history for this message
In , Ben Gamari (bgamari) wrote :

(In reply to comment #2)
> Unfortunately it doesn't seem to be.
>

It is rather interesting, though, that the GPU only freezes when the 3d unit is used (i.e. task switching in compiz). When the machine comes up from suspend I can interact with the gnome-screensaver unlock window effectively indefinitely. However, when I unlock the session and attempt to interact with compiz, the chip quickly locks up. Additionally, for the short duration when compiz does draw (the first few seconds after unlocking), alpha blending appears to be broken, drawing all alpha blended regions as fully transparent.

Revision history for this message
In , Pantelis Koukousoulas (pktoss) wrote :

I think I 'm seeing this bug too (on G45). It doesn't seem to matter whether KMS or UMS is used (it happens in both cases).

The symptom is that several desktop (KDE 4.3) components become invisible,
including e.g., the panels and window decorations (I think these are
all part of the plasma process nowadays)

Will follow up with more information after I 've done a little more testing

Revision history for this message
In , Jason Smith (jassmith) wrote :

I experience this issue too. Upon resume all argb windows become fully transparent. Restarting my window manager fixes the issue however.

Revision history for this message
In , Ben Gamari (bgamari) wrote :

(In reply to comment #5)
> I experience this issue too. Upon resume all argb windows become fully
> transparent. Restarting my window manager fixes the issue however.
>
I can also reproduce this simply by restarting compiz (without suspending/resuming). Running compiz --replace a second time during a session causes alpha blended windows to be rendered transparently.

Revision history for this message
In , Pantelis Koukousoulas (pktoss) wrote :

So I devoted a little time to this problem today.

Kernel is latest drm-intel, the other versions are latest available (updated this morning) in kubuntu karmic / xorg-edgers repositories (see file versions.txt in the attached archive - gpu-suspend-lockup-20090720.tar.bz2). I 'm using KMS, but last time I tried from UMS it had the same problem.

If I activate KDE4's compositing / 3D effects support and perform a suspend to ram / resume cycle the gpu locks up. Unfortunately, ssh in also doesn't work
(It looks like the driver takes some lock with it to its doom. sshd asks for the password but hangs where it should spawn a shell - see hang_ssh.txt).

If I suspend from the console by echo mem > /sys/power/state rather than from inside X, the machine resumes ok, but locks up when I switch to X.org.

Therefore, I took gpu/reg dumps from before the suspend, after resume from console and then also used a sleep 10; intel_reg_dumper > dump.txt
trick to try and get output from the wedged state (see test.sh).

Please ask if you would like any additional info.

Revision history for this message
In , Pantelis Koukousoulas (pktoss) wrote :

Created an attachment (id=27847)
Post-mortem data (20090720)

Revision history for this message
In , Pantelis Koukousoulas (pktoss) wrote :

Created an attachment (id=27868)
dmesg with the reset patches from bgamari applied

Trying the GPU reset patches. With those the driver detects the lockup and tries to reset the chip, but fails. Perhaps this is because the reset algorithm implemented does not work for my chip (G45).

Revision history for this message
Hezekiah Carty (hez) wrote : Compiz locks up on resume from suspend (intel)

Binary package hint: xserver-xorg-video-intel

Karmic x86 64bit, install from alpha 4 with all updates as of August 30, 2009.

Lenovo Thinkpad R61
Intel 965GM

After resuming from a suspend-to-ram, compiz seems to lock up or simply stop displaying the desktop. I can still see and move the mouse cursor, apparently interact the desktop (switch desktops, click on windows, the mouse cursor changes shape when moving over buttons versus text). I can not actually _see_ any of the desktop though, only a black screen aside from the mouse cursor.

I can work around this by switching to a different VT and killing all of the compiz processes. I have to kill -9 compiz.real in order to get it to stop. After that, I can switch back to X and start either compiz or metacity and once again have a working desktop with all of my applications still in place.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

There were some hang fixes that went in recently; do today's git bits still have this issue?

Revision history for this message
Bryce Harrington (bryce) wrote : Re: Compiz locks up on resume from suspend (intel)

Hi hez,

Please attach the output of `lspci -vvnn` and `dmesg`, and attach your /var/log/Xorg.0.log (and maybe Xorg.0.log.old) file from after reproducing this issue. If you're using a custom /etc/X11/xorg.conf please attach that as well.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
tags: added: needs-lspci-vvnn
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Incomplete
Revision history for this message
olliwolli (mlists) wrote :

I have exactly the same problem.
Sometimes I get the bug 237339, sometimes this one
 and sometimes the laptop resumes correctly (not often).

So it might be that the two bugs are related.
Note that I attached the requested files to the bug 237339.
I will send the requested files if bug 421736 occurs again.

The two bugs occured for me starting with my initial upgrade to karmic (back then
it was in early alpha state).

Revision history for this message
Bryce Harrington (bryce) wrote :

This sounds like a match to bug #419264. The symptoms are slightly different however the workaround (killing compiz) and the timing of your last update suggest it's probably the same bug. There is a kernel with a patch proposed for fixing this bug in the comments of bug #41926 - do you mind booting and testing that kernel to verify it does indeed solve the bug you're seeing?

Revision history for this message
In , Ben Gamari (bgamari) wrote :

(In reply to comment #10)
> There were some hang fixes that went in recently; do today's git bits still
> have this issue?
>

Things have definitely improved. The chip is far more stable and coming back from suspend hasn't yet resulted in a wedged GPU. Unfortunately, the problem still isn't completely resolved.

The alpha blending issue has recurred in one of the two times I've suspended so far. While immediately restarting compiz does not fix the issue, running metacity and then starting compiz seems to bring the chip back to a sane state.

Revision history for this message
Hezekiah Carty (hez) wrote : Re: Compiz locks up on resume from suspend (intel)

I tried a backport of the Karmic kernel to Jaunty with the patch listed in that bug + the latest xorg-edgers packages and I still have the same issue with compiz freezing. I am unable to switch over to the Karmic install at this time, but the symptoms and general system response is the same on my (backport-heavy) Jaunty install on this system.

Once the patched kernel lands in Karmic I will test again there and (if I still have the problem) post my Karmic dmesg and lspci information.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Hm weird... sounds like we're missing some 3D state setup possibly, or there's some other display bit that controls rendering to alpha channels. I'll look for it.

Bryce Harrington (bryce)
tags: added: karmic
Revision history for this message
strowger (strowger) wrote : Re: Compiz locks up on resume from suspend (intel)

I have this, or bug #421736 (varies randomly), on a Thinkpad R500 with Intel graphics.

Fully up-to-date Karmic x86 64bit.

Changed in xserver-xorg-video-intel:
status: Unknown → Confirmed
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Kevin Mehall (kevin-mehall) wrote :

I encountered this bug on a Dell Studio 15 (Intel i965) using Jaunty with the xorg-edgers PPA and kernel, acpi-support, pm-utils, and compiz backported from Karmic. The Karmic daily livecd also has this issue.

Downgrading libgl1-mesa-dri to 7.5-1ubuntu1 as Martin Albisetti suggested on bug #419264 seems to be a workaround. I've done several suspend-resume cycles and it hasn't crashed.

The package is available at https://launchpad.net/ubuntu/karmic/amd64/libgl1-mesa-dri/7.5-1ubuntu1

I haven't tried the kernel patch that's also supposed to fix bug #419264, but I can once it's included in Karmic.

Revision history for this message
olliwolli (mlists) wrote :

I also downgraded libgl1-mesa-dri. After restarting the X Server one time, suspending works properly now.

Revision history for this message
Hezekiah Carty (hez) wrote :

Downgrading libgl1-mesa-dri fixes the problem for me as well.

Revision history for this message
strowger (strowger) wrote :

Downgrading libgl1-mesa-dri has also fixed it for me (Thinkpad R500).

Revision history for this message
GianZap (gianzap) wrote :

I can confirm this bug on an up-to-date Jaunty plus updates form xorg-edgers ppa. I am currently using the kernel posted by Ogasawara on bug #419264 since it seems to at least mitigate the problem: after resume, I can now see windows, interact with the desktop and see effects like scale, but anything that was set to be partially transparent (panel, window decorations, etc) becomes completely invisible. I restart compiz and everything is back to normal behaviour. Kernel 2.6.31-rc7 gave me exactly the behaviour described in this bug. Downgrading libgl1-mesa-dri plus Ogasawara's kernel fix everything.

Since this bug is set to incomplete, I'm attaching all requested files. Please note that I'm on Jaunty, not Karmic!

Revision history for this message
GianZap (gianzap) wrote :
Revision history for this message
GianZap (gianzap) wrote :
Revision history for this message
GianZap (gianzap) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote : Re: Compiz locks up on resume from suspend on karmic

Gianluca, this bug report is only about freezes that can be reproduced on karmic. Do not post about jaunty freezes here. The codebase and defaults changed considerably between jaunty and karmic.

summary: - Compiz locks up on resume from suspend (intel)
+ Compiz locks up on resume from suspend on karmic
Revision history for this message
Bryce Harrington (bryce) wrote :

Hmm, too bad no one has tested the kernel fix, but it seems likely this is a dupe of that so I'll mark it so and you guys can undupe if you get some evidence to the contrary.

Revision history for this message
Paul Jones (pajones) wrote :

Just tried the latest kernel patch. This bug still exists.

Revision history for this message
Kevin Mehall (kevin-mehall) wrote :

I can also confirm that this still occurs with kernel 2.6.31-10-generic and libgl1-mesa-dri 7.6.0+git20090908.e589a37f-0ubuntu0tormod

Revision history for this message
Heiko (heiko-barg) wrote :

I can also confirm with uptodate karmic (last update 5 minutes ago).

Revision history for this message
Randall Leeds (randall-leeds) wrote :

This is not just a problem with Compiz but a problem with compositing in general. It occurs on Kubuntu using KWin for window management as well.

summary: - Compiz locks up on resume from suspend on karmic
+ karmic: Compositing broken on resume from suspend
Revision history for this message
Patrick (patrick-voegeli) wrote :

Up to date Karmic, this still happens. On resume, I lose the window decorator and the desktop doesn't seem to work, but I still can change Virtual Desktops when I rotate the mouse.

Also happens in a fully up-to-date Jaunty with X-edgers ppa. In Jaunty I solved it by using some PPA packages that work (from a past update, which I saved) and, indeed, one of the files is libgl1-mesa-dri-7.5 instead of 7.6. Then I disabled the PPA.

Revision history for this message
In , Ben Gamari (bgamari) wrote :

This actually seems to have recently disappeared. Perhaps it was Ickle's relocation address verification patch. Who knows...

Changed in xserver-xorg-video-intel:
status: Confirmed → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

According to comments on the upstream bug, they are no longer seeing the problem. I notice there's been no comments to this bug since that comment either. Is anyone still seeing this bug with latest Karmic bits?

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
strowger (strowger) wrote :

Fixed for my Thinkpad R500 in the current (as of a few days ago) Karmic.

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for letting us know the issue is resolved.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Fix Released
Changed in xserver-xorg-video-intel:
importance: Unknown → Critical
Changed in xserver-xorg-video-intel:
importance: Critical → Unknown
Changed in xserver-xorg-video-intel:
importance: Unknown → Critical
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.