On Wed, 2005-06-08 at 08:53 -0700, Mark Knecht wrote: > On 6/8/05, Remy Blank <[EMAIL PROTECTED]> wrote: > > Mark Knecht wrote: > > > One setting I noticed rereading the config file was this one: > > > > > > <SNIP> > > > Enable laptop mode always, not just when on battery? > > > # (This will still disable laptop mode when the battery almost runs out.) > > > LAPTOP_MODE_ALWAYS_ON=0 > > > <SNIP> > > > > > > Since it's a desktop machine it would seem that maybe laptop mode is > > > not totally operational since I would never be on battery? I'm trying > > > changing this to '1' and seeing what happens. > > > > You can check if laptop_mode is enabled with: > > > > cat /proc/sys/vm/laptop_mode > > > > My desktop says 0 (disabled), and my laptop says 2 (enabled, but no idea > > why it's not 1). > > Mine says '2' also: > > myth11 root # cat /proc/sys/vm/laptop_mode > 2 > myth11 root #
Mine says 0 (cause I'm on AC right now) on Battery it changes to 2 /usr/sbin/laptop_mode case "$KLEVEL" in "2.4") echo 1 > /proc/sys/vm/laptop_mode echo "30 500 0 0 $AGE $AGE 60 20 0" > /proc/sys/vm/bdflush ;; "2.6") echo "$LM_SECONDS_BEFORE_SYNC" > /proc/sys/vm/laptop_mode where LM_Seconds is 2 > /dev/hda3 on / type ext3 (rw,noatime,commit=600) > So this should be spinning the drive up every 10 minutes? I don't > think that's happening but I'll watch it carefully for another 30 > minutes. The 10 minutes is a guide only. It just tries to collect all the writes and make it write only once. Try this script if you want to find out what's happening or how long is the spinup/down. $ cat HDtest.sh #!/bin/sh c0=0 c1=0 n=0 f0=standby d0=`date +%s` while true do f1=`hdparm -C /dev/hda | grep 'drive state' | awk '{print $4}'` if test $f0 != $f1 then d1=`date +%s` c=`expr $d1 - $d0` if test $f0 = standby then c0=`expr $c0 + $c` else c1=`expr $c1 + $c` n=`expr $n + 1` fi echo "[`date +%X`] $c seconds in $f0 mode. ($c0 s standby/$c1 s active/$n spinups)" f0=$f1 d0=$d1 fi sleep 1 done -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 00:10:54 up 12:23, 10 users, load average: 0.56, 0.62, 0.56 -- gentoo-user@gentoo.org mailing list