Commit 15c2165e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] laptop-mode documentation fix

From: Sau Dan Lee <danlee@informatik.uni-freiburg.de>

The script /etc/acpi/actions/battery.sh in the document doesn't run,
because of a wrong name.
parent c793ef32
...@@ -485,7 +485,7 @@ status=`awk '/^state: / { print $2 }' /proc/acpi/ac_adapter/AC/state` ...@@ -485,7 +485,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 to 2 hours"
/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
#echo -n $ACAD_CPU:$ACAD_THR > /proc/acpi/processor/CPU0/limit #echo -n $ACAD_CPU:$ACAD_THR > /proc/acpi/processor/CPU0/limit
...@@ -493,7 +493,7 @@ case $status in ...@@ -493,7 +493,7 @@ case $status in
;; ;;
"off-line") "off-line")
echo "Setting HD spindown to 20 seconds" echo "Setting HD spindown to 20 seconds"
/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
#echo -n $BATT_CPU:$BATT_THR > /proc/acpi/processor/CPU0/limit #echo -n $BATT_CPU:$BATT_THR > /proc/acpi/processor/CPU0/limit
......
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