[Intrepid] Suspend fails when telling pm-utils to use uswsusp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pm-utils (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Intrepid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: pm-utils
After setting SLEEP_MODULE in /etc/pm/
The reason for this bug is that the uswsusp code in pm-utils tries to use s2ram to suspend, which does not exist, because its build was disabled (see Bug #134238). In previous versions, pm-utils fell back onto the kernel method when it could not find s2ram. This bug appeared in Bug #267141 when pm-utils auto-detected uswsusp and used it instead of the kernel method. The resolution for Bug #267141 in a patch provided by James Westby was to remove the auto-detection code completely, but that does not fix the issue I have highlighted.
And finally, there are two possible fixes (which I can see) for this:
1. Patch /usr/lib/
2. Re-enable the s2ram build in uswsusp
Hi,
I think your patch is a sensible one. If we know s2ram isn't going
to be available we shouldn't bother checking for it.
I haven't reviewed the patch in detail yet, but I think it may be a
little too late for the release. I do however think it makes a reasonable
candidate for an SRU.
I'm subscribing the sponsors for main so that someone appropriate can
review the change.
Thanks,
James
It does break it for those that have recompiled uswsusp to have
an s2ram binary, but they will be an even smaller minority.