From owner-freebsd-acpi@FreeBSD.ORG Tue Dec 9 17:04:12 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 418021065670 for ; Tue, 9 Dec 2008 17:04:12 +0000 (UTC) (envelope-from nate@root.org) Received: from nlpi053.prodigy.net (nlpi053.sbcis.sbc.com [207.115.36.82]) by mx1.freebsd.org (Postfix) with ESMTP id 0CD9B8FC18 for ; Tue, 9 Dec 2008 17:04:11 +0000 (UTC) (envelope-from nate@root.org) Received: from [10.0.5.18] (ppp-71-139-16-34.dsl.snfc21.pacbell.net [71.139.16.34]) (authenticated bits=0) by nlpi053.prodigy.net (8.13.8 smtpauth/dk/map_regex/8.13.8) with ESMTP id mB9H4Aip030448; Tue, 9 Dec 2008 11:04:10 -0600 Message-ID: <493EA50B.6000001@root.org> Date: Tue, 09 Dec 2008 09:04:11 -0800 From: Nate Lawson User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: unga888@yahoo.com References: <435143.84625.qm@web57005.mail.re3.yahoo.com> In-Reply-To: <435143.84625.qm@web57005.mail.re3.yahoo.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: shutdown does not power down X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 17:04:12 -0000 Unga wrote: > --- On Sun, 12/7/08, Unga wrote: > >> From: Unga >> Subject: shutdown does not power down >> To: freebsd-acpi@freebsd.org >> Date: Sunday, December 7, 2008, 1:26 PM >> Hi >> >> I'm using RELENG_7 on i386. >> >> I noticed recently that "shutdown -p now" does >> not switch off the computer. >> >> I'm trying to understand how does the /sbin/shutdown >> performs a power down. I had a detailed look at the source >> code involved but find it difficult to see how. >> > > After studying the ACPI, I realized that acpi_shutdown_final() doesn't get registered to "shutdown_final" event due to the fact /dev/acpi is missing. Therefore, the acpi_shutdown_final() doesn't executed when shutdown. > > I'm not sure why the /dev/acpi is not getting created by devfs. Appreciate if could give your ideas. Are you sure devfs is not just hiding it since it wasn't used yet? devfs unhide or touch /dev/acpi would probably reveal it. -- Nate