suspend doesn’t work most of the time

Bug #610048 reported by Bogdan Butnaru
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi! I’ve been having trouble with suspend ever since I updated to 10.4. (IIRC 9.10 worked OK.)

When I click suspend, things start as normal: the screen goes dark after a few seconds. After a few seconds more, the screen goes to text mode; there’s a cursor blinking in the top-left corner. It stays like this for 20–30 seconds, then a message flashes for an instant, and then I get the password prompt from the screensaver (just the blank screen, actually).

This happens almost every time at the first suspend attempt. Most of the time if I try again it works, but sometimes it takes more tries. (More often I give up and just shut down.)

Today I managed to capture the message on camera:

***************
[24591.910011] Freezing of tasks failed after 20.00 seconds (1 tasks refusing to freeze):
[24591:922041] gvfsd-trash
_ (←cursor)

(much lower on the screen:)

[illegible] ethernet failed (←on the right edge)

***************

I should mention that I’m using SSHFS to keep some parts of my fileserver mounted most of the time. SSHFS tends to interfere with suspend (and the network going up and down), so I have a little script in /etc/network/if-{down|up}.d that mounts and unmounts everything when the network status changes. I mention this because I noticed that the trash view is a bit slow whenever the SSHFS mounts are on (presumably because it has to search for trash there, too). Since the mountpoints go away when the network is turned off right before suspend, gvfsd-trash might be doing something that just takes too long. Perhaps retries work because the remote filesystems don’t have time to get mounted yet, or something similar.

I’ve been looking for suspend logs and system messages but couldn’t find anything. Also, I tried the mainline kernel a while ago (because of another issue), and it didn’t seem to affect this. Maybe someone has ideas for further debugging?

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-24-generic 2.6.32-24.38
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-24.38-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: bogdanb 1774 F.... pulseaudio
 /dev/snd/controlC0: bogdanb 1774 F.... pulseaudio
 /dev/snd/controlC1: bogdanb 1774 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Headset'/'Logitech Logitech Wireless Headset at usb-0000:00:1d.0-2, full speed'
   Mixer name : 'USB Mixer'
   Components : 'USB046d:0a12'
   Controls : 4
   Simple ctrls : 2
Card1.Amixer.info:
 Card hw:1 'Q9000'/'Logitech, Inc. QuickCam Pro 9000 at usb-0000:00:1d.7-6, high speed'
   Mixer name : 'USB Mixer'
   Components : 'USB046d:0990'
   Controls : 2
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'Mic',0
   Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
   Capture channels: Mono
   Limits: Capture 0 - 3072
   Mono: Capture 3072 [100%] [30.00dB] [on]
Card2.Amixer.info:
 Card hw:2 'Intel'/'HDA Intel at 0xf9ff8000 irq 22'
   Mixer name : 'Realtek ALC1200'
   Components : 'HDA:10ec0888,104382fe,00100101'
   Controls : 40
   Simple ctrls : 22
Date: Mon Jul 26 13:39:50 2010
EcryptfsInUse: Yes
HibernationDevice: RESUME=/dev/sdb2
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: System manufacturer P5Q-PRO
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-24-generic root=/dev/sda1 ro vga=892
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.1
RfKill:

SourcePackage: linux
UserAsoundrc:
 # ALSA library configuration file

 # Include settings that are under the control of asoundconf(1).
 # (To disable these settings, comment out this line.)
 </home/bogdanb/.asoundrc.asoundconf>
WpaSupplicantLog:

dmi.bios.date: 11/04/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1501
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5Q-PRO
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1501:bd11/04/2008:svnSystemmanufacturer:pnP5Q-PRO:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5Q-PRO:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: P5Q-PRO
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Bogdan Butnaru (bogdanb) wrote :
Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

By the way, this bug report was filed right after a failed suspend. I notice CurrentDmesg.txt (which apport was nice enough to add) has quite a bit of messages in it, but I can’t quite decode them...

Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

I just tried suspend three more times after this report, and the same thing happened. So the fourth time I unmounted the SSHFS folders by hand, and the suspend worked. I’m not sure if it’s a coincidence or not. Suspend does work after some tries even if I don’t do that. And at least it looks like the scripts are working, since my mountpoints appear and go away as they should.

Brad Figg (brad-figg)
tags: added: acpi-table-checksum
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
tags: removed: regression-potential
tags: added: natty
Revision history for this message
KarlRelton (karllinuxtest-relton) wrote :

I'm failing to suspend due to gvfsd-trash. Note in my case I am using nfs mounts. I haven't tried disabling these and seeing if suspend is any better.

Revision history for this message
penalvch (penalvch) wrote :

Bogdan Butnaru, thank you for reporting this and helping make Ubuntu better. 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 provide the information following https://wiki.ubuntu.com/DebuggingKernelSuspendHibernateResume ? As well, can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ . However, note you can only test Suspend, not Hibernate, when using a LiveCD. If the issue remains, run the following command in the development release from a Terminal (Applications->Accessories->Terminal) as it will automatically gather and attach updated debug information to this report.

apport-collect -p linux <BUGNUMBER>

Additionally, if you could try to reproduce this with the upstream mainline kernel that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.

Please let us know your results. Thanks in advance.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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