desktop sluggish after resume from suspend

Bug #887993 reported by Pavel Rojtberg
74
This bug affects 15 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

after resuming from suspend unity/ compiz feels like it renders much less frames per second. Moving windows around is very jerky as are the animations of the sidebar.
While moving around a window the Xorg CPU utilization spikes to 48%, so its eating up one of my 2 cores.

logging out and logging in again solves the problem. Switching to VTs however does not.

furthermore I got this on my kernel log:

Nov 9 11:51:32 deepblue kernel: [39839.124572] ------------[ cut here ]------------
Nov 9 11:51:32 deepblue kernel: [39839.124580] WARNING: at /build/buildd/linux-3.0.0/kernel/power/suspend_test.c:53 suspend_test_finish+0x89/0x90()
Nov 9 11:51:32 deepblue kernel: [39839.124582] Hardware name: 2007FVG
Nov 9 11:51:32 deepblue kernel: [39839.124584] Component: resume devices, time: 10812
Nov 9 11:51:32 deepblue kernel: [39839.124587] Modules linked in: bnep rfcomm parport_pc ppdev binfmt_misc joydev snd_hda_codec_analog pcmcia snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi hdj_mod btusb arc4 bluetooth snd_rawmidi snd_seq_midi_event ath9k yenta_socket psmouse pcmcia_rsrc serio_raw pcmcia_core mac80211 ath9k_common snd_seq ath9k_hw thinkpad_acpi nvram nsc_ircc irda ath radeon snd_timer snd_seq_device crc_ccitt tpm_tis cfg80211 video snd ttm drm_kms_helper drm i2c_algo_bit soundcore snd_page_alloc lp parport usbhid hid ahci libahci xhci_hcd e1000e btrfs zlib_deflate libcrc32c
Nov 9 11:51:32 deepblue kernel: [39839.124644] Pid: 20240, comm: pm-suspend Not tainted 3.0.0-13-generic #22-Ubuntu
Nov 9 11:51:32 deepblue kernel: [39839.124646] Call Trace:
Nov 9 11:51:32 deepblue kernel: [39839.124652] [<c1047982>] warn_slowpath_common+0x72/0xa0
Nov 9 11:51:32 deepblue kernel: [39839.124666] [<c1084af9>] ? suspend_test_finish+0x89/0x90
Nov 9 11:51:32 deepblue kernel: [39839.124670] [<c1084af9>] ? suspend_test_finish+0x89/0x90
Nov 9 11:51:32 deepblue kernel: [39839.124674] [<c1047a53>] warn_slowpath_fmt+0x33/0x40
Nov 9 11:51:32 deepblue kernel: [39839.124678] [<c1084af9>] suspend_test_finish+0x89/0x90
Nov 9 11:51:32 deepblue kernel: [39839.124681] [<c108483a>] suspend_devices_and_enter+0xba/0x180
Nov 9 11:51:32 deepblue kernel: [39839.124685] [<c10849fe>] enter_state+0xfe/0x130
Nov 9 11:51:32 deepblue kernel: [39839.124688] [<c1083f4a>] state_store+0x8a/0xc0
Nov 9 11:51:32 deepblue kernel: [39839.124692] [<c1083ec0>] ? pm_trace_dev_match_show+0x20/0x20
Nov 9 11:51:32 deepblue kernel: [39839.124697] [<c127eecb>] kobj_attr_store+0x1b/0x30
Nov 9 11:51:32 deepblue kernel: [39839.124702] [<c1185656>] sysfs_write_file+0xa6/0x100
Nov 9 11:51:32 deepblue kernel: [39839.124716] [<c112876f>] vfs_write+0x8f/0x160
Nov 9 11:51:32 deepblue kernel: [39839.124719] [<c11855b0>] ? sysfs_poll+0x80/0x80
Nov 9 11:51:32 deepblue kernel: [39839.124723] [<c1128a4d>] sys_write+0x3d/0x70
Nov 9 11:51:32 deepblue kernel: [39839.124727] [<c152cc24>] syscall_call+0x7/0xb
Nov 9 11:51:32 deepblue kernel: [39839.124730] ---[ end trace 307b324cec6bf296 ]---

Revision history for this message
Pavel Rojtberg (rojtberg) wrote :

kernel message was unrelated. Just checked with linux 3.1.0 from edgers ppa and there is no kernel message, but compiz is still sluggish.

Revision history for this message
Mario (mariodopico) wrote :

Also affect me, with 11.10 [64 bits] and radeon 5770.

This is a bug in Unity, because it does not happen in Gnome Shell.

How to play:

Go to Unity Dash, show all applications, move icons up and down with the scroll bar, suspend and resume, perform the same operation and notice that is very slow.

Revision history for this message
Mario (mariodopico) wrote :

Confirmed that the bug is in Unity

Alt-F2 --> unity --reset fixes the problem.

This bug should be passed to Unity instead of xorg?

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg (Ubuntu):
status: New → Confirmed
Bryce Harrington (bryce)
tags: added: performance
Revision history for this message
Greg Michalec (greg-primate) wrote :

FYI - this bug still persists in 12.10 beta. I've always assumed this was an issue between compiz and the radeon open source drivers. I have a Radeon HD 5470.

Revision history for this message
Greg Michalec (greg-primate) wrote :

Is this bug a duplicate of https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1004475? Or vice/versa?

Revision history for this message
Jean-Pierre Rupp (xenog) wrote :

I have a computer with an nVidia video card, using proprietary drivers. I experience this issue.

I have to add that after a suspend/resume cycle my videos playback slowly if they are enlarged, but normally when there's a 1:1 relation between display pixels and video pixels, meaning that hardware accelerated video resizing isn't working properly. I hope this information may be useful to diagnose this issue.

Reloading compiz fixes the issue.

Revision history for this message
Eduardox123 (ebeduardox06-deactivatedaccount) wrote :

This affects ubuntu 12.10

Changed in unity:
status: New → Confirmed
Revision history for this message
Valentin (valentin-stn) wrote :

This affects also Ubuntu 13.04, it could be the same bug as

- https://bugs.launchpad.net/ubuntu/+source/unity/+bug/892544
- https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/887993
- https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1004475
- https://bugs.launchpad.net/compiz/+bug/1113325

and maybe there are more of them. In the other Bugreports it seems, that the Gallium radeon driver has something to do with the problems.

Revision history for this message
Valentin (valentin-stn) wrote :

Added "compiz" to affected projects, because after "compiz --replace" the framerate is okay again.

Changed in compiz (Ubuntu):
status: New → Confirmed
Revision history for this message
dirkd (dirk-dierickx) wrote :

Same problem started for me after upgrade from 12.10 to 13.04 on a Acer Travelmate 7740 with Intel GPU.

Revision history for this message
penalvch (penalvch) wrote :

Pavel Rojtberg, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please confirm this issue exists with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ . If the issue remains, could you please run the following command from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

If reproducible, could you please provide the information following https://wiki.ubuntu.com/DebuggingKernelSuspend ?

If reproducible, could you also please test the latest upstream kernel available (not the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.3.13-rc6

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

no longer affects: compiz (Ubuntu)
no longer affects: xorg (Ubuntu)
affects: unity → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
importance: Undecided → Medium
tags: added: needs-kernel-logs needs-upstream-testing regression-potential resume suspend
removed: performance
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.