Patch: doc. bug: Linux 2.6.6 laptop-mode

From: Sau Dan Lee
Date: Tue May 11 2004 - 04:54:58 EST



The script /etc/acpi/actions/battery.sh in the document doesn't run,
because of a wrong name.


--- linux-2.6.6/Documentation/laptop-mode.txt 2004/05/11 09:46:04 1.1
+++ linux-2.6.6-laptopmode-docfix/Documentation/laptop-mode.txt 2004/05/11 09:48:17 1.2
@@ -466,29 +466,29 @@
ACAD_HD=244
BATT_HD=4

# ac/battery event handler

status=`awk '/^state: / { print $2 }' /proc/acpi/ac_adapter/AC/state`

case $status in
"on-line")
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 -B 255 /dev/hda > /dev/null 2>&1
#echo -n $ACAD_CPU:$ACAD_THR > /proc/acpi/processor/CPU0/limit
exit 0
;;
"off-line")
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 -B 1 /dev/hda > /dev/null 2>&1
#echo -n $BATT_CPU:$BATT_THR > /proc/acpi/processor/CPU0/limit
exit 0
;;
esac
---------------------------/etc/acpi/actions/battery.sh END-------------------------------------------

Monitoring tool
---------------



--
Sau Dan LEE ???(Big5) ~{@nJX6X~}(HZ)

E-mail: danlee@xxxxxxxxxxxxxxxxxxxxxxxxxx
Home page: http://www.informatik.uni-freiburg.de/~danlee

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/