Use hw.acpi.sleep.state in the example.
This commit is contained in:
parent
c381887798
commit
8f93d64e6b
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: acpilid.4,v 1.6 2010/04/25 10:35:07 wiz Exp $
|
||||
.\" $NetBSD: acpilid.4,v 1.7 2011/01/09 15:55:48 jruoho Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002, 2004 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -24,7 +24,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd April 25, 2010
|
||||
.Dd January 9, 2011
|
||||
.Dt ACPILID 4
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -70,8 +70,8 @@ pressed)
|
||||
|
||||
# Suspend.
|
||||
#
|
||||
if /sbin/sysctl machdep.sleep_state \*[Gt]/dev/null 2\*[Gt]\*[Am]1; then
|
||||
/sbin/sysctl -w machdep.sleep_state=3
|
||||
if /sbin/sysctl hw.acpi.sleep.state \*[Gt]/dev/null 2\*[Gt]\*[Am]1; then
|
||||
/sbin/sysctl -w hw.acpi.sleep.state=3
|
||||
fi
|
||||
|
||||
# Waking up.
|
||||
|
Loading…
Reference in New Issue
Block a user