From owner-freebsd-questions@FreeBSD.ORG Sun Dec 7 02:01:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0B50106564A for ; Sun, 7 Dec 2008 02:01:26 +0000 (UTC) (envelope-from brucec@muon.cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [66.246.138.153]) by mx1.freebsd.org (Postfix) with ESMTP id CC8958FC08 for ; Sun, 7 Dec 2008 02:01:26 +0000 (UTC) (envelope-from brucec@muon.cran.org.uk) Received: by muon.cran.org.uk (Postfix, from userid 1000) id 29D6F19007; Sat, 6 Dec 2008 21:01:26 -0500 (EST) Date: Sat, 6 Dec 2008 21:01:26 -0500 From: Bruce Cran To: Unga Message-ID: <20081207020126.GA23324@muon.cran.org.uk> References: <706654.84147.qm@web57001.mail.re3.yahoo.com> <289102.92495.qm@web57001.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <289102.92495.qm@web57001.mail.re3.yahoo.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD cannot power down X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2008 02:01:27 -0000 On Thu, Dec 04, 2008 at 03:42:51AM -0800, Unga wrote: > --- On Tue, 12/2/08, Unga wrote: > > > From: Unga > > Subject: FreeBSD cannot power down > > To: freebsd-questions@freebsd.org > > Date: Tuesday, December 2, 2008, 11:22 PM > > Hi all > > > > After a kernel recompilation on i386 RELENG_7 (not the > > latest), I cannot power down the machine. > > > > kldstat shows acpi.ko is loaded. > > > > It used to switch off but now the "shutdown -p > > now" halts the system with following messages: > > The operating system has halted. > > Please press any key to reboot. > > > > What else could I check to identify the cause? > > > > Appreciate your ideas on this. > > > > I had a look at source code. The program flow seems to be is as follows: > > shutdown => (signals) init => reboot() => boot() => shutdown_final => shutdown_halt() => cpu_halt() > > I did not see which function is called to request a power down. > > The __asm__ ("hlt") doesn't power down, isn't it? > > Could you guys help me to identify how shutdown request a power down. > HLT is just an old power-saving instruction that was traditionally run in the idle loop. From reading the code it looks like the system should be powered off during poweroff_wait but I can't see where ACPI is told to remove power. You might get more help by asking on the freebsd-acpi list. -- Bruce Cran