• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Power Management<a name="EN-US_TOPIC_0000001121107655"></a>
2
3-   [Introduction](#section11660541593)
4-   [Directory Structure](#section19472752217)
5-   [Usage](#section19959125052315)
6-   [Repositories Involved](#section63151229062)
7
8## Introduction<a name="section11660541593"></a>
9
10The power management subsystem provides the following functionalities:
11
121.  Rebooting the device
132.  Managing running locks
143.  Querying the power status
154.  Obtaining and reporting the charging and battery status
165.  Turning on/off the device screen and adjusting the screen brightness
17
18**Figure  1**  Power management subsystem architecture<a name="fig7607759319"></a>
19
20
21![](figures/power-management-subsystem-architecture.png)
22
23## Directory Structure<a name="section19472752217"></a>
24
25```
26/base/powermgr
27├── battery_manager            # Battery manager
28│   ├── hdi                    # Hardware Driver Interfaces (HDIs)
29│   ├── interfaces             # APIs
30│   ├── sa_profile             # SA profile
31│   ├── services               # Services
32│   └── utils                  # Utilities
33├── display_manager            # Display manager
34│   ├── interfaces             # APIs
35│   └── sa_profile             # SA profile
36│   └── services               # Services
37│   └── utils                  # Utilities
38├── powermgr_lite              # Lite power manager
39│   ├── interfaces             # APIs
40│   └── services               # Services
41└── power_manager              # Power manager
42    ├── interfaces             # APIs
43    ├── sa_profile             # SA profile
44    └── services               # Services
45    └── utils                  # Utilities
46```
47
48## Usage<a name="section19959125052315"></a>
49
50You can use the APIs provided by the power management subsystem to create and release a running lock, obtain battery information, adjust the screen brightness, reboot a device, and power off a device.
51
52## Repositories Involved<a name="section63151229062"></a>
53
54**Power Management subsystem**
55
56powermgr\_battery\_manager
57
58powermgr\_power\_manager
59
60powermgr\_display\_manager
61
62