From 74ec58af25dbea2773d924537499c413d0d983dd Mon Sep 17 00:00:00 2001 From: Martin Natano Date: Thu, 2 Mar 2017 10:38:11 +0000 Subject: 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 --- etc/etc.i386/sysctl.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/etc.i386') diff --git a/etc/etc.i386/sysctl.conf b/etc/etc.i386/sysctl.conf index 48f492dc82d..9e8d3252d85 100644 --- a/etc/etc.i386/sysctl.conf +++ b/etc/etc.i386/sysctl.conf @@ -1,4 +1,4 @@ #machdep.allowaperture=2 # See xf86(4) #machdep.apmhalt=1 # 1=powerdown hack, try if halt -p doesn't work #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 -- cgit v1.2.3