From owner-freebsd-hackers Thu Feb 19 10:36:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA27647 for freebsd-hackers-outgoing; Thu, 19 Feb 1998 10:36:56 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA27636 for ; Thu, 19 Feb 1998 10:36:45 -0800 (PST) (envelope-from wilko@yedi.iaf.nl) Received: by uni4nn.gn.iaf.nl with UUCP id AA24445 (5.67b/IDA-1.5 for hackers@FreeBSD.ORG); Thu, 19 Feb 1998 19:35:30 +0100 Received: (from wilko@localhost) by yedi.iaf.nl (8.8.7/8.6.12) id TAA01110; Thu, 19 Feb 1998 19:05:39 +0100 (MET) From: Wilko Bulte Message-Id: <199802191805.TAA01110@yedi.iaf.nl> Subject: Re: Graceful shutdown by single keypress? In-Reply-To: <561614.3096881785@stefan.promo.de> from Stefan Bethke at "Feb 19, 98 12:56:25 pm" To: stefan@promo.de (Stefan Bethke) Date: Thu, 19 Feb 1998 19:05:39 +0100 (MET) Cc: hackers@FreeBSD.ORG X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-Pgp-Info: PGP public key at 'finger wilko@freefall.freebsd.org' 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 As Stefan Bethke wrote... > For an exibition, we need a system that can be shut down gracefully by CeBIT? > As this system will be out there on its own, with no-one near with even the > faintest knowledge of unix (or computers at all), I want it to be as rugged ^---- Really sounds like CeBIT ;-) > as possible. Most filesystems will be mounted r/o, and those that are not > can be reconstructed on the fly. > > However, as I don't like the idea of telling people to simply cut off power > to the system (there won't be neither monitor nor keyboard), I'm looking > into an ATX system with APM support that can switch itself off. > If the suspend key won't allow shutting down the system, I could also plug > the key (or the reset key) into the LPT or COM port to be polled by some > daemon, which then would do a shutdown with power off. > > It would be acceptable for me to hack the kernel to add any necessary APM > power-off command, if needed. I suppose you could look into the ctl-alt-del hooks in the console driver that currently force a reboot. Or patch the NMI hook and add a 0.25DM switch to the IOCHKN line. This would still need a manual poweroff. W/ _ ______________________________________________________________________ | / o / / _ Bulte email: wilko @ yedi.iaf.nl http://www.tcja.nl/~wilko |/|/ / / /( (_) Arnhem, The Netherlands - Do, or do not. There is no 'try' --------------- Support your local daemons: run [Free,Net,Open]BSD Unix -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message