Your message dated Mon, 18 Aug 2003 21:14:24 -0400
with message-id <[EMAIL PROTECTED]>
and subject line done
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 May 2003 09:14:26 +0000
>From [EMAIL PROTECTED] Wed May 21 04:14:19 2003
Return-path: <[EMAIL PROTECTED]>
Received: from guerard.net1.nerim.net (corbeaunoir.org) [62.212.108.247] 
        by master.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 19IPfu-00019t-00; Wed, 21 May 2003 04:14:18 -0500
Received: from yakkuru.nulle.part (unknown [172.16.16.98])
        by corbeaunoir.org (Postfix) with ESMTP
        id BF35C4B901; Wed, 21 May 2003 11:14:16 +0200 (CEST)
Received: by yakkuru.nulle.part (Postfix, from userid 1000)
        id CA70010EF7D; Wed, 21 May 2003 11:14:09 +0200 (CEST)
Date: Wed, 21 May 2003 11:14:08 +0200
From: Jean-Philippe =?iso-8859-1?Q?Gu=E9rard?= <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: longrun should provide a default infrastructure to respond to APM 
events
Message-ID: <[EMAIL PROTECTED]>
Reply-To: Jean-Philippe =?iso-8859-1?Q?Gu=E9rard?= <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="HcAYCG3uE/tztfnV"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Reportbug-Version: 2.10.1
X-Accept-Language: fr en
X-Operating-System: Linux yakkuru 2.4.21-pre7 
User-Agent: Mutt/1.5.4i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Status: No, hits=-12.3 required=4.0
        tests=BAYES_10,HAS_PACKAGE,USER_AGENT_MUTT
        autolearn=ham version=2.53-bugs.debian.org_2003_05_20
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_05_20 
(1.174.2.15-2003-03-30-exp)


--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Package: longrun
Version: 0.9-7
Severity: wishlist
Tags: patch

Please find attached 2 files that can be used to provide automatic 
longrun tuning in reaction to APM events.

default-longrun shall be installed to /etc/default/longrun
event.d-longrun shall be installed to /etc/apm/event.d/longrun

Installing these 2 files will do nothing, unless the user 
customize /etc/default/longrun to enable automatic longrun setup.

This script has been tested and is working reasonnably well on my 
laptop.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux yakkuru 2.4.21-pre7 #1 dim mai 11 12:10:52 CEST 2003 i686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED]

Versions of packages longrun depends on:
ii  libc6                         2.3.1-17   GNU C Library: Shared libraries an

-- no debconf information


-- 
Jean-Philippe Guérard -- mailto:[EMAIL PROTECTED]

--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=default-longrun

# Configuration file for /etc/apm/event.d/longrun
#
# This file will enable you to set up longrun depending on APM events.

# If this variable is set to 1, APM events will trigger a change in
# longrun settings.

#LONGRUN_ENABLE="1"

# Performance mode
#
# Used to set the longrun performance window when running on
# AC power.
#
# Use "longrun -l" to check the available performance levels

PERFORMANCE="0 100"

# Economy mode
#
# Used to set the longrun performance window when running on
# battery.
#
# Use "longrun -l" to check the available performance levels

ECONOMY="0 70"

# Low battery mode
#
# Used to set the longrun performance window when the system
# battery is running out.
#
# Use "longrun -l" to check the available performance levels

LOW_BATTERY="0 0"

# Under which battery charge do we consider the battery charge
# being low (you also need to update /etc/default/apmd).

#BATTERY_THRESHOLD="10"

# Debug mode
#
# If you set DEBUB to "1", longrun change will be logged to syslog.

#DEBUG="1"

--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="event.d-longrun"

#! /bin/sh

# Longrun setup in response to apm events
#
# Do not make change to this file, use /etc/default/longrun to tune
# this script

PATH=/sbin:/usr/sbin:/bin:/usr/bin

LONGRUN_BIN=/usr/bin/longrun
DEFAULTS=/etc/default/longrun

# Default values - overiden by /etc/default/longrun

LONGRUN_ENABLE="0"
PERFORMANCE="0 100"
ECONOMY="0 30"
LOW_BATTERY="0 0"
BATTERY_THRESHOLD="10"
DEBUG="0"

# longrun settings update function

set_longrun () {
[ "$DEBUG" -eq 1 ] && logger -t longrun "$1; perf. window: $2; flag: $3"
"$LONGRUN_BIN" -s $2
"$LONGRUN_BIN" -f $3
}

# Is APM available

apm_available || exit 0

# Source the default values

if [ -e "$DEFAULTS" ]; then
    . "$DEFAULTS"
fi

# Should we go on?

[ "$LONGRUN_ENABLE" = "1" ] || exit 0

# Check the APM kernel driver version, to see if we
# understand the content of /proc/apm. Then, get the
# remaining battery charge from /proc/apm.

# See /usr/src/linux/arch/i386/kernel/apm.c

APM_VERSION=`cat /proc/apm | cut -d " " -f 1`

if [ "$APM_VERSION" = "1.16" ] ; then
    REMAINING_POWER=`cat /proc/apm | cut -d " " -f 7 | tr -d "%"`
else
    REMAINING_POWER=-1
fi

# Is longrun available

[ -x "$LONGRUN_BIN" ] || exit 0

# Act depending on the APM event

case "$1,$2" in

    change,power|resume,*|start,*)
        if `on_ac_power` ; then

            set_longrun "on ac" "$PERFORMANCE" "performance"

        elif [ "$REMAINING_POWER" -eq -1 -o \
               "$REMAINING_POWER" -gt "$BATTERY_THRESHOLD" ] ; then

            set_longrun "on battery" "$ECONOMY" "economy"

        else

            set_longrun "on battery" "$LOW_BATTERY" "economy"

        fi
        ;;

    change,battery)
        if `on_ac_power` ; then

            set_longrun "on ac" "$PERFORMANCE" "performance"

        elif [ "$REMAINING_POWER" -gt "$BATTERY_THRESHOLD" ] ; then

            set_longrun "on battery" "$ECONOMY" "economy"

        else

            set_longrun "on battery" "$LOW_BATTERY" "economy"

        fi
        ;;

esac

--HcAYCG3uE/tztfnV--

---------------------------------------
Received: (at 194142-done) by bugs.debian.org; 19 Aug 2003 01:12:37 +0000
>From [EMAIL PROTECTED] Mon Aug 18 20:12:29 2003
Return-path: <[EMAIL PROTECTED]>
Received: from kitenet.net [64.62.161.42] 
        by master.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 19ov2x-0005C3-00; Mon, 18 Aug 2003 20:12:27 -0500
Received: from dragon.kitenet.net (pm3naxs3-137.access.naxs.com [216.98.91.137])
        (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
        (Client CN "Joey Hess", Issuer "Joey Hess" (verified OK))
        by kitenet.net (Postfix) with ESMTP id 57ADE18032
        for <[EMAIL PROTECTED]>; Tue, 19 Aug 2003 01:12:26 +0000 (GMT)
Received: from joey by dragon.kitenet.net with local (Exim 3.35 #1 (Debian))
        id 19ov4q-0003iL-00
        for <[EMAIL PROTECTED]>; Mon, 18 Aug 2003 21:14:24 -0400
Date: Mon, 18 Aug 2003 21:14:24 -0400
From: Joey Hess <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: done
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX"
Content-Disposition: inline
User-Agent: Mutt/1.5.4i
Sender: Joey Hess <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Status: No, hits=-9.3 required=4.0
        tests=BAYES_01,PGP_SIGNATURE_2,USER_AGENT_MUTT
        version=2.53-bugs.debian.org_2003_8_17
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_17 
(1.174.2.15-2003-03-30-exp)


--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

This patch was applied in longrun 0.9-9. Forgot to put the bug number in
the changelog.

--=20
see shy jo

--huq684BweRXVnRxX
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/QXnw3xwsXJZQhyMRAoECAJ9ReKKqfpe6MpHXGCvDNLyKx3mBiQCghgXk
s3F17rLdDduR60WDYO8noPo=
=UP12
-----END PGP SIGNATURE-----

--huq684BweRXVnRxX--

Reply via email to