Browse Source

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
OPENBSD_6_1
natano 7 years ago
parent
commit
cb1595eef5
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/etc/etc.amd64/sysctl.conf
  2. +1
    -1
      src/etc/etc.i386/sysctl.conf
  3. +1
    -1
      src/etc/etc.loongson/sysctl.conf

+ 1
- 1
src/etc/etc.amd64/sysctl.conf View File

@ -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

+ 1
- 1
src/etc/etc.i386/sysctl.conf View File

@ -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

+ 1
- 1
src/etc/etc.loongson/sysctl.conf View File

@ -1 +1 @@
#machdep.lidsuspend=0 # do not suspend laptop upon lid closing
#machdep.lidaction=0 # 1=suspend, 2=hibernate laptop upon lid closing

Loading…
Cancel
Save