From owner-freebsd-mobile Thu Jul 6 7:43:15 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id D538637B535 for ; Thu, 6 Jul 2000 07:43:12 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 13ACrv-000J3C-00; Thu, 6 Jul 2000 15:43:11 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) id PAA09752; Thu, 6 Jul 2000 15:43:11 +0100 (BST) (envelope-from jcm) Date: Thu, 6 Jul 2000 15:43:11 +0100 From: j mckitrick To: Mitsuru IWASAKI Cc: mobile@freebsd.org, jsegovia@cnc.una.py Subject: Re: apm on toshiba 4010cdt Message-ID: <20000706154311.A9703@dogma.freebsd-uk.eu.org> References: <20000706134042.A9085@dogma.freebsd-uk.eu.org> <20000706230923G.iwasaki@jp.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000706230923G.iwasaki@jp.FreeBSD.org>; from iwasaki@jp.freebsd.org on Thu, Jul 06, 2000 at 11:09:23PM +0900 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Jul 06, 2000 at 11:09:23PM +0900, Mitsuru IWASAKI wrote: > you could do like this; > /etc/apmd.conf: > apm_event POWERSTATECHANGE, CAPABILITIESCHANGE { > exec "YOUR_SCRIPT_HERE"; > } ok, here's my script so far: #!/bin/sh /usr/sbin/apm -l retval=$? if [ $retval -eq 10 ]; then /usr/local/bin/beep /usr/local/bin/beep /usr/local/bin/beep fi and all it does is show the battery level. i adjusted the '-eq 10' to '-eq 255' just to test it, since i am using AC power now. but it still does the same thing, and does not beep. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message