resume hangs late in the process appear working and yet report failure on next reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Medium
|
Andy Whitcroft | ||
pm-utils (Ubuntu) |
Invalid
|
Medium
|
Andy Whitcroft |
Bug Description
If a resume hangs late enough in the resume cycle then the resume may appear to the user in front of the machine to have completed successfully. Their screen saver may appear, they can login and use the machine quite normally. However the suspend really is not complete and really is broken. Any attempt to suspend again will apparently do nothing (other than perhaps lock the screen). When the user next reboots the suspend will be detected as failed and reported. Although accurate this is likely to make the reporting user think it is a false report.
We really need to detect the difference and report it differently to prevent it being confusing. It also provides us with a good opportunity to record more information as the machine is likely functional. This implies that the original report which I am hijacking here likely is showing a real failure. But we are unlikely to figure out what from this report as the information is long gone by the time the user sees the problem.
===
I think this is actually a false positive, but I'm reporting it as I think that would indicate a bug as well. This report was created on a fresh boot after a successful shutdown:
-rw------- 1 root root 520082 2009-02-27 08:13 /var/crash/
I don't think there was any failure in this case.
ProblemType: KernelOops
Annotation: This occured during a previous suspend and prevented it from resuming properly.
Architecture: amd64
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/share/
Failure: suspend/resume
InterpreterPath: /usr/bin/python2.5
MachineType: LENOVO 6465CTO
Package: linux-image-
ProcAttrCurrent: unconfined
ProcCmdLine: User Name=UUID=
ProcCmdline: /usr/bin/python /usr/share/
ProcEnviron: PATH=(custom, no user)
ProcVersionSign
SourcePackage: linux
Tags: resume suspend
Title: [LENOVO 6465CTO] suspend/resume failure
UserGroups:
Changed in linux: | |
importance: | Undecided → Medium |
status: | New → In Progress |
assignee: | nobody → apw |
Changed in apport: | |
importance: | Undecided → Medium |
status: | New → In Progress |
tags: | added: test-suspend-seconds |
description: | updated |
One suggestion might be to clean up the pm-utils state file during shutdown, so that if the user reboots or shuts down cleanly, it won't trigger a report like this.
However, we still need to find out how I ended up with a state file indicating the system was suspending, when it was clearly up and running.