Re: Patch: doc. bug: Linux 2.6.6 laptop-mode
From: Bart Samwel
Date: Tue May 11 2004 - 05:36:39 EST
Looks good to me, thanks!
--Bart
Sau Dan Lee wrote:
> 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
> ---------------
>
>
>
-
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/