public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bart Samwel <bart@samwel.tk>
To: Sau Dan Lee <danlee@informatik.uni-freiburg.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Patch: doc. bug: Linux 2.6.6 laptop-mode
Date: Tue, 11 May 2004 12:34:07 +0200	[thread overview]
Message-ID: <40A0AC1F.2050209@samwel.tk> (raw)
In-Reply-To: <xb7pt9bqojn.fsf@savona.informatik.uni-freiburg.de>


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

      reply	other threads:[~2004-05-11 10:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40A0AC1F.2050209@samwel.tk \
    --to=bart@samwel.tk \
    --cc=danlee@informatik.uni-freiburg.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox