Subject: Re: how to spin down a harddisk?
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 08/02/2000 14:17:15
On Wed, Aug 02, 2000 at 01:01:24PM +0200, Hubert Feyrer wrote:
> On Wed, 2 Aug 2000, Atsushi Onoe wrote:
> > Actually I don't run apm daemon, and I add 'noatime' option as well as
> > softupdate for mounting every file system and also add 'nodevmtime' option
> > for root file system.  Note that with a 'nodevmtime' option, you cannot
> > get a useful updated idle time for 'w' nor 'finger'.
> 
> That's what I have, thanks for explaining me what the options do, though.
> Right now, I have the following in /etc/apm/{line,battery}:
> 
> 
> 	statefile=/tmp/apmstate
> 
>         # Running on battery...
>         state=$0
>         if [ -f $statefile ]; then
>                 oldstate=`cat $statefile`
>         else
>                 oldstate=
>         fi
>         if [ "$oldstate" != "$state" ]; then
>                 noise $S/KDE_Window_DeIconify.wav
>                 mount -u -o noatime,nodevmtime -a
>                 atactl wd0 setstandby 5
>                 atactl wd0 setidle 5

Both idle and standby ... what happen if you use only one of them ?
I never tried to use both at the same time :)

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--