Jtop service failed in Orin Nx

I install jtop as below

python3 -m pip install --upgrade setuptools wheel twine check-wheel-contents
sudo pip3 install -U jetson-stats

but found jtop service not start, have detail check, it looks like below:
any ideas? thanks a lot

May 27 00:45:48 jeteye systemd[1]: jtop.service: Scheduled restart job, restart counter is at 21.
May 27 00:45:48 jeteye systemd[1]: Stopped jtop service.
May 27 00:45:48 jeteye systemd[1]: Started jtop service.
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.service - jetson_stats 4.3.2 - server loaded
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.service - Running on Python: 3.10.12
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.hardware - Hardware detected aarch64
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.hardware - NVIDIA Jetson 699-level Part Number=699-13767-0001-300
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.hardware - NVIDIA Jetson Module=NVIDIA Jetson Orin NX (8GB ram)
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.hardware - NVIDIA Jetson detected L4T=36.3.0
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.cpu - Found 6 CPU
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.gpu - GPU "gpu" status in /sys/devices/platform/bus@0/17000000.gpu
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.gpu - GPU "gpu" frq in /sys/devices/platform/bus@0/17000000.gpu/devfreq/17000000.gpu
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.gpu - NVIDIA SMI exist!
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.processes - Process service started
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.memory - Found EMC!
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.memory - Memory service started
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.engine - Special Engine group found: [dlaX]
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.engine - Special Engine group found: [pvaX]
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.engine - Engines found: [APE DLA0 NVDEC NVENC NVJPG OFA PVA0 SE VIC]
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "cv0" in thermal_zone2
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "cpu" in thermal_zone0
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "iwlwifi" in thermal_zone9
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "soc2" in thermal_zone7
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "soc0" in thermal_zone5
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "cv1" in thermal_zone3
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "gpu" in thermal_zone1
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "tj" in thermal_zone8
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "soc1" in thermal_zone6
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.temperature - Found thermal "cv2" in thermal_zone4
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.power - Alarms VDD_IN - {'crit_alarm': 0, 'max_alarm': 0}
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.power - Alarms VDD_CPU_GPU_CV - {'crit_alarm': 0, 'max_alarm': 0}
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.power - Alarms VDD_SOC - {'crit_alarm': 0, 'max_alarm': 0}
May 27 00:45:49 jeteye jtop[131516]: [WARNING] jtop.core.power - Skipped "sum of shunt voltages" /sys/bus/i2c/devices/1-0040/hwmon/hwmon2/in7_label
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.power - Found I2C power monitor
May 27 00:45:49 jeteye jtop[131516]: [WARNING] jtop.core.power - Skipped usb-charger type=USB in=usb-charger
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.fan - Fan pwmfan(1) found in /sys/class/hwmon/hwmon1
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.fan - RPM pwm_tach found in /sys/class/hwmon/hwmon3
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.fan - Found nvfancontrol.service
May 27 00:45:49 jeteye jtop[131516]: [INFO] jtop.core.jetson_clocks - jetson_clocks found in /usr/bin/jetson_clocks
May 27 00:45:49 jeteye jtop[131516]: Traceback (most recent call last):
May 27 00:45:49 jeteye jtop[131516]:   File "/usr/local/bin/jtop", line 8, in <module>
May 27 00:45:49 jeteye jtop[131516]:     sys.exit(main())
May 27 00:45:49 jeteye jtop[131516]:   File "/usr/local/lib/python3.10/dist-packages/jtop/__main__.py", line 104, in main
May 27 00:45:49 jeteye jtop[131516]:     server = JtopServer(force=args.force)
May 27 00:45:49 jeteye jtop[131516]:   File "/usr/local/lib/python3.10/dist-packages/jtop/service.py", line 302, in __init__
May 27 00:45:49 jeteye jtop[131516]:     self.nvpmodel = NVPModelService(self.jetson_clocks)
May 27 00:45:49 jeteye jtop[131516]:   File "/usr/local/lib/python3.10/dist-packages/jtop/core/nvpmodel.py", line 456, in __init__
May 27 00:45:49 jeteye jtop[131516]:     name=self._nvpmodel_now['name'],
May 27 00:45:49 jeteye jtop[131516]: TypeError: 'NoneType' object is not subscriptable
May 27 00:45:49 jeteye systemd[1]: jtop.service: Main process exited, code=exited, status=1/FAILURE
May 27 00:45:49 jeteye systemd[1]: jtop.service: Failed with result 'exit-code'.

the version is like below

