1Power Management
2================
3
4Power management of sensors is often a non-trivial task as sensors may have multiple power states
5for various channels. Some sensors may allow for low noise, low power, or suspending channels
6potentially saving quite a bit of power at the cost of noise or sampling speed performance. In very
7low power states sensors may lose their state, turning off even the digital logic portion of the device.
8
9All this is to say that power management of sensors is typically application specific! Often the
10channel states are mutable using :ref:`sensor-attribute`. While total device suspending and resume
11can be done using the power management ref counting APIs if the device implements the necessary
12functionality.
13
14Most likely the API sensors should use for their fully suspended/resume power states is
15:ref:`pm-device-runtime` using explicit calls at an application level to :c:func:`pm_device_runtime_get`
16and :c:func:`pm_device_runtime_put`.
17
18In the future, with :ref:`sensor-read-and-decode` its possible that automatic management of device power management
19would be possible in the streaming case as the application informs the driver of usage at all times
20through requests to read on given events.
21