rbonghi / jetson_stats

📊 Simple package for monitoring and control your NVIDIA Jetson [Orin, Xavier, Nano, TX] series
https://rnext.it/jetson_stats
GNU Affero General Public License v3.0
2.17k stars 264 forks source link

Directory missing on JP6 #484

Closed DYSpider13 closed 10 months ago

DYSpider13 commented 10 months ago

Describe the bug

jetson-stats not working on JP6. Service is not starting due to some files (entire directory) missing:

/sys/kernel/actmon_avg_activity/mc_all

Actually, it is not even detecting that Jetpack is installed.

To Reproduce

Steps to reproduce the behavior:

  1. Try jetson-stats on JP6, kernel 5.15

Screenshots

Capture d’écran du 2024-01-08 12-16-03

Expected behavior

Shoud give the usual output of jtop

Board

Output from jetson_release -v:

Software part of jetson-stats 4.2.4 - (c) 2024, Raffaello Bonghi
Jetpack missing!
 - Model: NVIDIA Jetson AGX Orin Developer Kit 
 - L4T: 36.0.0
NV Power Mode[2]: MODE_30W
Serial Number: [XXX Show with: jetson_release -s XXX]
Hardware:
 - 699-level Part Number: 699-13701-0004-500 F.0
 - P-Number: p3701-0004
 - Module: NVIDIA Jetson AGX Orin (32GB ram)
 - SoC: tegra234
 - CUDA Arch BIN: 8.7
Platform:
 - Machine: aarch64
 - System: Linux
 - Distribution: Ubuntu 22.04 Jammy Jellyfish
 - Release: 5.15.0-91-generic
 - Python: 3.10.12
jtop:
 - Version: 4.2.4
 - Service: Inactive
Libraries:
 - CUDA: Not installed
 - cuDNN: Not installed
 - TensorRT: Not installed
 - VPI: Not installed
 - OpenCV: 4.5.4 - with CUDA: NO

Log from jtop.service

Attach here the output from: journalctl -u jtop.service -n 100 --no-pager

janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.service - Running on Python: 3.10.12
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.cpu - Found 8 CPU
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [WARNING] jtop.core.gpu - No NVIDIA GPU available
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.processes - Process service started
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.memory - Found EMC!
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.memory - Memory service started
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.engine - Special Engine group found: [dlaX]
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.engine - Special Engine group found: [pvaX]
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.engine - Engines found: [APE DLA0 DLA1 NVDEC NVENC NVJPG PVA0 SE VIC]
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "cpu" in thermal_zone2
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "tdiode" in thermal_zone0
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "soc2" in thermal_zone9
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "soc0" in thermal_zone7
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "tj" in thermal_zone10
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "cv1" in thermal_zone5
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "gpu" in thermal_zone3
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "tboard" in thermal_zone1
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "soc1" in thermal_zone8
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "cv2" in thermal_zone6
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.temperature - Found thermal "cv0" in thermal_zone4
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.power - Alarms VDDQ_VDD2_1V8AO - {'crit_alarm': 0, 'max_alarm': 0}
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [WARNING] jtop.core.power - Skipped "sum of shunt voltages" /sys/bus/i2c/devices/1-0041/hwmon/hwmon0/in7_label
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.power - Alarms VDD_GPU_SOC - {'crit_alarm': 0, 'max_alarm': 0}
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.power - Alarms VDD_CPU_CV - {'crit_alarm': 0, 'max_alarm': 0}
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.power - Alarms VIN_SYS_5V0 - {'crit_alarm': 0, 'max_alarm': 0}
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [WARNING] jtop.core.power - Skipped "sum of shunt voltages" /sys/bus/i2c/devices/1-0040/hwmon/hwmon1/in7_label
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.power - Found I2C power monitor
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.fan - Fan pwmfan(1) found in /sys/class/hwmon/hwmon3
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.fan - Found nvfancontrol.service
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.jetson_clocks - jetson_clocks found in /usr/bin/jetson_clocks
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.core.nvpmodel - nvpmodel running in [2]MODE_30W - Default: 2
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]: [INFO] jtop.service - Initialization service
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]: Process JtopServer-1:
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]: Traceback (most recent call last):
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:   File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:     self.run()
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:   File "/usr/local/lib/python3.10/dist-packages/jtop/service.py", line 310, in run
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:     data = self.jtop_decode()
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:   File "/usr/local/lib/python3.10/dist-packages/jtop/service.py", line 575, in jtop_decode
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:     data['mem'] = self.memory.get_status(total)
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:   File "/usr/local/lib/python3.10/dist-packages/jtop/core/memory.py", line 431, in get_status
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:     utilization = int(cat(self._root_path + "/actmon_avg_activity/mc_all"))
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:   File "/usr/local/lib/python3.10/dist-packages/jtop/core/common.py", line 109, in cat
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]:     with open(path, 'r') as f:
janv. 08 12:03:45 edge-seldon-jp6-id575 jtop[2586267]: FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/actmon_avg_activity/mc_all'
janv. 08 12:03:46 edge-seldon-jp6-id575 jtop[2586244]: [INFO] jtop.service - Service closed
janv. 08 12:03:46 edge-seldon-jp6-id575 systemd[1]: jtop.service: Deactivated successfully.
janv. 08 12:07:18 edge-seldon-jp6-id575 systemd[1]: Started jtop service.
janv. 08 12:07:18 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.service - jetson_stats 4.2.4 - server loaded
janv. 08 12:07:18 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.hardware - Hardware detected aarch64
janv. 08 12:07:18 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.hardware - NVIDIA Jetson 699-level Part Number=699-13701-0004-500 F.0
janv. 08 12:07:18 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.hardware - NVIDIA Jetson Module=NVIDIA Jetson AGX Orin (32GB ram)
janv. 08 12:07:18 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.hardware - NVIDIA Jetson detected L4T=36.0.0
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.service - Running on Python: 3.10.12
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.cpu - Found 8 CPU
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [WARNING] jtop.core.gpu - No NVIDIA GPU available
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.processes - Process service started
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.memory - Found EMC!
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.memory - Memory service started
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.engine - Special Engine group found: [dlaX]
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.engine - Special Engine group found: [pvaX]
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.engine - Engines found: [APE DLA0 DLA1 NVDEC NVENC NVJPG PVA0 SE VIC]
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "cpu" in thermal_zone2
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "tdiode" in thermal_zone0
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "soc2" in thermal_zone9
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "soc0" in thermal_zone7
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "tj" in thermal_zone10
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "cv1" in thermal_zone5
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "gpu" in thermal_zone3
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "tboard" in thermal_zone1
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "soc1" in thermal_zone8
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "cv2" in thermal_zone6
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.temperature - Found thermal "cv0" in thermal_zone4
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.power - Alarms VDDQ_VDD2_1V8AO - {'crit_alarm': 0, 'max_alarm': 0}
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [WARNING] jtop.core.power - Skipped "sum of shunt voltages" /sys/bus/i2c/devices/1-0041/hwmon/hwmon0/in7_label
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.power - Alarms VDD_GPU_SOC - {'crit_alarm': 0, 'max_alarm': 0}
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.power - Alarms VDD_CPU_CV - {'crit_alarm': 0, 'max_alarm': 0}
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.power - Alarms VIN_SYS_5V0 - {'crit_alarm': 0, 'max_alarm': 0}
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [WARNING] jtop.core.power - Skipped "sum of shunt voltages" /sys/bus/i2c/devices/1-0040/hwmon/hwmon1/in7_label
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.power - Found I2C power monitor
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.fan - Fan pwmfan(1) found in /sys/class/hwmon/hwmon3
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.fan - Found nvfancontrol.service
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.jetson_clocks - jetson_clocks found in /usr/bin/jetson_clocks
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.core.nvpmodel - nvpmodel running in [2]MODE_30W - Default: 2
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]: [INFO] jtop.service - Initialization service
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]: Process JtopServer-1:
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]: Traceback (most recent call last):
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:   File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:     self.run()
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:   File "/usr/local/lib/python3.10/dist-packages/jtop/service.py", line 310, in run
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:     data = self.jtop_decode()
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:   File "/usr/local/lib/python3.10/dist-packages/jtop/service.py", line 575, in jtop_decode
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:     data['mem'] = self.memory.get_status(total)
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:   File "/usr/local/lib/python3.10/dist-packages/jtop/core/memory.py", line 431, in get_status
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:     utilization = int(cat(self._root_path + "/actmon_avg_activity/mc_all"))
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:   File "/usr/local/lib/python3.10/dist-packages/jtop/core/common.py", line 109, in cat
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]:     with open(path, 'r') as f:
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589161]: FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/actmon_avg_activity/mc_all'
janv. 08 12:07:19 edge-seldon-jp6-id575 jtop[2589139]: [INFO] jtop.service - Service closed
janv. 08 12:07:19 edge-seldon-jp6-id575 systemd[1]: jtop.service: Deactivated successfully.

