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 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 shutdown

Initiates target device shutdown.

pmtool bootReason gpio  <gpioNum>

Checks if the specified gpio triggers' target device boot.

pmtool bootReason timer

Checks if the timer expiry triggers' 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.