lkml.org 
[lkml]   [1998]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: APM suspend/restore doesn't save IDE disk settings ?
Date
> 
> 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. /\

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.082 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site