[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hibernate / ACPI suspend: help needed



Hi,

On Tuesday 22 March 2005 14:25, Rurik Wahlin wrote:
> I've installed debian pure 64 on a laptop (acer Aspire 1522WLMi) a few
> weeks ago. My previous experience with linux are pretty limited, but I've
> managed to get most of the system working. Now I'm trying to get hibernate
> to work on it wothout much success. I first tried the suspend2 patch on
> kernel 2.6.10, giving compilation errors, but later a post on their
> website said that it's not supposed to work. I'm now trying with the older
> ACPI suspend. I compile the kernel (2.6.8, now, I had additional problems
> with 2.6.10) setting:

> CONFIG_SOFTWARE_SUSPEND=y
>
> I run the hibernate script configured for suspend to disk: UseACPISleep 4
>
> The computer shuts down without any visual errormessages, (the hibernate
> log file is also not indicating any problems), but when starting the
> computer using grub:

> initrd          /initrd.img-2.6.8

The problem is that vanilla's swsusp can't handle modular IDE yet, so you need 
this stuff compiled-in. Software Suspend2 can handle that, in that case you 
have to modify your initrd do initiate resume after IDE modules have been 
loaded, but Software Suspend2 does not run on x64 yet, it's work in progress.

> it starts as if no hibernate had been performed except for the lack of a
> swap partition.

That's because the swappartition contains the memory image. It's highly 
recommended that you add mkswap to your init scripts, otherwise your risking 
severe filesystem corruption of you suspend, then boot a non-suspend aware 
kernel and then try to resume afterwards. That's because the filesystem is in 
inconsistent state during hibernate, booting and mounting it will modify it, 
but a resumed kernel won't notice that it has been booted and modified in the 
meantime and will thus cause corruption. 

> Any sugestions? Am I doing something wrong? Has anyone managed to get the
> suspend function to work? I really need it.

Try to get rid of the initrd, i.e. compile in everything necessary to get the 
system booting, and it should work.

Kind regards,

sebas
-- 
  http://vizZzion.org   |   GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Mohandas K. Gandhi often changed his mind publicly. An aide once asked him how 
he could so freely contradict this week what he had said just last week. The 
great man replied that it was because this week he knew better.

Attachment: pgpq2miyRVX_R.pgp
Description: PGP signature


Reply to: