How rdkcentral/entservices-powermanager works
This repository implements a Thunder/WPEFramework PowerManager plugin, despite the template README. Its principal workflow is a client request through the plugin’s IPowerManager implementation to power-state, deep-sleep, reboot, or thermal management, with platform operations handled by hardware abstraction implementations and settings retained by the plugin. The source index supports the module and controller boundaries, but does not expose every dispatch or implementation call; dashed links mark those unverified handoffs. Other documented-in-code capabilities include acknowledgements, wakeup configuration, and thermal protection.
Main entry points: PowerController.cpp Power controller · PowerManagerImplementation.cpp Power manager API · DeepSleepController.cpp Deep sleep controller · PowerManager.cpp PowerManager plugin
Components 20
Plugin API
- PowerManager plugin
plugin/PowerManager.cpp - Plugin module
plugin/Module.cpp - Power manager API
plugin/PowerManagerImplementation.cpp - Transition acknowledgements
plugin/AckController.h
Power Management
- Power controller
plugin/PowerController.cpp - Deep sleep controller
plugin/DeepSleepController.cpp - Reboot controller
plugin/RebootController.cpp - Power platform
plugin/hal/PowerImpl.h - Deep sleep platform
plugin/hal/DeepSleepImpl.h
Thermal Management
- Thermal controller
plugin/ThermalController.cpp - Thermal platform
plugin/hal/ThermalImpl.h - MFR thermal platform
plugin/hal/ThermalMfrImpl.h - Thermal interface
plugin/hal/Thermal.h
State and Platform
- Persistent settings
plugin/Settings.cpp - Settings model
plugin/Settings.h - Power utilities
plugin/PowerUtils.cpp - Async job helper
plugin/LambdaJob.h - Power platform interface
plugin/hal/Power.h - Deep sleep interface
plugin/hal/DeepSleep.h
Other components
- Power client
Connections 26
- Power client → PowerManager plugin: requests
- PowerManager plugin → Power manager API: exposes API
- PowerManager plugin → Plugin module: registers
- Power manager API → Power controller: dispatches power
- Power manager API → Deep sleep controller: dispatches sleep
- Power manager API → Thermal controller: dispatches thermal
- Power manager API → Transition acknowledgements: coordinates transitions
- Power controller → Deep sleep controller: activates sleep
- Power controller → Reboot controller: requests reboot
- Power controller → Power platform: calls platform
- Deep sleep controller → Deep sleep platform: calls platform
- Thermal controller → Thermal platform: uses platform
- Thermal controller → MFR thermal platform: selects platform
- Thermal platform → Thermal interface: implements
plugin/hal/ThermalImpl.h - MFR thermal platform → Thermal interface: implements
plugin/hal/ThermalMfrImpl.h - Power platform → Power platform interface: implements
plugin/hal/PowerImpl.h - Deep sleep platform → Deep sleep interface: implements
plugin/hal/DeepSleepImpl.h - Power controller → Settings model: reads state
- Deep sleep controller → Settings model: updates timeout
- Persistent settings → Settings model: loads and saves
plugin/Settings.cpp - Power controller → Async job helper: schedules jobs
plugin/PowerController.cpp - Deep sleep controller → Async job helper: schedules jobs
plugin/DeepSleepController.cpp - Reboot controller → Async job helper: schedules jobs
plugin/RebootController.cpp - Power manager API → Power utilities: uses utilities
plugin/PowerManagerImplementation.cpp - Deep sleep controller → Power utilities: uses utilities
plugin/DeepSleepController.cpp - Power controller → Power utilities: uses utilities
plugin/PowerController.cpp