From owner-freebsd-questions Thu Nov 8 13: 8:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.fdma.com (mail.fdma.com [216.241.67.73]) by hub.freebsd.org (Postfix) with ESMTP id 107FA37B419 for ; Thu, 8 Nov 2001 13:08:27 -0800 (PST) Received: from MIKELT (mikelt.fdma.lan [10.1.1.40]) by mail.fdma.com (8.11.3/8.11.3) with SMTP id fA8L8Q664803 for ; Thu, 8 Nov 2001 16:08:26 -0500 (EST) Message-ID: <00bf01c16899$82073540$2801010a@MIKELT> From: "Michael Scheidell" To: Subject: Help debugging shutdown -p please X-Mailer: Microsoft Outlook Express 5.50.4522.1200 Date: Thu, 8 Nov 2001 16:08:24 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I can't seem to get shutdown -p to work. OS FREEBSD 4.3 HW intel isp1100 (440ebx? motherboard?) compiled apm0 in kernal, its started, apm at cli shows apm bios version 1.2. problem is shutdown -p doesn't seem to work It doesn't even seem to call apm_power_off(). I did find /usr/src/sys -name '*.c' -exec grep -H apm_power_off {} \; and all it finds /usr/src/sys/i386/apm/apm.c:apm_power_off(void *junk, int howto) /usr/src/sys/i386/apm/apm.c: EVENTHANDLER_REGISTER(shutdown_final, apm_power_off, NULL, looking at shutdown, -p option either calls kill -USR2 1 (sigusr2 to pid 1) or calls 'reboot(nopower)' -v -d on apmd shows that pressing power off button calls what apmd thinks is SUSPENDREQ. adding this to /etc/apmd.conf: sorta works (pressing power button calls shutdown -p) But shutdown-p doesn't turn power off. Anyone got any clues at to where to look? apm_event SUSPENDREQ { exec "shutdown -p +0"; } -- Michael Scheidell Florida Datamation, Inc. Internet Security scheidell@fdma.com 1+(561) 368-9561 See updated IT Security News at http://www.fdma.com/ After system Compromise : http://www.cert.org/tech_tips/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message