From owner-freebsd-mobile Thu May 10 4:22: 0 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from polaris.hitachi-to.co.jp (regulus.hitachi-to.co.jp [210.130.175.6]) by hub.freebsd.org (Postfix) with ESMTP id 69E9137B424 for ; Thu, 10 May 2001 04:21:57 -0700 (PDT) (envelope-from iwasaki@jp.FreeBSD.org) To: nsayer@quack.kfu.com Cc: freebsd-mobile@freebsd.org Subject: Re: Recommended addition to apmd: Battery state watching In-Reply-To: <3AF96825.50803@quack.kfu.com> References: <3AF96825.50803@quack.kfu.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010510202152Z.iwasaki@jp.FreeBSD.org> Date: Thu, 10 May 2001 20:21:52 +0900 From: Mitsuru IWASAKI Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > I would propose adding the follwing syntax to apmd.conf: > > apm_batt ([0-9]+%|[0-9]+m) { > ... > } Cool! I have a suggestion on it. apm_batt ([0-9]+%|[0-9]+m) [charging|discharding] { ... } I think we need consider whether batteries are in charging or discharging. Following suggested examples, prototypical usage would be apm_batt 5% discharging { exec "logger -p kern.emerg *** Battery state low ***"; } apm_batt 5% charging { exec "logger -p user.notice *** Battery state normal from low ***"; } Seems good? Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message