public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Patch: doc. bug: Linux 2.6.6 laptop-mode
@ 2004-05-11  9:51 Sau Dan Lee
  2004-05-11 10:34 ` Bart Samwel
  0 siblings, 1 reply; 2+ messages in thread
From: Sau Dan Lee @ 2004-05-11  9:51 UTC (permalink / raw)
  To: Bart Samwel; +Cc: linux-kernel


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@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Patch: doc. bug: Linux 2.6.6 laptop-mode
  2004-05-11  9:51 Patch: doc. bug: Linux 2.6.6 laptop-mode Sau Dan Lee
@ 2004-05-11 10:34 ` Bart Samwel
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Samwel @ 2004-05-11 10:34 UTC (permalink / raw)
  To: Sau Dan Lee; +Cc: linux-kernel


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
>  ---------------
> 
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-11 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-11  9:51 Patch: doc. bug: Linux 2.6.6 laptop-mode Sau Dan Lee
2004-05-11 10:34 ` Bart Samwel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox