The Chrome OS power manager consists of several components:
powerd: C++ system daemon running as the
poweruser that initiates dimming the screen, suspending the system, etc.
powerd_setuid_helper: setuid root binary used by powerd to perform actions requiring additional privileges.
powerd_dbus_suspend: shell script executed by powerd (by way of
powerd_setuid_helper) to suspend and resume the system.
send_metrics_on_resume: shell script executed by
powerd_suspendand by the
send-boot-metricsUpstart job to report suspend-related metrics.
This repository contains the following subdirectories:
|Code shared between powerd and tools|
|D-Bus policy configuration files|
|Default pref files installed to |
|Detailed documentation in Markdown format|
|Scripts shared between Upstart and systemd|
|systemd-specific config files|
|Upstart-specific config files installed to |
|Pref files conditionally installed based on USE flags|
|Power manager daemon|
|High-level parts of powerd that make policy decisions|
|Low-level parts of powerd that communicate with the kernel|
|Utility programs; may depend on |
|udev configuration files and scripts|