Automatically Switching of the PC when running "halt -p"
Matthew Seaman
m.seaman at infracaninophile.co.uk
Fri Jun 21 18:02:03 BST 2002
On Fri, Jun 21, 2002 at 05:30:45PM +0100, Lee wrote:
> Does anyone know if FreeBSD-4.6 is configured out of the box to
> automatically shutdown the PC when the "halt -p" command is issues.
Not by default: the apm device isn't enabled in the GENERIC kernel.
> I have ensured that APM is enabled, not sure if this makes any
> difference though.
apm is required so that `halt -p', or preferably `shutdown -p' will be
able to power off your system. Your machine has to have an APM Bios
for this to work --- which is usually a feature of laptops rather than
ordinary PCs. Nb. it's better to use `shutdown' rather than `halt' as
that gives any processes running on the machine a chance to shutdown
gracefully and clean up after themselves.
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
Tel: +44 1628 476614 Marlow
Fax: +44 0870 0522645 Bucks., SL7 1TH UK
More information about the Ukfreebsd
mailing list