How can I enable Jetson Clocks to run automatically at startup on jetson agx orin?

Hi everyone,
I would like to ensure that the CPU and GPU frequencies remain in Jetson clock mode every time the system boots up. I’ve come across some articles mentioning potential issues with achieving this through automatic startup, such as unsuccessful configuration or the need to set a sleep delay, which seems a bit unreliable.

Therefore, I would like to ask, what is your recommended and most reliable method to maintain Jetson clock mode on every boot?

Reference articles:

  1. How to automatically run jetson_clocks.sh on TX2 at startup
  2. How can I run jetson_clocks automatically after reboot every time?

Info :
Jetson agx orin 32GB
jetpack 6

Hi,
Here are some suggestions for the common issues:

1. Performance

Please run the below command before benchmarking deep learning use case:

$ sudo nvpmodel -m 0
$ sudo jetson_clocks

2. Installation

Installation guide of deep learning frameworks on Jetson:

3. Tutorial

Startup deep learning tutorial:

4. Report issue

If these suggestions don’t help and you want to report an issue to us, please attach the model, command/step, and the customized app (if any) with us to reproduce locally.

Thanks!

Hi @carolyuu
I understand how to start it manually. What I would like to know is how to set it to ‘start automatically on boot’.

you use systemd service to enable that with some delays which may not trigger race condition error.

Hi @WayneWWW
My current setup is as follows: I have chosen multi-user.target as the base, and then jetson_clocks is executed afterward. I would like to know if this target might cause any resource conflicts or if it is appropriate for this purpose. Alternatively, do you have any other recommended targets to suggest?

[Unit]
Description=Jetson Clocks Service
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/usr/bin/jetson_clocks
RemainAfterExit=true

[Install]
WantedBy=multi-user.target

Looks ok to me.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.