From owner-freebsd-hackers Fri Dec 21 19:14:15 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from netcop.newsbastards.org (pop-mu-9-2-dialup-120.freesurf.ch [194.230.146.120]) by hub.freebsd.org (Postfix) with ESMTP id 2ED4C37B419 for ; Fri, 21 Dec 2001 19:13:56 -0800 (PST) Received: (from root@localhost) by dastardly.newsbastards.org (8.11.6/8.11.6) id fBM1Lkn85371; Sat, 22 Dec 2001 02:21:46 +0100 (CET) (envelope-from bounce@dcf77-zeit.netscum.dyndns.dk) Date: Sat, 22 Dec 2001 02:21:46 +0100 (CET) Message-Id: <200112220121.fBM1Lkn85371@dastardly.newsbastards.org> To: hackers@freebsd.org Subject: shutdown -p sometimes doesn't... From: BOUWSMA Beery Organization: Men not wearing any pants that dont shave X-Hacked: via telnet to your port 25, what else? X-Internet-Access-Provided-By: TDC Suisse AG, Rumlang X-NetScum: Yes X-One-And-Only-Real-True-Fluffy: No Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [replies sent directly to me may timeout and bounce, since I'm not online as often as I should be, but I'll check the list archives] Servus I have a machine here with a power manglement BIOS that allows me to enable automatic power-on at a scheduled time. Kewl, eh? Normally (when above feature is disabled) `shutdown -p' will power-off the machine, since I've enabled APM in rc.conf, which is well and good. However, if I happen to have made no other changes than to enable power-on in the BIOS, `shutdown -p' is no different from an ordinary reboot. The machine goes through all the motions of poweroff, but instead reboots. I tried adding debuggery to see if I could figure out if enabling power-on made any noticeable difference to the kernel, but all looked the same. Now, I've just installed NetBSD on the same machine, and I've used windows as well, which had no problems with poweroff whether or not I enabled auto-poweron. I figured doze was probably doing something weird, but when the NetBSD `poweroff' command succeeded in powering off the machine immediately after FreeBSD `shutdown -p' caused a reboot, I got disturbed. I tried looking at the NetBSD source k0dez to see if it somehow was poking at the BIOS somewhat differently or something, but I couldn't see anything obvious as to why it works when FreeBSD fails. Would anyone care to take a stab at fixing this, or offer insight as to why enabling powerup automagically would be enough to make the FreeBSD shutdown -p poweroff calls fail? I'm mystified thanks barry bouwsma To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message