Back to top

How to power the device on or off when connected or disconnected from a power source


  • Knox SDK
  • Knox version 2.6 and higher


This article provides you with the API methods to programmatically power on or off the device when connected or disconnected to a power source.

To automatically power on the device when it’s connected to a power source, call SystemManager.setForceAutoStartUpState().

To automatically power off the device when it’s disconnected from a power source, call SystemManager.setForceAutoShutDownState().

Additional information

Refer to the Knox SDK API reference for further details.

To learn more about how to use Knox SDKs, refer to About the Knox SDK.

Back to KBAs

Is this page helpful?