History log of /haiku/src/servers/power/lid_monitor.cpp (Results 1 – 2 of 2)
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

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.

show more ...


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

power_daemon: added lid_monitor.

Thanks Rene!