PortCls Registry Power Settings
This topic explains the PortCls registry power settings.
In Windows, (PortCls) miniport drivers can use registry values in the driver’s registry key to do the following:
Determine whether or not PortCls enables idle power management
Determine the idle timeout values for battery conservation mode, versus high performance mode
By default, Windows has power settings that PortCls uses to determine whether to register for "device idle" detection with the power manager, when the runtime power framework indicates that power is no longer required. The parameters that are used to describe the power setting profile are defined as follows.
Registry value | Data type | Default value | Description |
---|---|---|---|
ConservationIdleTime | REG_BINARY | 0 | Idle timeout for the device, when the system is on battery power. |
IdlePowerState | REG_BINARY | 3 (D3)
Valid values: 1 - D1 2 - D2 3 - D3 |
Specifies the power state that the device will enter, when power is no longer needed. |
PerformanceIdleTime | REG_BINARY | 0 | Idle timeout for the device, when the system is on AC power. |
The following Windows registry fragment shows the syntax that is used for providing the power setting information.
[MyAudioDevice.AddReg]
HKR,PowerSettings,ConservationIdleTime,%REG_BINARY%, 0x1e, 0x00, 0x00, 0x00
HKR,PowerSettings,PerformanceIdleTime,%REG_BINARY%, 0x00, 0x00, 0x00, 0x00
HKR,PowerSettings,IdlePowerState,%REG_BINARY%, 0x03, 0x00, 0x00, 0x00
The preceding fragment shows a hexadecimal (hex) value of "1e" for the ConservationIdleTime, and this equates to a 30-second idle timeout. The hex value of "0" shown for PerformanceIdleTime means that idle management has been disabled. And the value of "03" shown for the IdlePowerState means that when power is no longer needed, the device associated with this power setting profile will enter the D3 power state.