1.\" $NetBSD: acpibut.4,v 1.4 2010/04/25 07:12:10 jruoho Exp $ 2.\" 3.\" Copyright (c) 2002, 2004 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 16.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 17.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 19.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25.\" POSSIBILITY OF SUCH DAMAGE. 26.\" 27.Dd April 25, 2010 28.Dt ACPIBUT 4 29.Os 30.Sh NAME 31.Nm acpibut 32.Nd ACPI Button 33.Sh SYNOPSIS 34.Cd "acpibut* at acpi?" 35.Sh DESCRIPTION 36The 37.Nm 38driver supports two kinds of 39.Tn ACPI 40buttons: 41.Bl -column -offset indent "Button " "/etc/powerd/scripts/power_button" 42.It Sy Button Ta Sy Script 43.It Li Power Ta Pa /etc/powerd/scripts/power_button 44.It Li Sleep Ta Pa /etc/powerd/scripts/sleep_button 45.El 46.Pp 47When a button is pressed, the 48.Xr powerd 8 49daemon, if running, 50will execute the corresponding script. 51.Sh SEE ALSO 52.Xr acpi 4 , 53.Xr powerd 8 54.Sh HISTORY 55The 56.Nm 57driver 58appeared in 59.Nx 1.6 . 60