Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 2003 20:46:43 -0500
From:      "Jack L. Stone" <jackstone@sage-one.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: shutdown -p now
Message-ID:  <3.0.5.32.20030520204643.01366cc0@sage-one.net>
In-Reply-To: <20030521092225.5a6a4442.y2kbug@ms25.hinet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At 09:22 AM 5.21.2003 +0800, Robert Storey wrote:
>Dear All,
>
>I'm trying to get my computer to shut down and turn the power off. I'm
>aware of the command "shutdown -p now". It doesn't work for me, and after
>reading the handbook, I conclude that I must not have ACPI supported
>hardware. However, with Linux (and Windows) on this same computer, I can
>tell the machine to shut down and turn off the power. In Linux, this
>requires that the apm module be loaded - enabling apm in FBSD doesn't seem
>to do the trick for me (or do I need to recompile the kernel for this to
>work?).
>
>A bigger problem is that FBSD seems to have disabled the power button on
>the
>front of the computer. In order for me to turn off the machine, I have to
>reach behind the computer and turn off the master switch on the power
>supply (or else, pull the power cord out of the wall). I assume that this
>is done as a security measure - to prevent evil-minded individuals from
>shutting down the server when the system administrator is on his lunch
>break. That probably makes sense in a corporate network setting, but I
>don't need that level of security at home. More importantly, when I
>install FBSD on my laptop (I have not yet done so), I'm concerned that I
>won't be able to shut down the machine at all unless I remove the battery.
>
>I'd be grateful for any suggestions on solving this problem.
>
>TIA,
>Robert
>

Don't know why your switch quit, but if your computer can manage the
shutdown, you need these:

In the kernel
# device apm0 at nexus? flags 0x20 #Advanced Power Management

...and in rc.conf
# apm_enable="YES"

You should see in the bootup (dmesg):
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2

Hope it helps...

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
jackstone@sage-one.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20030520204643.01366cc0>