1.\" $OpenBSD: power.4,v 1.4 2007/05/31 19:19:55 jmc Exp $ 2.\" 3.\" 4.\" Copyright (c) 2007 Martin Reindl 5.\" 6.\" Permission to use, copy, modify, and distribute this software for any 7.\" purpose with or without fee is hereby granted, provided that the above 8.\" copyright notice and this permission notice appear in all copies. 9.\" 10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" 18.Dd $Mdocdate: May 31 2007 $ 19.Dt POWER 4 landisk 20.Os 21.Sh NAME 22.Nm power 23.Nd power switch 24.Sh SYNOPSIS 25.Cd "power0 at obio?" 26.Sh DESCRIPTION 27Landisk models provide an interrupt when the power switch is flipped to the 28Off position. 29The 30.Nm 31driver catches that interrupt. 32If the 33.Va machdep.kbdreset 34.Xr sysctl 8 35is set to 1, 36.Nm power 37will signal 38.Xr init 8 39to do a clean shutdown. 40.Sh SEE ALSO 41.Xr intro 4 , 42.Xr obio 4 43.Sh HISTORY 44Support for the 45.Nm 46driver first appeared in 47.Ox 4.1 . 48