Automatically Switching of the PC when running "halt -p"

Lee lee at
Fri Jun 21 18:11:28 BST 2002


Since sending the original message I have also tried "shutdown -p" as you
suggested with no difference.

Before installing FreeBSD I have Redhat 7.0 -> 7.3 running on the same
machine.  This powered down fine, so I can only assume that it is something
to do with the kernel / OS rather than my computer.  Unless Redhat have got
round a problem that FreeBSD has not yet resolved?

I was hoping to leave re-compiling a new kernel to I was a little more
experienced with BSD, but this is a feature I very much need for a project I
am working on, so I guess I will have to give it a go.



----- Original Message -----
From: "Matthew Seaman" <m.seaman at>
To: "Lee" <lee at>
Cc: <freebsd-users at>
Sent: Friday, June 21, 2002 6:02 PM
Subject: Re: Automatically Switching of the PC when running "halt -p"

> 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