Jetson Orin automatically change power mode at runtime

Hey,

I want to use the Orin NX and Orin AGX in a low power setting with a backup battery.
For this I would like to automatically change to the lowest power mode immediatly when battery is being used.

Is this possible? What are the issues?

Thanks!

Maybe you can use a script to do so?

while(1){
  status=check_battery();
  if status==low_battery;
    run_nvpmodel_command();
}

Since the power mode can be changed via sudo nvpmodel -m POWER_MODE.

@jameskuo thanks for your quick reply!

But does the board need to be restarted in order for the changes to apply?
Or can I change them on the fly as I want?
Thanks!

Hi:
It required a reboot after nvpmodel command.
Not sure if we can reduce the clock rate on the fly. I’ll leave it to Nvidia to answer it.
I did see some clock rate boost in runtime for debug use, like echo 319000000 > /sys/clockrate, etc. But I’m not sure if it can be used as a solution for power reducing.
Documents about managing power: Link

Thanks so much, maybe the clock speed could be a workaround.
Would be super helpful if someone could add some input who tried this before! :)