From owner-freebsd-hackers Mon Mar 9 15:42:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA01925 for freebsd-hackers-outgoing; Mon, 9 Mar 1998 15:42:27 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cheddar.netmonger.net (root@cheddar.netmonger.net [209.54.21.140]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA01720 for ; Mon, 9 Mar 1998 15:41:34 -0800 (PST) (envelope-from chris@cheddar.netmonger.net) Received: (from chris@localhost) by cheddar.netmonger.net (8.8.8/8.8.8) id RAA07462; Mon, 9 Mar 1998 17:07:29 -0500 (EST) Message-ID: <19980309170728.03832@netmonger.net> Date: Mon, 9 Mar 1998 17:07:28 -0500 From: Christopher Masto To: Andrew Maltsev Cc: "Bruce M. Walter" , freebsd-hackers@FreeBSD.ORG Subject: Re: APM power off (patch) References: <199803092107.AAA05671@amsoft.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.87.4 In-Reply-To: <199803092107.AAA05671@amsoft.ru>; from Andrew Maltsev on Tue, Mar 10, 1998 at 12:07:16AM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 10, 1998 at 12:07:16AM +0300, Andrew Maltsev wrote: > > > I've uploaded my patch (2.2-stable based) to > > > > > > ftp://ftp.freebsd.org/pub/FreeBSD/incoming/am-atx-power-off.patch.gz > > > > > > What was done: > > > - kernel apm driver now able to power off system > > > - /sbin/shutdown has new flag `-p' to switch power off after shutdown > > > > The kernel poweroff stuff is important for my UPS work and patches have > > been submitted via send-pr for a shutdown queue for a while. I don't > > believe they've been committed though. We really need a standard (and > > safe) way of requesting the kernel to poweroff the machine. > > What can be more standart, than ioctl(/dev/apm) for userland and > apm_power_off for kernel stuff? > > Or should we call it machine_power_off() and place a hook in > i386/machdep.c? > > With `restore previous power state' bios option it would be perfect > colution for UPS support. On a related note (perhaps), I have been led to believe that ATX machines (which have a momentary power button instead of a switch), it is possible to intercept the power button and shut down (or ignore it). Is this true? If so, is it supported/supportable by FreeBSD? -- Christopher Masto Director of Operations, NetMonger Communications, Inc. +1-516-221-6664 http://www.netmonger.net/ info@netmonger.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message