root@xxx:/home/xxx/test# cat /etc/nv_tegra_release
# R36 (release), REVISION: 3.0, GCID: 36923193, BOARD: generic, EABI: aarch64, DATE: Fri Jul 19 23:24:25 UTC 2024
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
root@jeteye:/home/jeteye/test# cat /etc/nv_boot_control.conf
TNSPEC 3767-300-0001--1-1-orin-nx-8gb-
COMPATIBLE_SPEC 3767--0001--1--orin-nx-8gb-
TEGRA_BOOT_STORAGE nvme0n1
TEGRA_CHIPID 0x23
TEGRA_OTA_BOOT_DEVICE /dev/mtdblock0
TEGRA_OTA_GPT_DEVICE /dev/mtdblock0

Hi jiangpen,

Are you using the devkit or custom board for Orin NX?

May 27 00:45:49 jeteye jtop[131516]: Traceback (most recent call last):
May 27 00:45:49 jeteye jtop[131516]:   File "/usr/local/bin/jtop", line 8, in <module>
May 27 00:45:49 jeteye jtop[131516]:     sys.exit(main())
May 27 00:45:49 jeteye jtop[131516]:   File "/usr/local/lib/python3.10/dist-packages/jtop/__main__.py", line 104, in main
May 27 00:45:49 jeteye jtop[131516]:     server = JtopServer(force=args.force)
May 27 00:45:49 jeteye jtop[131516]:   File "/usr/local/lib/python3.10/dist-packages/jtop/service.py", line 302, in __init__
May 27 00:45:49 jeteye jtop[131516]:     self.nvpmodel = NVPModelService(self.jetson_clocks)
May 27 00:45:49 jeteye jtop[131516]:   File "/usr/local/lib/python3.10/dist-packages/jtop/core/nvpmodel.py", line 456, in __init__
May 27 00:45:49 jeteye jtop[131516]:     name=self._nvpmodel_now['name'],
May 27 00:45:49 jeteye jtop[131516]: TypeError: 'NoneType' object is not subscriptable

From the log you shared, it seems it cannot properly determine or access the current NVIDIA power model(nvpmodel) settings.

Please run the following commands to check nvpmodel configurations

$ sudo nvpmodel -q
$ cat /etc/nvpmodel.conf

Hi @KevinFFF , I am running a customized board,
please see below output, thanks

root@jeteye:/home/jeteye# sudo nvpmodel -q
NVPM WARN: power mode is not set!
root@jeteye:/home/jeteye# cat /etc/nvpmodel.conf
#
# Copyright (c) 2021-2023, NVIDIA CORPORATION.  All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto.  Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.
#
# FORMAT:
# < PARAM TYPE=PARAM_TYPE NAME=PARAM_NAME >
# ARG1_NAME ARG1_PATH_VAL
# ARG2_NAME ARG2_PATH_VAL
# ...
# This starts a section of PARAM definitions, in which each line
# has the syntax below:
# ARG_NAME ARG_PATH_VAL
# ARG_NAME is a macro name for argument value ARG_PATH_VAL.
# PARAM_TYPE can be FILE, or CLOCK.
#
# < POWER_MODEL ID=id_num NAME=mode_name >
# PARAM1_NAME ARG11_NAME ARG11_VAL
# PARAM1_NAME ARG12_NAME ARG12_VAL
# PARAM2_NAME ARG21_NAME ARG21_VAL
# ...
# This starts a section of POWER_MODEL configurations, followed by
# lines with parameter settings as the format below:
# PARAM_NAME ARG_NAME ARG_VAL
# PARAM_NAME and ARG_NAME are defined in PARAM definition sections.
# ARG_VAL is an integer for PARAM_TYPE of CLOCK, and -1 is taken
# as INT_MAX. ARG_VAL is a string for PARAM_TYPE of FILE.
# This file must contain at least one POWER_MODEL section.
#
# < PM_CONFIG DEFAULT=default_mode >
# This is a mandatory section to specify one of the defined power
# model as the default.

###########################
#                         #
# PARAM DEFINITIONS       #
#                         #
###########################

< PARAM TYPE=FILE NAME=CPU_ONLINE >
CORE_0 /sys/devices/system/cpu/cpu0/online
CORE_1 /sys/devices/system/cpu/cpu1/online
CORE_2 /sys/devices/system/cpu/cpu2/online
CORE_3 /sys/devices/system/cpu/cpu3/online
CORE_4 /sys/devices/system/cpu/cpu4/online
CORE_5 /sys/devices/system/cpu/cpu5/online
CORE_6 /sys/devices/system/cpu/cpu6/online
CORE_7 /sys/devices/system/cpu/cpu7/online

< PARAM TYPE=FILE NAME=FBP_POWER_GATING >
FBP_PG_MASK /sys/devices/gpu.0/fbp_pg_mask
FBP_PG_MASK_KNEXT /sys/devices/platform/gpu.0/fbp_pg_mask

< PARAM TYPE=FILE NAME=TPC_POWER_GATING >
TPC_PG_MASK /sys/devices/gpu.0/tpc_pg_mask
TPC_PG_MASK_KNEXT /sys/devices/platform/gpu.0/tpc_pg_mask

< PARAM TYPE=FILE NAME=GPU_POWER_CONTROL_ENABLE >
GPU_PWR_CNTL_EN /sys/devices/gpu.0/power/control
GPU_PWR_CNTL_EN_KNEXT /sys/devices/platform/gpu.0/power/control

< PARAM TYPE=FILE NAME=GPU_POWER_CONTROL_DISABLE >
GPU_PWR_CNTL_DIS /sys/devices/gpu.0/power/control
GPU_PWR_CNTL_DIS_KNEXT /sys/devices/platform/gpu.0/power/control

< PARAM TYPE=CLOCK NAME=CPU_A78_0 >
FREQ_TABLE /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
MAX_FREQ /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
MIN_FREQ /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
FREQ_TABLE_KNEXT /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
MAX_FREQ_KNEXT /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
MIN_FREQ_KNEXT /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

< PARAM TYPE=CLOCK NAME=CPU_A78_1 >
FREQ_TABLE /sys/devices/system/cpu/cpu4/cpufreq/scaling_available_frequencies
MAX_FREQ /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq
MIN_FREQ /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq
FREQ_TABLE_KNEXT /sys/devices/system/cpu/cpu4/cpufreq/scaling_available_frequencies
MAX_FREQ_KNEXT /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq
MIN_FREQ_KNEXT /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq

< PARAM TYPE=CLOCK NAME=GPU >
FREQ_TABLE /sys/devices/17000000.ga10b/devfreq/17000000.ga10b/available_frequencies
MAX_FREQ /sys/devices/17000000.ga10b/devfreq/17000000.ga10b/max_freq
MIN_FREQ /sys/devices/17000000.ga10b/devfreq/17000000.ga10b/min_freq
FREQ_TABLE_KNEXT /sys/devices/platform/17000000.gpu/devfreq_dev/available_frequencies
MAX_FREQ_KNEXT /sys/devices/platform/17000000.gpu/devfreq_dev/max_freq
MIN_FREQ_KNEXT /sys/devices/platform/17000000.gpu/devfreq_dev/min_freq

<PARAM TYPE=CLOCK NAME=EMC >
MAX_FREQ /sys/kernel/nvpmodel_emc_cap/emc_iso_cap
MAX_FREQ_KNEXT /sys/kernel/nvpmodel_clk_cap/emc

< PARAM TYPE=CLOCK NAME=DLA0_CORE >
MAX_FREQ /sys/devices/platform/13e40000.host1x/15880000.nvdla0/acm/clk_cap/dla0_core
MAX_FREQ_KNEXT /sys/devices/platform/bus@0/13e00000.host1x/15880000.nvdla0/clk_cap/dla0_core

< PARAM TYPE=CLOCK NAME=DLA0_FALCON >
MAX_FREQ /sys/devices/platform/13e40000.host1x/15880000.nvdla0/acm/clk_cap/dla0_falcon
MAX_FREQ_KNEXT /sys/devices/platform/bus@0/13e00000.host1x/15880000.nvdla0/clk_cap/dla0_falcon

< PARAM TYPE=CLOCK NAME=DLA1_CORE >
MAX_FREQ /sys/devices/platform/13e40000.host1x/158c0000.nvdla1/acm/clk_cap/dla1_core
MAX_FREQ_KNEXT /sys/devices/platform/bus@0/13e00000.host1x/158c0000.nvdla1/clk_cap/dla1_core

< PARAM TYPE=CLOCK NAME=DLA1_FALCON >
MAX_FREQ /sys/devices/platform/13e40000.host1x/158c0000.nvdla1/acm/clk_cap/dla1_falcon
MAX_FREQ_KNEXT /sys/devices/platform/bus@0/13e00000.host1x/158c0000.nvdla1/clk_cap/dla1_falcon

< PARAM TYPE=CLOCK NAME=PVA0_VPS >
MAX_FREQ /sys/devices/platform/13e40000.host1x/16000000.pva0/acm/clk_cap/pva0_vps
MAX_FREQ_KNEXT /sys/devices/platform/bus@0/13e00000.host1x/16000000.pva0/clk_cap/pva0_vps

< PARAM TYPE=CLOCK NAME=PVA0_AXI >
MAX_FREQ /sys/devices/platform/13e40000.host1x/16000000.pva0/acm/clk_cap/pva0_cpu_axi
MAX_FREQ_KNEXT /sys/devices/platform/bus@0/13e00000.host1x/16000000.pva0/clk_cap/pva0_cpu_axi

###########################
#                         #
# POWER_MODEL DEFINITIONS #
#                         #
###########################

