Power manager module

Use the power manager module to reduce the energy consumption of battery-powered devices. The module achieves this by switching to low power modes when the device is not used for a longer period of time. The power manager module is by default enabled, along with all of the required dependencies for every nRF Desktop device.

Module events

Source Module

Input Event

This Module

Output Event

Sink Module

Bluetooth LE advertising module

wake_up_event

power_manager

Buttons module

HID forward module

Motion module

Power manager module

Wheel module

USB state power manager module

force_power_down_event

Bluetooth state power manager module

keep_alive_event

HID state power manager module

Source modules for module_state_event

module_state_event

Bluetooth state power manager module

power_manager_restrict_event

Device Firmware Upgrade module

USB state power manager module

Power manager module

power_down_event

power_down_event

Sink modules for power_down_event

wake_up_event

Sink modules for wake_up_event

Note

See the Overview: Firmware architecture for more information about the event-based communication in the nRF Desktop application and about how to read this table.

Configuration

nRF Desktop uses the power manager module from the Common Application Framework (CAF). The CONFIG_DESKTOP_POWER_MANAGER Kconfig option selects CONFIG_CAF_POWER_MANAGER and aligns the default module configuration to the application requirements. The CONFIG_DESKTOP_POWER_MANAGER Kconfig option is implied by the CONFIG_DESKTOP_COMMON_MODULES Kconfig option. The CONFIG_DESKTOP_COMMON_MODULES option is enabled by default and is not user-assignable.

Additionally, the CONFIG_CAF_POWER_MANAGER_STAY_ON option is automatically enabled for nRF Desktop dongles (CONFIG_DESKTOP_DESKTOP_ROLE_HID_DONGLE).

Implementation details

See the CAF power manager module page for implementation details.