From owner-freebsd-questions@FreeBSD.ORG Sat Aug 18 04:14:53 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA3FE1065672 for ; Sat, 18 Aug 2012 04:14:53 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id 52FA58FC0A for ; Sat, 18 Aug 2012 04:14:53 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id q7I4EmQB004745; Fri, 17 Aug 2012 22:14:48 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <502F16B7.8050902@dreamchaser.org> Date: Fri, 17 Aug 2012 22:14:47 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120609 Thunderbird/13.0 MIME-Version: 1.0 To: Polytropon References: <502EA73B.6000008@dreamchaser.org> <20120818030537.4d5bf55b.freebsd@edvax.de> <502F017A.7030001@dreamchaser.org> <20120818051716.40ccf88c.freebsd@edvax.de> In-Reply-To: <20120818051716.40ccf88c.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Fri, 17 Aug 2012 22:14:49 -0600 (MDT) Cc: FreeBSD Mailing List Subject: Re: fsck recoveries, configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2012 04:14:53 -0000 On 08/17/12 21:17, Polytropon wrote: > On Fri, 17 Aug 2012 20:44:10 -0600, Gary Aitken wrote: >> On 08/17/12 19:05, Polytropon wrote: >>>> 2. When my machine hung (could not rlogin or ping), I powered >>>> off and rebooted. >>> >>> Does the machine have a "soft power button" and it is configured >>> to issue a "shutdown -p now" (which is quite common)? When you >>> have access to the machine, try that. Even if the machine does >>> not accept network logins, this mechanism might still work. >> >> Hmmm. It has a "soft" power button; have to hold it down 5 sec >> or so to power off. > > That's the "override time" for a "hard power off". If you only > press it once, it should issue "shutdown -p now", but of course > this only works if the system is still responding. Even if the > keyboard input and screen output, as well as networking services > stopped to work, this _might_ still be effective. >> Those things can be configured to issue a command that will actually >> get executed without a login? > > Sure, it has been working for many years. Check the BIOS setup, > some machines can be configured to what the button does. The > default setup of FreeBSD should perform the correct action via > ACPI. > > In the past, it also worked with APM. In that case, /etc/apmd.conf > would contain the command executed when the button was pressed. > On APM-capable machines, the PSU would be switched off, just like > today's ACPI-based systems. Of course that only works with ATX > power supplies, the AT ones usually had a mechanical switch. Ah, I see. The driver raises a signal the system can respond to. >> I assume you're talking about a bios option? How does that work? > > I've seen BIOS setups allowing different actions for the button, > from "go to sleep" to "soft power off" or "hard power off". That > action (hard power off) is taken when pressing the button for > about 5 seconds. The OS can NOT deal with that case. > >> sounds like magic of some sort... Or is this a whole login >> sequence with the shutdown at the end? > > No, it's a system action using ACPI. No magic involved. :-) I'll look at it next time I reboot. Reading the bios manual, it looks like acpi 2.0 support is disabled by default, which may be where it is; otherwise I don't see anything obvious. Thanks.