From owner-freebsd-questions@FreeBSD.ORG Thu Dec 4 11:42:52 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 8E75D1065670 for ; Thu, 4 Dec 2008 11:42:52 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57001.mail.re3.yahoo.com (web57001.mail.re3.yahoo.com [66.196.97.105]) by mx1.freebsd.org (Postfix) with SMTP id 22ACF8FC26 for ; Thu, 4 Dec 2008 11:42:52 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 92678 invoked by uid 60001); 4 Dec 2008 11:42:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=fSNWdZsfPBzryRgNOy1aIFL3mVhcmHX8gFUVQ4YufDJQHPcgLNDlhKPc8Rep5P8bac1GFNuUJo3EBSVKScMcnquHcoVHVsVJoS7SKPSaJ+bTzkT77oL7rQK1V7xdrfAOoayIsn4Fx9IePrY00XJ0j+piEM7nDpVLfmKRbv1h6KE=; X-YMail-OSG: nRpyNGsVM1nehRCNYdWl9eQ_bwO844z1JOqqQVRw5BAr14mZ4LLLRlE6N5rV44nnFi7mbHW.45OIOJK8GnnSaImg3.jd4LINJ9EYguTh1_OF9p6thP6nTGPRaLEKOhMo3l4yy_YVpsS1LZE_Al1aNAeKxLI- Received: from [220.255.7.243] by web57001.mail.re3.yahoo.com via HTTP; Thu, 04 Dec 2008 03:42:51 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Thu, 4 Dec 2008 03:42:51 -0800 (PST) From: Unga To: freebsd-questions@freebsd.org In-Reply-To: <706654.84147.qm@web57001.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <289102.92495.qm@web57001.mail.re3.yahoo.com> Subject: Re: FreeBSD cannot power down X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 11:42:52 -0000 --- 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. Many thanks in advance. Unga