History log of /haiku/src/servers/power/lid_monitor.cpp
Revision Date Author Comments
# bf29cdd7 24-Aug-2014 Rene Gollent <rene@gollent.com>

power_daemon: Refactor to handle multiple exported power devices.

- Each PowerMonitor now exports a set of descriptors rather than
only a single one. This allows e.g. PowerButtonMonitor to watch
multiple possible button event sources rather than one.

This gets power button working again on some hardware that exports
multiple ACPI power buttons, but offers no obvious way to determine
which one is actually active/being used. In the long term though, it'd
be nice to have a well-defined kernel power event interface that an app
could subscribe to, rather than having to watch individual devfs
descriptors.

Thanks to tqh and korli for advice/review.


# 43203494 13-Nov-2013 Jérôme Duval <jerome.duval@gmail.com>

power_daemon: added lid_monitor.

Thanks Rene!


# bf29cdd77788f6761ca85f6039abec2589c45194 24-Aug-2014 Rene Gollent <rene@gollent.com>

power_daemon: Refactor to handle multiple exported power devices.

- Each PowerMonitor now exports a set of descriptors rather than
only a single one. This allows e.g. PowerButtonMonitor to watch
multiple possible button event sources rather than one.

This gets power button working again on some hardware that exports
multiple ACPI power buttons, but offers no obvious way to determine
which one is actually active/being used. In the long term though, it'd
be nice to have a well-defined kernel power event interface that an app
could subscribe to, rather than having to watch individual devfs
descriptors.

Thanks to tqh and korli for advice/review.


# 432034944798b6c0d19ade07efaf8f1d6d8e4e46 13-Nov-2013 Jérôme Duval <jerome.duval@gmail.com>

power_daemon: added lid_monitor.

Thanks Rene!