The Chrome OS power manager consists of several components:
powerd
: C++ system daemon running as the power
user 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_suspend
and by the send-boot-metrics
Upstart job to report suspend-related metrics.The docs/
subdirectory contains additional documentation. Along with answers to frequently-asked questions, the following information is available:
This repository contains the following subdirectories:
Subdirectory | Description |
---|---|
common | Code shared between powerd and tools |
dbus | D-Bus policy configuration files |
default_prefs | Default pref files installed to /usr/share/power_manager |
docs | Detailed documentation in Markdown format |
init/shared | Scripts shared between Upstart and systemd |
init/systemd | systemd-specific config files |
init/upstart | Upstart-specific config files installed to /etc/init |
optional_prefs | Pref files conditionally installed based on USE flags |
powerd | Power manager daemon |
powerd/policy | High-level parts of powerd that make policy decisions |
powerd/system | Low-level parts of powerd that communicate with the kernel |
tools | Utility programs; may depend on powerd code |
udev | udev configuration files and scripts |