Log from jetson-stats installation

Attach here the output from: sudo -H pip3 install --no-cache-dir -U jetson-stats

Requirement already satisfied: jetson-stats in /usr/local/lib/python3.10/dist-packages (4.2.4)
Requirement already satisfied: smbus2 in /usr/local/lib/python3.10/dist-packages (from jetson-stats) (0.4.3)
Requirement already satisfied: distro in /usr/lib/python3/dist-packages (from jetson-stats) (1.7.0)
rbonghi commented 10 months ago

Hi @DYSpider13

How did you install the Jetpack 6.0? Looking at your log, you have L4T=36.0.0 when should be L4T=36.2.0

Can you please share the output from:

jtop --error-log

This script generates a file jtop-error.log ready to be attached to your issue.

Best, Raffaello

DYSpider13 commented 10 months ago

Hi @rbonghi ,

It came from the vendor himself.

Here is the output of jtop --error-log

--------------------- PLATFORM -------------------------
Machine: aarch64
System: Linux
Distribution: Ubuntu 22.04 Jammy Jellyfish
Release: 5.15.122-tegra
Python: 3.10.12
-------------------- RAW OUTPUT ------------------------
------------------
/etc/nv_tegra_release:
# R36 (release), REVISION: 0.0, GCID: 34507387, BOARD: generic, EABI: aarch64, DATE: Wed Oct  4 16:41:43 UTC 2023
------------------
/sys/firmware/devicetree/base/model:
NVIDIA Jetson AGX Orin Developer Kit 
------------------
/proc/device-tree/nvidia,boardids:
No such file or directory
------------------
/proc/device-tree/compatible:
nvidia,p3737-0000+p3701-0004nvidia,p3701-0004nvidia,tegra234
------------------
/proc/device-tree/nvidia,dtsfilename:
No such file or directory
------------------
I2C-0-0x50:
02 00 FE 00 00 00 00 00 00 00 00 00 00 00 00 00    ..þ.............
00 00 00 0A 36 39 39 2D 31 33 37 30 31 2D 30 30    ....699-13701-00
30 34 2D 35 30 30 20 46 2E 30 00 00 00 00 00 00    04-500 F.0......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 B7 0C 95 2D B0 48 31 34 32 32 38 32    ....·..-°H142282
32 30 36 31 36 33 33 00 00 00 00 00 00 00 00 00    2061633.........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 4E 56 43 42 00 00 4D 31 00 00    ......NVCB..M1..
00 00 00 00 00 00 00 00 00 00 00 00 B7 0C 95 2D    ............·..-
B0 48 0A 00 00 00 00 00 00 00 00 00 00 00 00 00    °H..............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81    ................

------------------
I2C-0-0x56:
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

------------------
I2C-1:
FAIL
------------------
I2C-2:
FAIL
------------------
I2C-7:
FAIL

