From owner-freebsd-questions@FreeBSD.ORG Wed May 21 22:05:00 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A89E637B401 for ; Wed, 21 May 2003 22:05:00 -0700 (PDT) Received: from msr35.hinet.net (msr35.hinet.net [168.95.4.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8272143F85 for ; Wed, 21 May 2003 22:04:59 -0700 (PDT) (envelope-from y2kbug@ms25.hinet.net) Received: from sonic.utopia.com (61-227-219-64.HINET-IP.hinet.net [61.227.219.64]) by msr35.hinet.net (8.9.3/8.9.3) with SMTP id NAA14472 for ; Thu, 22 May 2003 13:04:30 +0800 (CST) Date: Thu, 22 May 2003 11:40:32 +0800 From: Robert Storey To: freebsd-questions@freebsd.org Message-Id: <20030522114032.1321ff39.y2kbug@ms25.hinet.net> In-Reply-To: <20030521201502.0f00f07b.y2kbug@ms25.hinet.net> References: <20030521092225.5a6a4442.y2kbug@ms25.hinet.net> <3.0.5.32.20030520204643.01366cc0@sage-one.net> <20030521201502.0f00f07b.y2kbug@ms25.hinet.net> X-Mailer: Sylpheed version 0.8.6 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: shutdown -p now X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2003 05:05:01 -0000 On Wed, 21 May 2003 20:15:02 +0800 Robert Storey wrote: > On Tue, 20 May 2003 20:46:43 -0500 > "Jack L. Stone" wrote: > > > 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 > ================ SNIP ============= Thanks to all who replied. I've been experimenting for the past day, and it still doesn't work, but I can live with just hitting the power switch (and holding it down for six seconds, as some of you suggested). Anyway, I've had partial success and discovered a few things which may be of interest to others: At least in FBSD 5.0 (which is what I'm using), all that's needed is to uncomment the line that says: #device apm If I use this: # device apm0 at nexus? flags 0x20 #Advanced Power Management Then I will get this error message when I attempt to configure the kernel: config: CUSTOM2:156: devices with zero units are not likely to be correct The handbook indicates that apm0 is correct, so I assume this is an incompatibility between 4.8 and 5.0. Presumably, that will be corrected - should I/we inform the people who do the handbook about this, or have they already got a handle on it? Anyway, using just "apm", I am able to compile the kernel. I change rc.conf to turn on apm, and I even get a message at boot time about loading apm, but apm apparently clashes with acpi. When I do "shutdown -p now", I get this error message: Powering system off using ACPI ACPI power-off failed - timeout I suspect it's simply that my power supply (which is old) does not support ACPI. My motherboard (which is new) does support ACPI. Running "dmesg | grep -i acpi" gives me this output: Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06ed0a8. acpi0: on motherboard ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <32-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 I'll wait for 5.1 and see if that improves things, but as I say, I suspect that my hardware is the culprit. Nevertheless, it does work in Linux and Windows, so I'm not really sure what the problem is. Thanks again to all who replied. best regards, Robert