From owner-freebsd-hackers Mon Jan 24 11: 9:12 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from web2103.mail.yahoo.com (web2103.mail.yahoo.com [128.11.68.247]) by hub.freebsd.org (Postfix) with SMTP id C563C15BF9 for ; Mon, 24 Jan 2000 11:08:38 -0800 (PST) (envelope-from rpseguin@yahoo.com) Received: (qmail 15694 invoked by uid 60001); 24 Jan 2000 19:08:34 -0000 Message-ID: <20000124190834.15693.qmail@web2103.mail.yahoo.com> Received: from [63.80.94.77] by web2103.mail.yahoo.com; Mon, 24 Jan 2000 11:08:34 PST Date: Mon, 24 Jan 2000 11:08:34 -0800 (PST) From: Ralph Seguin Subject: Re: FreBSD 3.3, power off and power button stuff To: ROGIER MULHUIJZEN Cc: freebsd-hackers@freebsd.org, brooks@one-eyed-alien.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 'dmesg | grep apm' > If that returns nothing your kernel doesn't have APM > in it. Check if > you went through all the steps of compiling and > installing a custom kernel. Pretty sure I did all of this correctly. Mr Brooks gave me a useful pointer: remove disable from the apm config line. I guess I should actually READ what I'm doing... :-) Here's what I've got: cd /usr/src/sys/i386/conf /usr/sbin/config -g TESTKERNEL cd ../../compile/TESTKERNEL make depend make all Then, I FTP'ed the kernel over to the test machine and did the install line, by hand: Pilfered from the kernel Makefile: bash-2.03# cat kinst #!/bin/sh chflags noschg /kernel mv /kernel /kernel.old PATH=${PATH}:/sbin:/usr/sbin if [ `sysctl -n kern.bootfile` = ${DESTDIR}/kernel ] ; then sysctl -w kern.bootfile=${DESTDIR}/kernel.old ; if [ -f /var/db/kvm_kernel.db ] ; then mv -f /var/db/kvm_kernel.db /var/db/kvm_kernel.old.db fi fi install -c -m 555 -o root -g wheel -fschg kernel / > Or you might get something along the lines of 'apm0 > not found at .....' > in that case your BIOS doesn't have APM enabled. (if > it supports it at all) It's an Intel i810E motherboard which has APM support. Apparently other people have had trouble with shutdown -p not working in 3.x kernels. Unfortunately, I don't have the option of going to -current, so I need to get it going in 3.3-RELEASE. What files are involved in APM and power control? Would it be easy to produce a patch to merge in to 3.3-RELEASE? Does anyone have shutdown -p / halt -p working in 3.3-RELEASE? Reading the LINT kernel config file, it mentions VM86 being related to apm? Should I be turning this option on (I'm going to try that as an experiment soon)? Thanks. -Ralph rpseguin@yahoo.com __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message