Thank you very much to all! This feature make my laptop happy again.
On Thursday, 2 March 2017 15:32:40 CET, Theo Buehler wrote:
Hi, you may have seen that a version of this was committed today: CVSROOT: /cvs Module name: src Changes by: nat...@cvs.openbsd.org 2017/03/02 03:38:10 Modified files: etc/etc.amd64 : sysctl.conf etc/etc.i386 : sysctl.conf etc/etc.loongson: sysctl.conf sbin/init : init.c sbin/reboot : reboot.c sys/arch/amd64/amd64: machdep.c sys/arch/amd64/include: cpu.h sys/arch/arm/include: cpu.h sys/arch/i386/i386: machdep.c sys/arch/i386/include: cpu.h sys/arch/loongson/loongson: machdep.c sys/arch/mips64/include: cpu.h sys/dev/acpi : acpi.c acpibtn.c sys/dev/isa : aps.c Log message: 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