Re: Suspend to disk

Mark Taylor <[email protected]>
Newsgroups gmane.linux.hardware.sony
Message-ID <[email protected]>
> 
> Apologies if this has been asked before.
> 
> I'm running 2.4.20-9_ajg4, and want to be able to suspend to disk
> (hibernate).
> 
> I'm really unsure what I'm required to do, any assistance would be
> appreciated.
> 
> Regards,
> 
> Jason.
> 

I've recently got it to work somewhat reliably on a Z1A,
using the 2.4.21-rc4-laptop1 (from linux kernel for laptops)
kernel.  

I had to add: "resume=/dev/hda6"
as a boot option to the kernel, and /dev/hda6 is my swap partition
which is 50% larger than total RAM.  

I run this script (probably RH9 specific) to put it to sleep:

  umount /proc/bus/usb
  /etc/init.d/network stop
  /etc/init.d/pcmcia stop
  /etc/init.d/xinetd stop
  rmmod ehci-hcd
  rmmod usb-uhci
  echo -n 4 > /proc/acpi/sleep

and this script after a sucessfull resume:

/etc/init.d/network start
/etc/init.d/pcmcia start   
/etc/init.d/xinetd start
hwclock --hctosys

Mark
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.