Log from jtop 4.2.4
rbonghi commented 10 months ago

I'm figuring out which type of Jetpack you have; It's something else compared to the official NVIDIA release. I also noticed another issue: the GPU is not detected, and I would like to figure out where is locate the GPU.

Can you share the output from this script? This script (I hope) helps me to understand and fix jtop :-)

import os
igpu_path = "/sys/class/devfreq/"

for item in os.listdir(igpu_path):
    item_path = os.path.join(igpu_path, item)
    if os.path.isfile(item_path) or os.path.islink(item_path):
        # Check name device
        name_path = "{item}/device/of_node/name".format(item=item_path)
        if os.path.isfile(name_path):
            # Decode name
            with open(name_path, 'r') as f:
                name = f.readline().rstrip('\x00')
            # path and file
            print("Path: {}".format(name_path))
            print("{}".format(name))

Thank you in advance

DYSpider13 commented 10 months ago

@rbonghi

It seems that it is a special release from the vendor.

The script does not return anything, since the "/sys/class/devfreq/" is empty.

rbonghi commented 10 months ago

Thank you! I was with the same feeling. Looks like some devices are missing or located in some folders that I don't know

Have you tried to run:

sudo tegrastats

If there is an output, can you share here?

Thank you again

DYSpider13 commented 10 months ago

Here is the output of tegrastats:

01-08-2024 17:20:20 RAM 4072/30697MB (lfb 641x4MB) CPU [8%@729,8%@729,6%@729,6%@729,10%@729,9%@729,8%@729,9%@729] EMC_FREQ @204 GR3D_FREQ @[0,0] NVENC off NVDEC off NVJPG off NVJPG1 off VIC off NVDLA0 off NVDLA1 off PVA0_FREQ off APE 174 cpu@51.312C tdiode@42.75C soc2@48.437C soc0@48.812C tj@51.312C tboard@42.5C soc1@49.875C VDDQ_VDD2_1V8AO 700mW/700mW VDD_GPU_SOC 3167mW/3167mW VDD_CPU_CV 487mW/487mW VIN_SYS_5V0 3505mW/3505mW
01-08-2024 17:20:21 RAM 4072/30697MB (lfb 641x4MB) CPU [0%@729,0%@729,1%@729,1%@729,1%@729,0%@729,0%@729,2%@729] EMC_FREQ @204 GR3D_FREQ @[0,0] NVENC off NVDEC off NVJPG off NVJPG1 off VIC off NVDLA0 off NVDLA1 off PVA0_FREQ off APE 174 cpu@51.093C tdiode@42.75C soc2@48.406C soc0@49.031C tj@51.093C tboard@42.375C soc1@49.75C VDDQ_VDD2_1V8AO 600mW/650mW VDD_GPU_SOC 2924mW/3045mW VDD_CPU_CV 243mW/365mW VIN_SYS_5V0 3405mW/3455mW
01-08-2024 17:20:22 RAM 4071/30697MB (lfb 641x4MB) CPU [10%@729,11%@729,8%@729,8%@729,9%@729,8%@729,10%@729,11%@729] EMC_FREQ @204 GR3D_FREQ @[0,0] NVENC off NVDEC off NVJPG off NVJPG1 off VIC off NVDLA0 off NVDLA1 off PVA0_FREQ off APE 174 cpu@51.25C tdiode@43C soc2@48.343C soc0@49.062C tj@51.25C tboard@42.375C soc1@49.781C VDDQ_VDD2_1V8AO 700mW/666mW VDD_GPU_SOC 3167mW/3086mW VDD_CPU_CV 487mW/405mW VIN_SYS_5V0 3600mW/3503mW
01-08-2024 17:20:23 RAM 4071/30697MB (lfb 641x4MB) CPU [4%@2188,26%@2188,2%@2188,3%@2188,1%@729,42%@729,1%@729,1%@729] EMC_FREQ @2133 GR3D_FREQ @[0,0] NVENC off NVDEC off NVJPG off NVJPG1 off VIC off NVDLA0 off NVDLA1 off PVA0_FREQ off APE 174 cpu@51.531C tdiode@42.875C soc2@48.406C soc0@49C tj@51.531C tboard@42.375C soc1@49.687C VDDQ_VDD2_1V8AO 800mW/700mW VDD_GPU_SOC 3409mW/3166mW VDD_CPU_CV 974mW/547mW VIN_SYS_5V0 3800mW/3577mW
01-08-2024 17:20:24 RAM 4086/30697MB (lfb 641x4MB) CPU [9%@729,52%@729,7%@729,9%@729,6%@960,9%@960,7%@960,9%@960] EMC_FREQ @204 GR3D_FREQ @[0,0] NVENC off NVDEC off NVJPG off NVJPG1 off VIC off NVDLA0 off NVDLA1 off PVA0_FREQ off APE 174 cpu@51.312C tdiode@42.875C soc2@48.406C soc0@49.125C tj@51.312C tboard@42.375C soc1@49.781C VDDQ_VDD2_1V8AO 900mW/740mW VDD_GPU_SOC 3409mW/3215mW VDD_CPU_CV 974mW/633mW VIN_SYS_5V0 3900mW/3642mW
01-08-2024 17:20:25 RAM 4068/30697MB (lfb 641x4MB) CPU [3%@729,2%@729,3%@729,0%@729,3%@729,2%@729,4%@729,1%@729] EMC_FREQ @204 GR3D_FREQ @[0,0] NVENC off NVDEC off NVJPG off NVJPG1 off VIC off NVDLA0 off NVDLA1 off PVA0_FREQ off APE 174 cpu@51.218C tdiode@42.875C soc2@48.437C soc0@48.875C tj@51.218C tboard@42.375C soc1@49.531C VDDQ_VDD2_1V8AO 700mW/733mW VDD_GPU_SOC 3167mW/3207mW VDD_CPU_CV 243mW/568mW VIN_SYS_5V0 3405mW/3602mW
01-08-2024 17:20:26 RAM 4069/30697MB (lfb 641x4MB) CPU [5%@729,1%@729,3%@729,0%@729,4%@729,3%@729,1%@729,4%@729] EMC_FREQ @204 GR3D_FREQ @[0,0] NVENC off NVDEC off NVJPG off NVJPG1 off VIC off NVDLA0 off NVDLA1 off PVA0_FREQ off APE 174 cpu@51.375C tdiode@42.75C soc2@48.468C soc0@48.906C tj@51.375C tboard@42.375C soc1@49.625C VDDQ_VDD2_1V8AO 700mW/728mW VDD_GPU_SOC 2924mW/3166mW VDD_CPU_CV 243mW/521mW VIN_SYS_5V0 3405mW/3574mW
01-08-2024 17:20:27 RAM 4069/30697MB (lfb 641x4MB) CPU [11%@729,3%@729,3%@729,6%@729,3%@729,4%@729,3%@729,1%@729] EMC_FREQ @204 GR3D_FREQ @[0,0] NVENC off NVDEC off NVJPG off NVJPG1 off VIC off NVDLA0 off NVDLA1 off PVA0_FREQ off APE 174 cpu@51.093C tdiode@42.875C soc2@48.375C soc0@48.843C tj@51.25C tboard@42.375C soc1@49.843C VDDQ_VDD2_1V8AO 700mW/725mW VDD_GPU_SOC 2924mW/3136mW VDD_CPU_CV 243mW/486mW VIN_SYS_5V0 3405mW/3553mW
rbonghi commented 10 months ago

There might be something strange with your flashed Jetson.

I suggest working with your vendor to reflash your device to the official Jetpack 6.0 DP, while I figure out how to fix other bugs.

DYSpider13 commented 10 months ago

That's my feeling too. I'll check with him. Thanks @rbonghi !

rbonghi commented 10 months ago

I close this issue, if you've again bug on your device with jtop feel free to reopen it.