Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2011 08:35:22 -0700 (PDT)
From:      falk <falknisius@gmx.de>
To:        freebsd-acpi@freebsd.org
Subject:   Re: Problem with FreeBSD graceful shutdown
Message-ID:  <1306251322715-4422456.post@n5.nabble.com>
In-Reply-To: <AANLkTin3pTTeAqX2yEEvQLS15NW-5Z%2BVuLoy1oFWxZFZ@mail.gmail.com>
References:  <AANLkTin3pTTeAqX2yEEvQLS15NW-5Z%2BVuLoy1oFWxZFZ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1306251322715-4422456.post>