From owner-freebsd-stable@FreeBSD.ORG Fri Sep 22 12:45:04 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DAC316A47B for ; Fri, 22 Sep 2006 12:45:04 +0000 (UTC) (envelope-from dpelleg@atoz.libagent.org) Received: from atoz.libagent.org (atoz.libagent.org [69.55.228.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id D010343D45 for ; Fri, 22 Sep 2006 12:45:03 +0000 (GMT) (envelope-from dpelleg@atoz.libagent.org) Received: by atoz.libagent.org (Postfix, from userid 1002) id 701633A4; Fri, 22 Sep 2006 15:45:03 +0300 (IDT) Date: Fri, 22 Sep 2006 15:45:03 +0300 From: Dan Pelleg To: stable@freebsd.org Message-ID: <20060922124503.GA96991@atoz.libagent.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: reboot on power button? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 12:45:04 -0000 I'm setting up a PC-class machine to be used in an appliance-like setting. The people using it are far more likely to hit the power button then ctl-alt-del when they think it needs a restart (not often, but it may still happen). How do I tell ACPI to reboot when the power button is hit? Right now, I'm getting the expected sleep effect (S1 and S5 both work, suspending and shutting down respectively). I thought of installing a devd.conf entry, but it seems the event is intercepted beforehand. I need something like acpi_ibm's dev.acpi_ibm.0.events to pass the event over. Other approaches are also welcome. -- Dan Pelleg