From owner-freebsd-acpi@FreeBSD.ORG Wed May 25 18:37:25 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 AD2AD106566C for ; Wed, 25 May 2011 18:37:25 +0000 (UTC) (envelope-from menkovich@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 6614C8FC16 for ; Wed, 25 May 2011 18:37:25 +0000 (UTC) Received: by qyk35 with SMTP id 35so2626489qyk.13 for ; Wed, 25 May 2011 11:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=oPyrlKWZfvNo4QA1Yopa82FUKe3pFHvvR5bSb+uaVZs=; b=Cyk1+w8znD02ok4xxz8EqBVumrPN9HqUW8NK+RLE+6k2e++WEF4YNvJ4+lr4ET+f58 R6QYrC7KwSL14YkKf28piYtE3f+2er69NXmy+K6LAktHfdFr/9dAobGYHK9vHEvgwXrZ SoMXym3eiTUHhaRnphANyWpSL7Lobf/haQhFo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=or63vgtVZOF9W2tgwdYltDc+QBr5UH6LU5PWJ731R7nu3TdlUSOYMIfzVtBcQWZIMm vsqAwgPfnOyCASxPPL1GlpvYjciZZVpoTbkxxzxPSKe6QQG7MWOCGWeNnKT6xukGM5aK WmpZa5wE/dcFTpnZqjANK2p1CKufU3cBt0vnA= Received: by 10.229.43.142 with SMTP id w14mr4219817qce.27.1306347120132; Wed, 25 May 2011 11:12:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.33.202 with HTTP; Wed, 25 May 2011 11:11:20 -0700 (PDT) In-Reply-To: <1306251672702-4422479.post@n5.nabble.com> References: <1306251672702-4422479.post@n5.nabble.com> From: Nikita A Menkovich Date: Wed, 25 May 2011 22:11:20 +0400 Message-ID: To: falk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-acpi@freebsd.org 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: Wed, 25 May 2011 18:37:25 -0000 Seems this was bug in 0.8* branch of libvirt in later versions everything works fine. By the way - thanks for the answer. :) On 24 May 2011 19:41, falk wrote: > You can add i file at /etc/devd with the configuration for the power butt= on. > Perhaps you name the file power.conf > The Content should be > > notify 10 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0match "system" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0"ACPI"; > =C2=A0 =C2=A0 =C2=A0 =C2=A0match "subsystem" =C2=A0 =C2=A0 =C2=A0 "Button= "; > =C2=A0 =C2=A0 =C2=A0 =C2=A0match "notify" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0"0x00"; > =C2=A0 =C2=A0 =C2=A0 =C2=A0notify "/etc/rc.halt"; > }; > > It tolds the devd, if there is a message from ACPI, and from the Buttons = (0 > means the power button, 1 means the sleep button) than call the halt scri= pt > to shutdown the system. You can use a other script with more cleaning up > before the shutdown -p would be invoked. > > It works for me with libvirt and qemu Monitor both > > Falk > > > -- > View this message in context: http://freebsd.1045724.n5.nabble.com/Proble= m-with-FreeBSD-graceful-shutdown-tp4227264p4422479.html > Sent from the freebsd-acpi mailing list archive at Nabble.com. > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" > --=20 Nikita A Menkovich http://libc6.org/ JID: menkovich@gmail.com Tel: +7 (921) 423-96-48