Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2009 19:04:29 +0300
From:      Andriy Gapon <avg@freebsd.org>
To:        Nate Lawson <nate@root.org>
Cc:        sclark46@earthlink.net, freebsd-acpi@freebsd.org, Ian Smith <smithi@nimnet.asn.au>
Subject:   Re: 6.x acpi powerbutton
Message-ID:  <4A11870D.1030805@freebsd.org>
In-Reply-To: <49EF15B0.10402@icyb.net.ua>
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> <20090417200726.GG3014@deviant.kiev.zoral.com.ua> <49E8E6E3.40304@root.org> <49EDFAED.4030606@icyb.net.ua> <49EE1863.1000306@root.org> <49EF15B0.10402@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
on 22/04/2009 16:03 Andriy Gapon said the following:
> on 21/04/2009 22:02 Nate Lawson said the following:
>> They are interested in the initiator of the event, the button itself. So
>> you'd be adding a printf to the power button handler, "power button
>> pressed". Then the normal shutdown messages would be logged but they
>> would know the reason. Remember that with sysctl, you can configure
>> different events to button mappings. So the power button could be used
>> to initiate a suspend, for example.
> 
> Yes, I agree.
> Which place do you think is the best for this log - acpi sleep event handler
> (acpi_system_eventhandler_sleep) or individual sleep event triggers (power button
> sleep button, lid)?

Following up on this - maybe we can just change ACPI_VPRINT to device_printf in
acpi_button_notify_sleep?


-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A11870D.1030805>