From owner-freebsd-hackers Mon Mar 9 09:32:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA16286 for freebsd-hackers-outgoing; Mon, 9 Mar 1998 09:32:00 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from amsoft.ru (amsoft.ru [194.87.86.241]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA16074 for ; Mon, 9 Mar 1998 09:30:05 -0800 (PST) (envelope-from am@amsoft.ru) Received: (from am@localhost) by amsoft.ru (8.8.8/amsoft/1.0) id UAA03954 for freebsd-hackers@freebsd.org; Mon, 9 Mar 1998 20:22:25 +0300 (MSK) From: Andrew Maltsev Message-Id: <199803091722.UAA03954@amsoft.ru> Subject: APM power off (patch) To: freebsd-hackers@FreeBSD.ORG Date: Mon, 9 Mar 1998 20:22:24 +0300 (MSK) Organization: AM'soft X-Location: Oryol (http://www.oryol.ru/), Russia X-Phone: +7 086 229 9988 X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! I've uploaded my patch (2.2-stable based) to ftp://ftp.freebsd.org/pub/FreeBSD/incoming/am-atx-power-off.patch.gz What was done: - kernel apm driver now able to power off system - /sbin/shutdown has new flag `-p' to switch power off after shutdown What I'm not sure in is should apm be considered machine dependent or multi-platform thing? I mean where should call to apm_power_off() be placed - in kern/kern_shutdown.c (where it is placed now) or in i386/i386/machdep.c? Just say, and I'll redo.. Please somebody with commit privilege review the patch and merge it into source tree. I'd tested it on Intel AL440LX mb - works like a charm. Next thing I'll try when I'll have another spare half a hour is safe shutdown by pressing system power button. As far as I can see from APM 1.2 specification it is possible and not too hard to implement. Andrew. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message