Re: Resume from swsusp stopped working with 2.6.14 and 2.6.15-rc1

Bjørn Mork
2005-11-22T18:41:46Z

Pavel Machek <pavel@ucw.cz> writes:

>> A failed resume is a near catastrophy if you use and trust swsusp. And
>> how could it ever be useful if you don't?
>
> Failed resume is only as bad as powerfail.

Sure. I can live with a failed resume. I just don't see it as a fix
for anything. IMHO it's the worst possible option available when
trying to resume, so it should not be chosen too easily.

(I don't really have any powerfail situations as long as swsusp works.
I use an ACPI alarm to suspend when remaing battery charge is low)

>> Maybe that even would give me a chance to fix some hardware problem
>> causing the timeout, and then retry the resume.
>
> ..while doing resume few times, trying to change hw config to make it
> resume is _way_ more dangerous.

I guess it would be. But then, what are the chances it would make the
situation any worse? Probably never would work, but at least I would
get the satisfaction of *trying* :-)

Falling back to a clean reboot would still be an option if everything
else failed.

That said, until 2.6.14 I had never ever experienced a failed resume
with this laptop. So I don't really believe it would happen again,
given that the timout doesn't continue to cause unnecessary failures.

Thanks for all the good work! I've been running Linux on a number of
laptops since 1998 and am most impressed by the swsusp evolution the
last few years. Things weren't too bad when APM used to work and
"lots of RAM" meant 80GB, but today I don't think I could use a laptop
without swsusp.

Bjørn