#
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 ...
|
#
c9db30cd |
| 13-Nov-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
power_daemon: use wait_for_objects() instead of polling.
* acpi_button and acpi_lid support select/deselect hooks. * power_daemon now uses a thread waiting for lid or power button events. * a power
power_daemon: use wait_for_objects() instead of polling.
* acpi_button and acpi_lid support select/deselect hooks. * power_daemon now uses a thread waiting for lid or power button events. * a power button event is still hardcoded to a shutdown. * a lid event only displays a message.
show more ...
|
#
28fd5537 |
| 13-Nov-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
power_daemon: code cleanup, added copyright header.
|
#
a84e14ca |
| 16-Dec-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Merge branch 'master' of git://github.com/haiku/haiku
|
#
19ae20e6 |
| 05-Nov-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Merge branch 'master' into pm-flat
Conflicts: build/jam/HaikuImage build/jam/OptionalBuildFeatures build/jam/OptionalPackages build/jam/UserBuildConfig.sample data/bin/installoptionalpackage s
Merge branch 'master' into pm-flat
Conflicts: build/jam/HaikuImage build/jam/OptionalBuildFeatures build/jam/OptionalPackages build/jam/UserBuildConfig.sample data/bin/installoptionalpackage src/apps/deskbar/DeskbarMenu.cpp src/servers/debug/DebugServer.cpp src/system/kernel/fs/vfs.cpp
show more ...
|
#
0fa0204f |
| 28-Oct-2011 |
François Revol <revol@free.fr> |
Use the new private roster API to shutdown. Maybe we should have a confirmation alert the first time ? Btw, the power_button driver should really implement select() or some other non-polling mechanis
Use the new private roster API to shutdown. Maybe we should have a confirmation alert the first time ? Btw, the power_button driver should really implement select() or some other non-polling mechanism, it sux having to waste cpu.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42934 a95241bf-73f2-0310-859d-f6bbb57e9c96
show more ...
|
#
d86d43eb |
| 24-Feb-2005 |
Nathan Whitehorn <nwhitehorn@nowhere.fake> |
Added the beginnings of our power management daemon. Currently does nothing except tell the roster to shut down when you press the power button (in conjuction with acpi_button, of course). Eventually
Added the beginnings of our power management daemon. Currently does nothing except tell the roster to shut down when you press the power button (in conjuction with acpi_button, of course). Eventually will do things like display low power warnings, spin down hard disks, and display the requisite power info deskbar replicant.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11466 a95241bf-73f2-0310-859d-f6bbb57e9c96
show more ...
|