From owner-freebsd-mobile Thu Jul 6 8: 1: 1 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from alpha.cnc.una.py (alpha.cnc.una.py [200.10.228.103]) by hub.freebsd.org (Postfix) with ESMTP id 6056737BA9E for ; Thu, 6 Jul 2000 08:00:02 -0700 (PDT) (envelope-from jsegovia@alpha.cnc.una.py) Received: from jss ([200.10.228.69]) by alpha.cnc.una.py (8.9.3/8.10.0) with ESMTP id LAA21030; Thu, 6 Jul 2000 11:56:54 -0400 (GMT-0400) From: jsegovia@cnc.una.py To: j mckitrick Date: Thu, 6 Jul 2000 10:58:43 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: apm on toshiba 4010cdt Cc: mobile@freebsd.org, jsegovia@cnc.una.py Message-ID: <39646663.28541.D142D6@localhost> In-reply-to: <20000706154311.A9703@dogma.freebsd-uk.eu.org> References: <20000706230923G.iwasaki@jp.FreeBSD.org>; from iwasaki@jp.freebsd.org on Thu, Jul 06, 2000 at 11:09:23PM +0900 X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Jonathon, I think you should grab the output of apm: retval=$(apm -l). Juan > 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. > -- Centro Nacional de Computacion Universidad Nacional de Asuncion Tel. +595 (21) 585 550 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message