I'm not sure if spindown is working like it should be. I got it installed, but well..I'm newbie.. :)
1. If I reboot mybook, it's on 120secs if no reading happens, then it spins down. That part is like it shoud be. WAITTIME=120
2. This is what bugs me. After spindown I'm reading mybook, it spins up, I can hear that. But then it won't Spindown after 120secs. If I check out the log of configuration, it goes almost 400-500secs before it spins down again.
Maybe that is because I don't understand the basic idea of WAITTIME and MAXWAIT. If waittime is two minutes, it waits that time to spin down. But what's the purpose of MAXWAIT?
Here's the lines from instructions:
MAXWAIT (= the amount of time in seconds of disk inactivity to wait at most, the time is changing dynamically between WAITTIME and MAXWAIT) accordingly. Why does it want to spin disk up after 1200secs..why can't it stay down and wake after user tries to read mybook.
# Disk(s) to monitor.
# If you have only one disk, leave DISK2 empty
# hdparm location. If you are using the optware version,
# you have to change this into /opt/sbin/hdparm
# The base "no reads" wait time (in seconds). This is multiplied by
# the backoff factor to determine the real "no reads" wait time.
# The maximum "no reads" wait time (in seconds).
# This also limits the backoff factor: the backoff factor cannot increase
# above a value that makes the "no reads" wait time larger than MAXWAIT.
# Default is 1200 seconds.
# Time (in seconds) between polls to see if the disk is active again.
# Default is 30 seconds.
# Output levels. Level 2 is verbose, level 1 is normal output.
# Enable all levels you would like to see.
# Decide which output to use. Useful if run in daemon mode
# echo or logger
# output1 is logged to normal, output2 to debug syslog
# Is PID of this shell logged?
#OUTPUTTAG="$(basename — $0)[$$]"
#OUTPUT1="logger -t $OUTPUTTAG -p user.notice —"
#OUTPUT2="logger -t $OUTPUTTAG -p user.debug —"
# Scripts to run whe the disk(s) are spinned up / down
# If you dont need this functionality, just leave them as they are.
# The existence of these files is checked before they are run
# Just make sure that the files are executable, if they exist
echo 255 > /sys/class/leds/wdc-leds:power/brightness
echo 100 > /sys/class/leds/wdc-leds:fuel-gauge/brightness
echo 0 > /sys/class/leds/wdc-leds:power/brightness
echo 0 > /sys/class/leds/wdc-leds:fuel-gauge/brightness
# End of configuration. You shouldn't have to change lines below this :)