From owner-freebsd-acpi@FreeBSD.ORG Tue Dec 19 22:05:36 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4586D16A412 for ; Tue, 19 Dec 2006 22:05:36 +0000 (UTC) (envelope-from gofda-freebsd-acpi@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 195D643CB6 for ; Tue, 19 Dec 2006 22:05:28 +0000 (GMT) (envelope-from gofda-freebsd-acpi@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Gwm90-0003In-FS for freebsd-acpi@freebsd.org; Tue, 19 Dec 2006 22:05:02 +0100 Received: from r5h168.net.upc.cz ([86.49.7.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Dec 2006 22:05:02 +0100 Received: from gamato by r5h168.net.upc.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Dec 2006 22:05:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-acpi@freebsd.org From: martinko Date: Tue, 19 Dec 2006 21:23:31 +0100 Lines: 71 Message-ID: <45884A43.5080808@users.sf.net> References: <430A02A4.1030303@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: r5h168.net.upc.cz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.8) Gecko/20061111 SeaMonkey/1.0.6 In-Reply-To: Sender: news Subject: Re: battery low script X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 22:05:36 -0000 m.ehinger@ltur.de wrote: > Sorry my mistake, i forgot it completely, thanks > > (See attached file: battery) > > maik > > > > > Nate Lawson > > 22.08.2005 18:51 An > m.ehinger@ltur.de > Kopie > > Thema > Re: battery low script > > > > > > > > > > > m.ehinger@ltur.de wrote: >> Hi, >> >> i use the attached script to shutdown my notebook on low battery automatically. >> >> I also added the following to /etc/devd.conf >> >> notify 10 { >> match "system" "ACPI"; >> match "subsystem" "CMBAT"; >> action "/etc/battery $notify"; >> }; >> >> >> Please feel free to try without any guarantees. >> >> Comments are welcome. >> >> thanks >> >> Maik > > the attachment was missing. Try sending it inline, not as an attachment. > > -- > Nate > hello, i wonder what is "sleep 1" within the script good for .. ?? also, i could imagine someone to run shutdown(8) manually with a grace period eg 1h and later on (someone else?) plugging in the power cord upon which the script would kill the (manual) shutdown process. (i guess it's very unlikely, though.) anyway, thanks for the script! regards, martin