Re: [off topic - RFC] APM suspend + hdparam

Russell King
2002-06-17T08:33:36Z

On Mon, Jun 17, 2002 at 10:24:03AM +0200, Soewono Effendi wrote:
> So I tried this:
> apm -s & hdparm -Y /dev/hda &

If your APM BIOS doesn't spin down the disks when entering standby/suspend,
your APM BIOS implementation is broken (or if its a desktop machine, maybe
you didn't configure the APM BIOS settings correctly?)

You might try: hdparm -S 12 /dev/hda && apm -s; hdparm -S 0 /dev/hda

This should put a 1 minute inactivity timeout on the drive, then suspend
the machine. 1 minute later, the drive should spin down. When you resume,
the following hdparm will turn off the inactivity timeout.

> I would like to call this feature HOT SUSPEND(TM) :)

No coding required. No extra commands required with a non-broken APM bios.

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux