Jetson Xavier 常用指令

强制修改屏幕分辨率

xrandr --fb 1920x1080

安装 jtop

sudo pip3 install jetson-stats
然后执行 sudo jtop

命令行工具nvpmodel

默认模式是15W (MODE_15W, ID:2),你可以通过这个方式看到:

$ sudo nvpmodel --query
NV Fan Mode:quiet
NV Power Mode: MODE_15W
2

Jetson Xavier 常用指令_第1张图片
如果我们想换到表格中的0模式,那么我们可以执行:

$ sudo nvpmodel -m 0

也可以通过界面直接选择:
Jetson Xavier 常用指令_第2张图片


最大化Xavier性能

$ sudo jetson_clocks
显示当前设置
$ sudo jetson_clocks --show
恢复以前的设置
$ sudo jetson_clocks --restore


控制风扇开关

ON:# echo 255 > /sys/devices/pwm-fan/target_pwm
OFF:# echo 0 > /sys/devices/pwm-fan/target_pwm
查看:# cat /sys/devices/pwm-fan/target_pwm
(注:最大255,最小0即关闭,也可以根据需要自行设置)

重启以后风扇是不转的,所以需要设置开机运行:
创建/etc/rc.local,并添加如下内容:
(注:系统启动的时候会执行/etc/rc.local,如果已存在rc.local,则在exit 0之前加入那3句命令即可)

#!/bin/bash
sleep 10
sudo /usr/bin/jetson_clocks
sudo sh -c 'echo 255 > /sys/devices/pwm-fan/target_pwm'
exit 0

添加rc.local可执行权限:
$ sudo chmod 755 /etc/rc.local
以后重启就会自动开启最大性能并启动风扇了。


查看操作系统版本、内存信息
# Linux查看版本当前操作系统内核信息
$ uname --a
Linux shtf-desktop 4.9.140-tegra #1 SMP PREEMPT Mon Dec 9 22:52:02 PST 2019 aarch64 aarch64 aarch64 GNU/Linux

# Linux查看当前操作系统版本信息
$ cat /proc/version
Linux version 4.9.140-tegra (buildbrain@mobile-u64-1935) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #1 SMP PREEMPT Mon Dec 9 22:52:02 PST 2019

# Linux查看版本当前操作系统发行版信息
$ cat /etc/issue
Ubuntu 18.04.3 LTS \n \l

# 查看cpu的信息
$ cat /proc/cpuinfo
processor	: 0
model name	: ARMv8 Processor rev 0 (v8l)
BogoMIPS	: 62.50
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x4e
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0x004
CPU revision	: 0
MTS version	: 45309758

processor	: 1
model name	: ARMv8 Processor rev 0 (v8l)
BogoMIPS	: 62.50
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x4e
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0x004
CPU revision	: 0
MTS version	: 45309758

processor	: 2
model name	: ARMv8 Processor rev 0 (v8l)
BogoMIPS	: 62.50
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x4e
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0x004
CPU revision	: 0
MTS version	: 45309758

processor	: 3
model name	: ARMv8 Processor rev 0 (v8l)
BogoMIPS	: 62.50
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer	: 0x4e
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0x004
CPU revision	: 0
MTS version	: 45309758

# 查看版本说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit
$ getconf LONG_BIT
64

# 显示LSB和特定版本的相关信息
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic

你可能感兴趣的:(Xavier,Xavier,Jetson,ubuntu,nvidia)