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

Re: Suspend - no resume



Hi

thanks for all the suggestions - i everything.

after noticing that it wouldn't suspend without X either, i figured it
had to be something i still wasn't missing or not doing.

i had placed my suspend script for the initrd image creation
within /etc/mkinitrd/scripts and (to be sure - clutching at straws at
this point) in /etc/mkinitramfs/scripts/local-premount. it seems that on
running dpkg -i kernel-image-xxx.deb it wasn't executing the script and
adding the required echo > /proc/suspend2/do_resume to the initrd image.

i finally got it to work by creating the initrd image manually after
installing the new kernel with suspend2 enabled. so after installing i
ran mkinitrd on the newly installed kernel manually and all is now well.

the contents of my suspend2 script under /etc/mkinitrd/scripts is below

#!/bin/sh
cat <<EOF >>$INITRDDIR/script
if [ -z "\$noresume" ]; then # be careful with the 'dollar' sign
    echo > /proc/suspend2/do_resume
    umount -n devfs
    umount -n proc
fi
EOF

anyway, working now. thanks heaps for the suggestions. it was a big
help. whole process was a little untidy and messier than expected but
got there in the end.

has anyone had any issues with installing kernel images and having any
init scripts run for initrd?

anyway... thanks again.

Takis
 

i finally got it to work by 

On Thu, 2006-05-25 at 16:48 +1000, Takis Diakoumis wrote:
> Hi
> 
> i'm trying to get suspend2 working on my thinkpad r52. i'm using debian
> etch with a vanilla kernel from kernel.org and custom config for this
> particular laptop.
> 
> following the instructions from suspend2.net i recompiled my kernel with
> suspend2 and installed hibernate etc. i modified hibernate.conf with
> relevant options. 
> 
> suspend itself seems to work ok. the machine begins to create the
> restore image, i get the text progress bar etc and then it shuts down as
> expected. however when i resume it goes through a normal boot process as
> opposed to restoring its previous state.
> 
> i have tried it with suspend to disk using both swap and a file. the
> result is exactly the same for both.
> 
> one thing that i'm unsure of is the creation of the initrd image.
> everything i have read regarding this setup for debian is different. i
> have tried the script from suspend2.net, and also the 2 (or 3) different
> script from the same sites wiki at
> http://wiki.suspend2.net/DistroAndHardwareSetup/DebianInitrd
> 
> the only suspend2 output i get with dmesg is as follows:
> Suspend2 Core.
> Suspend2 Compression Driver loading.
> Suspend2 Encryption Driver loading.
> Suspend2 Swap Writer loading.
> Suspend2 FileWriter loading.
> 
> my grub boot options seem to be correct:
> kernel  /vmlinuz-2.6.16.18-r52-1 root=/dev/sda3
> resume2=file:/dev/sda5:0xeac000 libata.atapi_enabled=1 ro vga=791 
> 
> the above was my last stuffing around with a suspend file - again, have
> tried suspend to swap with relevant changes made to the config and boot
> stuff and the result is the same.
> 
> no errors are generated. i'm stumped and spent most of the day fiddling
> with this.
> 
> some help would be most appreciated.
> thanks
> 
> Takis
> 
> 
> 



Reply to: