Commit 6dc50ae9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] No interpretation of HD spindown timeout in laptop mode ACPI binding script.

From: Bart Samwel <bart@samwel.tk>

Currently the ACPI binding script in the Laptop Mode doc always says "20
seconds" and "2 hours" for the timeouts it uses.  This is incorrect if the
user changed the config values, so we print something more general.
parent 625ba457
...@@ -502,7 +502,7 @@ status=`awk '/^state: / { print $2 }' /proc/acpi/ac_adapter/AC/state` ...@@ -502,7 +502,7 @@ status=`awk '/^state: / { print $2 }' /proc/acpi/ac_adapter/AC/state`
case $status in case $status in
"on-line") "on-line")
echo "Setting HD spindown to 2 hours" echo "Setting HD spindown for AC mode."
/sbin/laptop_mode stop /sbin/laptop_mode stop
/sbin/hdparm -S $ACAD_HD /dev/hda > /dev/null 2>&1 /sbin/hdparm -S $ACAD_HD /dev/hda > /dev/null 2>&1
/sbin/hdparm -B 255 /dev/hda > /dev/null 2>&1 /sbin/hdparm -B 255 /dev/hda > /dev/null 2>&1
...@@ -510,7 +510,7 @@ case $status in ...@@ -510,7 +510,7 @@ case $status in
exit 0 exit 0
;; ;;
"off-line") "off-line")
echo "Setting HD spindown to 20 seconds" echo "Setting HD spindown for battery mode."
/sbin/laptop_mode start /sbin/laptop_mode start
/sbin/hdparm -S $BATT_HD /dev/hda > /dev/null 2>&1 /sbin/hdparm -S $BATT_HD /dev/hda > /dev/null 2>&1
/sbin/hdparm -B 1 /dev/hda > /dev/null 2>&1 /sbin/hdparm -B 1 /dev/hda > /dev/null 2>&1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment