From owner-freebsd-questions@FreeBSD.ORG Sun Sep 14 05:22:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1ADA716A4BF for ; Sun, 14 Sep 2003 05:22:45 -0700 (PDT) Received: from m7.limsi.fr (m7.limsi.fr [192.44.78.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99EC743FB1 for ; Sun, 14 Sep 2003 05:22:43 -0700 (PDT) (envelope-from webmyster@addoc.u-psud.fr) Received: from addoc.u-psud.fr (eponine.limsi.fr [129.175.157.61]) by m7.limsi.fr (8.9.3/jtpda-5.3.1) with ESMTP id OAA15279 for ; Sun, 14 Sep 2003 14:24:47 +0200 (MET DST) Message-ID: <3F645D8D.8070604@addoc.u-psud.fr> Date: Sun, 14 Sep 2003 14:22:37 +0200 From: Damien Touraine User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Soft shutdown when using power button with ACPI ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2003 12:22:45 -0000 Hello, my computer is running FreeBSD 5.1 and I would like to know how to configure FreeBSD to recognize when I press the power button to do a software shutdown. Actually, this computer was previously configured with Linux and under Linux, and there was a daemon that was listening for the ACPI buttons. Thus when I pressed the power button, it runs the configured command (ie : "shutdown -h now"). Under FreeBSD, when I press the power button, the system directly power off without doing any software shutdown. Is there any way to configure FreeBSD to do a soft shutdown when I press the power button ? Friendly Damien Touraine