Date: Thu, 8 Nov 2001 16:08:24 -0500 From: "Michael Scheidell" <scheidell@fdma.com> To: <freebsd-questions@freebsd.org> Subject: Help debugging shutdown -p please Message-ID: <00bf01c16899$82073540$2801010a@MIKELT>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00bf01c16899$82073540$2801010a>