Date: Mon, 9 Mar 1998 17:07:28 -0500 From: Christopher Masto <chris@netmonger.net> To: Andrew Maltsev <am@amsoft.ru> Cc: "Bruce M. Walter" <walter@fortean.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: APM power off (patch) Message-ID: <19980309170728.03832@netmonger.net> In-Reply-To: <199803092107.AAA05671@amsoft.ru>; from Andrew Maltsev on Tue, Mar 10, 1998 at 12:07:16AM %2B0300 References: <Pine.BSF.3.95q.980309130831.21185C-100000@callisto.fortean.com> <199803092107.AAA05671@amsoft.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <chris@netmonger.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980309170728.03832>