From owner-freebsd-acpi@FreeBSD.ORG Tue Mar 24 13:33:59 2009 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 B7BC21065670 for ; Tue, 24 Mar 2009 13:33:59 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id EDF048FC08 for ; Tue, 24 Mar 2009 13:33:58 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA01668 for ; Tue, 24 Mar 2009 15:33:56 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <49C8E143.2080305@icyb.net.ua> Date: Tue, 24 Mar 2009 15:33:55 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 To: freebsd-acpi@FreeBSD.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: shutdown via power button: "acpi: resumed at..." 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, 24 Mar 2009 13:34:00 -0000 I noticed that sometimes I am getting "acpi: resumed at..." message on console and in system log when I initiate system shutdown by pressing power button. I think that the cause is in acpi_UserNotify("Resume") call and this call is only found in acpi_EnterSleepState(). I see the following code in that function: case ACPI_STATE_S5: /* * Shut down cleanly and power off. This will call us back through the * shutdown handlers. */ shutdown_nice(RB_POWEROFF); break; So it seems that it is expected that shutdown_nice() would return immediately. I think it makes S5 a special case comparing to other states where return happens upon resuming from the state. In this case, maybe it is not necessary for S5 request to go through the resume/wakeup half of acpi_EnterSleepState. -- Andriy Gapon