From owner-freebsd-acpi@FreeBSD.ORG Tue May 24 16:00:32 2011 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 D1A04106566B for ; Tue, 24 May 2011 16:00:32 +0000 (UTC) (envelope-from falknisius@gmx.de) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id AF9DE8FC0C for ; Tue, 24 May 2011 16:00:32 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QOtdi-0001rf-O5 for freebsd-acpi@freebsd.org; Tue, 24 May 2011 08:35:22 -0700 Date: Tue, 24 May 2011 08:35:22 -0700 (PDT) From: falk To: freebsd-acpi@freebsd.org Message-ID: <1306251322715-4422456.post@n5.nabble.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Problem with FreeBSD graceful shutdown 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 May 2011 16:00:32 -0000 You can add at /etc/devd a configuration file like power.conf with the following content: notify 10 { match "system" "ACPI"; match "subsystem" "Button"; match "notify" "0x00"; notify "/etc/rc.halt"; }; It works fine for kvm with libvirt or qemu direct. Falk -- View this message in context: http://freebsd.1045724.n5.nabble.com/Problem-with-FreeBSD-graceful-shutdown-tp4227264p4422456.html Sent from the freebsd-acpi mailing list archive at Nabble.com.