From c8d7b01a138a09ab875b9660c27e65c369f9e03b Mon Sep 17 00:00:00 2001 From: marc <> Date: Fri, 5 Jan 2001 04:27:22 +0000 Subject: [PATCH] Add i386 specific sysctl to modify halt -p processing, required to make powerdown work correctly on some processors. Idea from mickey@ and smcho@tsp.korea.ac.kr. Tested my me and angelos@. Note: If you want to try these out you'll need to cd /sys/arch/i386/include && sudo install -m 444 -o root -g root cpu.h /usr/include/i386 cd /usr/src/sbin/sysctl && make obj && make && sudo make install to get a sysctl that understands the new variable (machdep.apmhalt). --- src/etc/etc.i386/sysctl.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/src/etc/etc.i386/sysctl.conf b/src/etc/etc.i386/sysctl.conf index 8e96d662..4cdc72eb 100644 --- a/src/etc/etc.i386/sysctl.conf +++ b/src/etc/etc.i386/sysctl.conf @@ -1,3 +1,4 @@ #machdep.allowaperture=1 # 1=permit access to aperture driver (XFree86) #machdep.apmwarn=10 # battery % when apm status messages enabled +#machdep.apmhalt=0 # 1=powerdown hack, try if halt -p doesn't work #machdep.kbdreset=1 # permit console CTRL-ALT-DEL to do a nice halt