# MAXN is the NONE power model to release all constraints
< POWER_MODEL ID=0 NAME=MAXN >
CPU_ONLINE CORE_0 1
CPU_ONLINE CORE_1 1
CPU_ONLINE CORE_2 1
CPU_ONLINE CORE_3 1
CPU_ONLINE CORE_4 1
CPU_ONLINE CORE_5 1
CPU_ONLINE CORE_6 1
CPU_ONLINE CORE_7 1
FBP_POWER_GATING FBP_PG_MASK 2
TPC_POWER_GATING TPC_PG_MASK 240
GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
CPU_A78_0 MIN_FREQ 729600
CPU_A78_0 MAX_FREQ -1
CPU_A78_1 MIN_FREQ 729600
CPU_A78_1 MAX_FREQ -1
GPU MIN_FREQ 0
GPU MAX_FREQ -1
GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
EMC MAX_FREQ -1
DLA0_CORE MAX_FREQ -1
DLA1_CORE MAX_FREQ -1
DLA0_FALCON MAX_FREQ -1
DLA1_FALCON MAX_FREQ -1
PVA0_VPS MAX_FREQ -1
PVA0_AXI MAX_FREQ -1


< POWER_MODEL ID=1 NAME=10W >
CPU_ONLINE CORE_0 1
CPU_ONLINE CORE_1 1
CPU_ONLINE CORE_2 1
CPU_ONLINE CORE_3 1
CPU_ONLINE CORE_4 0
CPU_ONLINE CORE_5 0
CPU_ONLINE CORE_6 0
CPU_ONLINE CORE_7 0
FBP_POWER_GATING FBP_PG_MASK 2
TPC_POWER_GATING TPC_PG_MASK 252
GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
CPU_A78_0 MIN_FREQ 729600
CPU_A78_0 MAX_FREQ 1190400
GPU MIN_FREQ 0
GPU MAX_FREQ 612000000
GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
EMC MAX_FREQ 2133000000
DLA0_CORE MAX_FREQ 153600000
DLA1_CORE MAX_FREQ 115000000
DLA0_FALCON MAX_FREQ 115000000
DLA1_FALCON MAX_FREQ 115000000
PVA0_VPS MAX_FREQ 115000000
PVA0_AXI MAX_FREQ 115000000

< POWER_MODEL ID=2 NAME=15W >
CPU_ONLINE CORE_0 1
CPU_ONLINE CORE_1 1
CPU_ONLINE CORE_2 1
CPU_ONLINE CORE_3 1
CPU_ONLINE CORE_4 0
CPU_ONLINE CORE_5 0
CPU_ONLINE CORE_6 0
CPU_ONLINE CORE_7 0
FBP_POWER_GATING FBP_PG_MASK 2
TPC_POWER_GATING TPC_PG_MASK 252
GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
CPU_A78_0 MIN_FREQ 729600
CPU_A78_0 MAX_FREQ 1420800
GPU MIN_FREQ 0
GPU MAX_FREQ 612000000
GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
EMC MAX_FREQ -1
DLA0_CORE MAX_FREQ 614400000
DLA1_CORE MAX_FREQ 115000000
DLA0_FALCON MAX_FREQ 294400000
DLA1_FALCON MAX_FREQ 115000000
PVA0_VPS MAX_FREQ 115000000
PVA0_AXI MAX_FREQ 115000000

< POWER_MODEL ID=3 NAME=25W >
CPU_ONLINE CORE_0 1
CPU_ONLINE CORE_1 1
CPU_ONLINE CORE_2 1
CPU_ONLINE CORE_3 1
CPU_ONLINE CORE_4 1
CPU_ONLINE CORE_5 1
CPU_ONLINE CORE_6 1
CPU_ONLINE CORE_7 1
FBP_POWER_GATING FBP_PG_MASK 2
TPC_POWER_GATING TPC_PG_MASK 240
GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
CPU_A78_0 MIN_FREQ 729600
CPU_A78_0 MAX_FREQ 1497600
CPU_A78_1 MIN_FREQ 729600
CPU_A78_1 MAX_FREQ 1497600
GPU MIN_FREQ 0
GPU MAX_FREQ 408000000
GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
EMC MAX_FREQ -1
DLA0_CORE MAX_FREQ 614400000
DLA1_CORE MAX_FREQ 614400000
DLA0_FALCON MAX_FREQ 294400000
DLA1_FALCON MAX_FREQ 294400000
PVA0_VPS MAX_FREQ 512000000
PVA0_AXI MAX_FREQ 358400000

# mandatory section to configure the default power mode
< PM_CONFIG DEFAULT=2 >

It seems your power mode has not been configured.

You can simply run the following command to configure power mode 2 (15W)

# nvpmodel -m 2

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