On Sat, Nov 18, 2017 at 09:47:41PM +0100, pledge wrote: > Hello > > I just upgraded my laptop 6.1 -> 6.2. > > Suddenly it appears that the sysctl setting machdep.lidsuspend was gone. > > I checked the whats new site https://www.openbsd.org/62.html and > https://www.openbsd.org/faq/upgrade62.html but found no information there. > Interestingly, on https://www.openbsd.org/faq/upgrade61.html there is this > note: > > "*sysctl machdep.lidsuspend renamed to machdep.lidaction.* The > machdep.lidsuspend sysctl variable has been renamed to machdep.lidaction. > Setting it to 2 hibernates the machine when the lid is closed. Update > sysctl.conf(5) <https://man.openbsd.org/OpenBSD-6.1/sysctl.conf.5> to use > the new name." > > So it appears that this note was on the wrong page? Since I was using it on > 6.1 it can't have been renamed.
It was deprecated during the 6.1 release cycle https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/amd64/amd64/machdep.c#rev1.224 and accordingly, its deprecation was announced on upgrade61.html. The machdep.lidsuspend sysctl was left functioning to ease the transition. During the 6.2 release cycle it was definitely removed: https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/amd64/amd64/machdep.c#rev1.231 > Also, where can I find documentation about what more options there are to > machdep.lidaction? The machdep sysctls are only briefly explained in comments in /etc/examples/sysctl.conf, as sysctl(3) is already very long. Here are the machdep sysctls for amd64: https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/etc/etc.amd64/sysctl.conf?annotate=1.7