From owner-freebsd-stable@FreeBSD.ORG Thu Apr 9 20:24:17 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A487E1065672 for ; Thu, 9 Apr 2009 20:24:17 +0000 (UTC) (envelope-from sclark46@earthlink.net) Received: from elasmtp-mealy.atl.sa.earthlink.net (elasmtp-mealy.atl.sa.earthlink.net [209.86.89.69]) by mx1.freebsd.org (Postfix) with ESMTP id 70C4C8FC19 for ; Thu, 9 Apr 2009 20:24:17 +0000 (UTC) (envelope-from sclark46@earthlink.net) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=VKB+RxO+5TkOaA6QnqrN30t9ExT8gREhOpuQPgbE3TL0HU8UvI4HmMza6/X2GDkf; h=Received:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Received: from [208.118.36.249] (helo=joker.seclark.com) by elasmtp-mealy.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1Ls0nI-0001hk-Jh; Thu, 09 Apr 2009 16:24:16 -0400 Message-ID: <49DE596E.2050406@earthlink.net> Date: Thu, 09 Apr 2009 16:24:14 -0400 From: Stephen Clark User-Agent: Thunderbird 2.0.0.21 (X11/20090320) To: Andriy Gapon References: <49DE1F8B.2080400@earthlink.net> <49DE2E6D.5050001@icyb.net.ua> In-Reply-To: <49DE2E6D.5050001@icyb.net.ua> Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec795e67b9f93a23d5c38ae81fd75b53ed6c350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 208.118.36.249 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: 6.x acpi powerbutton X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sclark46@earthlink.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2009 20:24:17 -0000 Andriy Gapon wrote: on 09/04/2009 19:17 Stephen Clark said the following: Hello, I am trying to figure out what happens on a soft poweroff? Is there a userspace script that gets called? If everything works correctly, then acpi driver sends a signal to init which causes a typical graceful shutdown. BTW, was this really a question for stable ml? Probably not. But I spent a couple of hours googling without much luck so I got desperate. ;-) Is there a reason it doesn't send and event like Linux that can be acted upon by user space other than signaling init? I like to have a message written in /var/log/messages that someone pressed the powerbutton. Thanks -- "They that give up essential liberty to obtain temporary safety, deserve neither liberty nor safety." (Ben Franklin) "The course of history shows that as a government grows, liberty decreases." (Thomas Jefferson)