pmtool

Use the Power Manager pmtool to set power management options.

Usage

pmtool bootOn gpio  <gpioNum> <triggerOption>
pmtool bootOn timer <timeOutVal>
pmtool bootOn adc <adcNum> <pollingInterval> <bootAboveValue> <bootBelowValue>
pmtool bootOn status [gpio <gpioNum>] [adc <adcNum>] <timer> <shutdown>
pmtool shutdown
pmtool bootReason gpio <gpioNum>
pmtool bootReason adc <adcNum>
pmtool query

pmtool bootOn gpio <gpioNum> <triggerOption>

Configure specified gpio as boot source. TriggerOption specifies the gpio state that will trigger device boot: high, low, rising, falling, both, off.

pmtool bootOn timer <timeOutVal>

Configure specified timer as boot source. timeOutVal specifies the time interval seconds to trigger device boot.

pmtool bootOn adc <adcNum> <pollingInterval> <bootAboveValue> <bootBelowValue>

Configure the specified adc as a boot source. The bootBelowValue and bootAboveValue parameters are integer value in milliVolts. If bootAboveValue is less than bootBelowValue, the device will boot if an ADC reading falls between bootAboveValue and bootBelowValue. If bootAboveValue is greater than bootBelowValue, the system will boot if an ADC reading is either above bootAboveValue or below bootBelowValue. The pollingInterval parameter specifies the time in milliseconds between ADC samples.

pmtool bootOn status [gpio <gpioNum>] [adc <adcNum>] <timer> <shutdown>

Displays all the information set for gpio, adc, timer, and shutdown strategies. If only 'status' is specified it will return all information. If specified with 'gpio' it will return information on all GPIOs. If 'gpio' and a 'gpioNum' is specified it will only return information about that particular gpio. This is the same behaviour for ADC. The 'timer' parameter provides information about its timeout settings. The 'shutdown' parameter will provide information about which power mode the device will go into, such as ULPM or PSM.

pmtool shutdown

Initiates target device shutdown.

pmtool bootReason gpio  <gpioNum>

Checks if the specified gpio triggered target device boot.

pmtool bootReason timer

Checks if the timer expiry triggered target device boot.

pmtool bootReason adc <adcNum>

Checks if the specified adc triggered device boot.

pmtool query

Displays the current ultra-low power manager firmware version.

pmtool --help

Prints help text to standard out and exits.