From owner-freebsd-acpi@FreeBSD.ORG Sat Apr 18 08:28:17 2009 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94AEB106564A; Sat, 18 Apr 2009 08:28:17 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id 05B398FC18; Sat, 18 Apr 2009 08:28:16 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id n3I8SDtH011648; Sat, 18 Apr 2009 18:28:14 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 18 Apr 2009 18:28:13 +1000 (EST) From: Ian Smith To: Chuck Swiger In-Reply-To: <1F394E42-BB02-41AC-8A52-C47A76EC55C9@mac.com> Message-ID: <20090418170826.T34434@sola.nimnet.asn.au> References: <49DE1F8B.2080400@earthlink.net> <49DE2E6D.5050001@icyb.net.ua> <49DE596E.2050406@earthlink.net> <49DEFF53.1040306@icyb.net.ua> <49DF7A1C.90009@root.org> <20090418043432.O34434@sola.nimnet.asn.au> <49E8D824.1000001@root.org> <1F394E42-BB02-41AC-8A52-C47A76EC55C9@mac.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-acpi@freebsd.org, FreeBSD Stable List , Andriy Gapon Subject: Re: 6.x acpi powerbutton X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Apr 2009 08:28:18 -0000 On Fri, 17 Apr 2009, Chuck Swiger wrote: > On Apr 17, 2009, at 12:27 PM, Nate Lawson wrote: > > > Perhaps a silly question, but is it too late at this stage of the game > > > to try logging S5 events to syslog before dying? I agree with Stephen, > > > logging 'shutdown by powerbutton' surely beats what might otherwise > > > resemble a spontaneous reboot? Or is something already logged here? > > > > I'm not resisting this, but I'm having trouble seeing the importance. > > What happens differently than if someone hits CTRL-ALT-DEL on a virtual > > console? > > Well, I'd like to get a one-line message saying "rebooted by CTRL-ALT-DEL" > versus "shutdown by powerbutton". Other systems would log a one-liner like > "system rebooted by /etc/shutdown -i 6: _MESSAGE_".... I don't know about C-A-D as I've always disabled it in my kernels - lest some 'windows expert' may be hoping to see a TaskList - but 'reboot' and 'shutdown -[rhp] ..' are already logged nicely: May 31 16:25:26 paqi reboot: rebooted by root May 31 16:25:26 paqi syslogd: exiting on signal 15 May 31 16:26:30 paqi syslogd: kernel boot file is /boot/kernel/kernel Mar 31 20:04:14 paqi shutdown: power-down by smithi: down after fixing localtime Sydney Mar 31 19:04:32 paqi named[16442]: stopping command channel on 127.0.0.1#953 Mar 31 19:04:33 paqi named[16442]: exiting Mar 31 19:04:33 paqi syslogd: exiting on signal 15 Mar 31 19:07:16 paqi syslogd: kernel boot file is /boot/kernel/kernel I suspect a 'windows expert' would have to break down doors to get to Nate's boxes, but for those of us condemned to being remote catherders, a powerbutton shutdown message would be helpful. cheers, Ian