Re: APM suspend/restore doesn't save IDE disk settings ?

Perry Harrington (pedward@sun4.apsoft.com)
Mon, 26 Jan 1998 12:59:00 -0800 (PST)


>
> Hi,
>
> with Linux 2.0.32 compiled with full APM support using
>
> # hdparm -m 16 -c 1 -W 1 -u 1 /dev/hda
>
> I get
>
> # hdparm -tT /dev/hda
> /dev/hda:
> Timing buffer-cache reads: 32 MB in 1.20 seconds =26.67 MB/sec
> Timing buffered disk reads: 16 MB in 3.57 seconds = 4.48 MB/sec
>
>
> but after suspending and resuming the notebook I only get
>
> # hdparm -tT /dev/hda
> /dev/hda:
> Timing buffer-cache reads: 32 MB in 1.20 seconds =26.67 MB/sec
> Timing buffered disk reads: 16 MB in 4.93 seconds = 3.25 MB/sec
>
> and I have to run hdparm -m 16 -c 1 -W 1 -u 1 /dev/hda again

You need to add '-k 1' to your command line as well. Your IDE drive will lose those
settings unless you set the "keep over reset" flag. It'll default to the original
settings even during normal operation (reset caused by error, etc)

> to get the original performace.
>
>
> is this correct behaviour ?
> is it possible to run a shell script after APM resume (without PCMCIA devices) ?

Just set the keep over reset flag, and it'll retain the settings forever.

>
>
> Harald

-- 
Perry Harrington       Linux rules all OSes.    APSoft      ()
email: perry@apsoft.com 			Think Blue. /\