6.x acpi powerbutton

2009-04-09 Thread Stephen Clark
Hello, I am trying to figure out what happens on a soft poweroff? Is there a userspace script that gets called? Thanks, Steve ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send

Re: 6.x acpi powerbutton

2009-04-09 Thread Andriy Gapon
on 09/04/2009 19:17 Stephen Clark said the following: > Hello, > > I am trying to figure out what happens on a soft poweroff? Is there a > userspace script that gets called? If everything works correctly, then acpi driver sends a signal to init which causes a typical graceful shutdown. BTW, was

Re: 6.x acpi powerbutton

2009-04-09 Thread Stephen Clark
Andriy Gapon wrote: on 09/04/2009 19:17 Stephen Clark said the following: Hello, I am trying to figure out what happens on a soft poweroff? Is there a userspace script that gets called? If everything works correctly, then acpi driver sends a signal to init which causes a typical gra

Re: 6.x acpi powerbutton

2009-04-10 Thread Andriy Gapon
on 09/04/2009 23:24 Stephen Clark said the following: > Probably not. But I spent a couple of hours googling without much luck > so I got desperate. ;-) Let me introduce freebsd-a...@freebsd.org > Is there a reason it doesn't send and event like Linux that can be acted > upon by user space other

Re: 6.x acpi powerbutton

2009-04-10 Thread Nate Lawson
Andriy Gapon wrote: > on 09/04/2009 23:24 Stephen Clark said the following: >> Is there a reason it doesn't send and event like Linux that can be acted >> upon by user space other >> than signaling init? I like to have a message written in >> /var/log/messages that someone pressed >> the powerbutto

Re: 6.x acpi powerbutton

2009-04-17 Thread Ian Smith
On Fri, 10 Apr 2009, Nate Lawson wrote: > Andriy Gapon wrote: > > on 09/04/2009 23:24 Stephen Clark said the following: > >> Is there a reason it doesn't send and event like Linux that can be acted > >> upon by user space other > >> than signaling init? I like to have a message written in > >

Re: 6.x acpi powerbutton

2009-04-17 Thread Nate Lawson
Ian Smith wrote: > On Fri, 10 Apr 2009, Nate Lawson wrote: > > Andriy Gapon wrote: > > > on 09/04/2009 23:24 Stephen Clark said the following: > > >> Is there a reason it doesn't send and event like Linux that can be acted > > >> upon by user space other > > >> than signaling init? I like to h

Re: 6.x acpi powerbutton

2009-04-17 Thread Kostik Belousov
On Fri, Apr 17, 2009 at 12:27:32PM -0700, Nate Lawson wrote: > Ian Smith 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 othe

Re: 6.x acpi powerbutton

2009-04-17 Thread Chuck Swiger
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? O

Re: 6.x acpi powerbutton

2009-04-17 Thread Nate Lawson
Kostik Belousov wrote: > On Fri, Apr 17, 2009 at 12:27:32PM -0700, Nate Lawson wrote: >> Ian Smith 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' su

Re: 6.x acpi powerbutton

2009-04-18 Thread Stephen Clark
Nate Lawson wrote: Ian Smith wrote: On Fri, 10 Apr 2009, Nate Lawson wrote: > Andriy Gapon wrote: > > on 09/04/2009 23:24 Stephen Clark said the following: > >> Is there a reason it doesn't send and event like Linux that can be acted > >> upon by user space other > >> than signaling init? I

Re: 6.x acpi powerbutton

2009-04-18 Thread Ian Smith
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 b