diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2017-03-02 10:38:11 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2017-03-02 10:38:11 +0000 |
commit | 74ec58af25dbea2773d924537499c413d0d983dd (patch) | |
tree | 9a9d0c79a40dd17ac87ca0acbfdb4623020c08bc /etc/etc.amd64 | |
parent | 6bfb01fcf4947233b8bf5ffe005dbc1f79a35df0 (diff) |
Add a new sysctl machdep.lidaction. The sysctl works as follows:
machdep.lidaction=0 # do nothing
machdep.lidaction=1 # suspend
machdep.lidaction=2 # hibernate
lidsuspend is just an alias for lidaction, so if you change one, the
other one will have the same value. The plan is to remove
machdep.lidsuspend eventually when people have upgraded their
/ets/sysctl.conf.
discussed with deraadt, who came up with the new MIB name
no objections mlarkin
ok stsp halex jcs
Diffstat (limited to 'etc/etc.amd64')
-rw-r--r-- | etc/etc.amd64/sysctl.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/etc.amd64/sysctl.conf b/etc/etc.amd64/sysctl.conf index ba90bf714f0..b1b64952365 100644 --- a/etc/etc.amd64/sysctl.conf +++ b/etc/etc.amd64/sysctl.conf @@ -1,3 +1,3 @@ #machdep.allowaperture=2 # See xf86(4) #machdep.kbdreset=1 # permit console CTRL-ALT-DEL to do a nice halt -#machdep.lidsuspend=0 # do not suspend laptop upon lid closing +#machdep.lidaction=0 # 1=suspend, 2=hibernate laptop upon lid closing |