Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 1998 00:07:16 +0300 (MSK)
From:      Andrew Maltsev <am@amsoft.ru>
To:        walter@fortean.com (Bruce M. Walter)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: APM power off (patch)
Message-ID:  <199803092107.AAA05671@amsoft.ru>
In-Reply-To: <Pine.BSF.3.95q.980309130831.21185C-100000@callisto.fortean.com> from "Bruce M. Walter" at "Mar 9, 98 01:11:15 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.


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?199803092107.AAA05671>