6.x acpi powerbutton

Andriy Gapon avg at freebsd.org
Mon May 18 16:04:54 UTC 2009


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


More information about the freebsd-acpi mailing list