Re: Suspend to disk

Frank Edwards <[email protected]>
Newsgroups gmane.linux.hardware.sony
Message-ID <[email protected]>
On Sun, 29 Jun 2003 [email protected] wrote:
> 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.  

Why do you say "somewhat reliably"?  What are the symptoms of the
failures?  How often does it fail?

Suspend is an important feature for me, because I often use my laptop
while sitting in airports and I'd love to be able to just close the lid
and slide it into my bag.  As it is, I have to wait for everything to shut
down:  shut down VMware (suspending VMware running XP seems to result
in weirdness in XP when it's resumed), then the rest of the box.

> 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.  

Was this a requirement of the swsuspend stuff or are you just reporting
your configuration?  My GRX570 has 512MB of ram in it, but I usually run
it without paging space.  If I decide to run VMware, then I enable a
filesystem-based paging space prior to VMware and turn it off afterward.
I hate having partitions reserved for something I never use. :-)

I'm betting that I can't use filesystem-based paging space, either. :-(

> 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

It probably doesn't matter because you're just killing the daemons, but it
would probably be best to shut down the daemons in the reverse of the
order they were started in.  So you'd be better off with a different
order:

    xinetd
    pcmcia
    network

> 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

Thanks for the note, Mark.  Some day when I'm sitting next to a high-speed
link, I'll try grabbing that kernel and test it out on my GRX570.
-- 
Frank J. Edwards       Edwards & Edwards Consulting
Voice:  (813)991-5490  http://www.eec.com/
Fax:    (813)991-6074  Training, Contract Programming, and Contract SysAdmin
Email:  [email protected]  "Training -- creating the employee base of the future"
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.