Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Overriding the Power State Configuration for an Individual Device

Overriding the Power State Configuration for an Individual Device

The default Power Manager implementation maintains system-state-to-device-state mappings in the registry under the HKEY_LOCAL_MACHINESystemCurrentControlSetState key. Each system power state corresponds to a separate subkey and you can create additional subkeys for OEM-specific power states.

Table 3-19 shows a sample configuration for the system power state On. This configuration causes Power Manager to switch all devices, except the backlight driver BLK1: driver, into the D0 device power state. The backlight driver BLK1: can only go to the D2 state.

Table 3-19 Default and driver-specific power state definitions for system power state On

Location HKEY_LOCAL_MACHINESystemCurrentControlSetStateOn
Entry Flags Default BKL1:
Type REG_DWORD REG_DWORD REG_DWORD
Value 0x00010000 (POWER_STATE_ON) 0 (D0) 2 (D2)
Description Identifies the system power state associated with this registry key. For a list of possible flags, see the Pm.h header file in the PublicCommonSdkInc folder. Sets the power state for drivers by default to the D0 state when the system power state is On. Sets the backlight driver BLK1: to the D2 state when the system power state is On.

Оглавление книги


Генерация: 1.232. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз