How do you switch between max-q and max-p

I’ve read in some of the articles about the TX2 that you can switch the power/performance with the command line but I can’t find the name of the command anywhere. jetson_clocks.sh doesn’t look different so I suspect its another file.

jetson_clocks allows you to maximize and restore the clocks (check --help) and illustrates use of the sysfs nodes to customize the performance. For example, /sys/kernel/debug/clock/override.gbus/rate sets the GPU frequency. grep for /sys/ in the script and you’ll find all the sysfs nodes it uses, then you can explore the different directories of options. There’s also the nvpmodel utility for managing the different sysfs nodes:

$ sudo nvpmodel --q --verbose
[sudo] password for nvidia:
NVPM VERB: parsing done for /etc/nvpmodel.conf
NVPM VERB: Current mode: NV Power Mode: MAXP_CORE_ARM
3
NVPM VERB: PM_CONFIG: DEFAULT=MAXP_CORE_ARM(3)
NVPM VERB:      ACTIVE=MAXP_CORE_ARM(3)
NVPM VERB: POWER_MODEL: ID=3 NAME=MAXP_CORE_ARM
NVPM VERB: /sys/devices/system/cpu/cpu1/online 0
NVPM VERB:      value = 0
NVPM VERB: /sys/devices/system/cpu/cpu2/online 0
NVPM VERB:      value = 0
NVPM VERB: /sys/devices/system/cpu/cpu3/online 1
NVPM VERB:      value = 1
NVPM VERB: /sys/devices/system/cpu/cpu4/online 1
NVPM VERB:      value = 1
NVPM VERB: /sys/devices/system/cpu/cpu5/online 1
NVPM VERB:      value = 1
NVPM VERB: /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 0
NVPM VERB:      value = 345600
NVPM VERB: /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 2000000
NVPM VERB:      value = 2000000
NVPM VERB: /sys/devices/17000000.gp10b/devfreq/17000000.gp10b/min_freq 0
NVPM VERB:      value = 140250000
NVPM VERB: /sys/devices/17000000.gp10b/devfreq/17000000.gp10b/max_freq 1120000000
NVPM VERB:      value = 1120000000
NVPM VERB: /sys/kernel/nvpmodel_emc_cap/emc_iso_cap 1600000000
NVPM VERB:      value = 1600000000
NVPM VERB:

Thanks I ran jetson_clocks.sh and it is plenty fast. But I like nvpmodel too. Nice. So far its been perfect. Installed opencv3 and orb_slam2 with gpu enhancements and ROS. Doesn’t take anytime to build opencv especially once you remember -j6 :) I like it. Orb_slam2_gpu gets between high 14’s and 19 fps on a TX1 vs 6-8 without gpu. So I expect some decent numbers from the TX2. Should know later this evening.