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

Russell King (rmk@arm.linux.org.uk)
Mon, 17 Jun 2002 09:33:31 +0100


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
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/