Need to change default nvpmodel mode & clock freq's

I have nvidia jetson AGX Xavier board. The nvpmodel power mode is 3 bydefault.
I need to change the power mode to mode 0 & also set the jetson clocks to max for cpu’s & gpu.
I know how to do these changes using commands like nvpmodel -m & jetson_clocks.
But I want to make these changes in the nvidia kernel image so that we don’t need to run these commands everytime & the settings are fixed.

For setting the nvpmodel by default I checked the below post which does the job. where we can change the default mode by changing /etc/nvpmodel.conf file.

But I have not find anything for setting the clocks to max by deafult without running jetson_clocks.
So I want to ask is there any way to set the cpu & gpu freq’s to max in given mode bydefault by making any change in rootfs or kernel image??

Hi hc_0302,

Are you using the devkit or custom board for AGX Xavier?
What’s your Jetpack version in use?

Have you tried to add jetson_clocks command in any boot up script to run it automatically?

Hi @KevinFFF

I am using custom board for AGX Xavier. The jetpack version used is 4.6.

I don’t want to use jetson_clocks in boot up script. Is there any other way to set this permanently in rootfs with any boot up script??

Please refer to the following steps to configure the governor of GPU/CPU as performance for your use case.

$ nvpmode -m 0 (do it once)
$ echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
$ echo performance | tee /sys/class/devfreq/*gpu/governor


nvpmodel -m 0 , it is used to temporarily set the mode to 0.
Once the board is rebooted again it goes back to default mode (mode 3).

Let me know how can this change be done in rootfs to make it permanently bydefault mode 0?

For nvpmodel mode 0, please configure < PM_CONFIG DEFAULT=0 > in <Linux_for_Tegra>/rootfs/etc/nvpmodel/nvpmodel_t194.conf for your AGX Xavier.

ok . I can try this.

One more issue I faced is that changing the cpu & gpu governor using below commands is not reflecting after reboot.

$ echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
$ echo performance | tee /sys/class/devfreq/*gpu/governor

I mean once we reboot the changes are reset back to previous values. How can we make it fixed in rootfs ?

What I mean is to add these 2 commands in the boot script so that it will be loaded during boot up automatically.

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