英伟达 nvidia jetson AGX xavier 风扇开机自启动设置
1. 风扇开机自启设置
切换到 root 用户
sudo su
修改风扇pwm调速文件权限
chmod 777 /sys/devices/pwm-fan/target_pwm
修改系统外设配置文件,并添加风扇开机启动任务:
vim /lib/systemd/system/rc-local.service
注意:
1.如不知道该文件路径,可以通过搜索rc-local.service来查看;
2.vim编辑器使用:进入vim编辑器后,按i
键进入编辑模式,对内容进行编辑,按esc
退出编辑模式,退出编辑模式情况下,输入:wq
,可保存并退出vim编辑器。
修改前内容:
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local
After=network.target[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no
在后面添加install区块:
[Install]
WantedBy=multi-user.target
Alias=rc-local.service
修改后内容:
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local
After=network.target[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no[Install]
WantedBy=multi-user.target
Alias=rc-local.service
新建任务文件:
vim /etc/rc.local
添加风扇自启任务(其中echo后的值为风扇转速,范围为0-250):
#!/bin/bash -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.sleep 30
echo "200" > /sys/devices/pwm-fan/target_pwmexit 0
使rc-local服务自动启动
systemctl enable rc-local #这条语句就是创建一个超链接,在系统启动服务程序中.
给rc.local文件赋予可执行权限:
chmod +x /etc/rc.local
先执行如下命令,启动服务并检查状态
systemctl daemon-reload #重新加载
systemctl stop rc-local.service #停止rc-local.service服务
systemctl start rc-local.service #启动rc-local.service服务
systemctl status rc-local.service #检查服务状态
如果上面的命令不报错了,那说明设置成功了,然后就可以重启看下效果
2. 直接开启风扇(重启无效)
用vim编辑器修改(范围:0~250):
vim /sys/devices/pwm-fan/target_pwm
终端直接修改:
sudo sh -c "echo 150 > /sys/devices/pwm-fan/target_pwm"
第一次写博客,有不足之处请批评指出。
参考资料:
https://blog.csdn.net/u013171226/article/details/107680325
http://lnmp.ailinux.net/systemctl
英伟达 nvidia jetson AGX xavier 风扇开机自启动设置相关推荐
- 解决英伟达NVIDIA Jetson AGX Xavier Desktop Sharing无法运行 + Xavier 配置远程桌面
解决英伟达NVIDIA Jetson AGX Xavier Desktop Sharing无法运行 + Xavier 配置远程桌面 修复Desktop Sharing无法打开 编译生效 配置Deskt ...
- 英伟达NVIDIA Jetson系列产品刷机(SDK Manager)
英伟达的TX.NX.AGX可以说是近几年边缘计算中非常牛的产品了.可Linux系统经常会出现安装某软件后系统环境崩掉的情况,接着系统崩掉的机会,记录一下Jetson AGX Xavier的刷机过程. ...
- 英伟达NVIDIA JETSON新品推出Jetson Orin NX
新品Jetson Orin NX 16GB 和 8GB 模组即将推出 Jetson Orin NX 模组极其小巧,但可提供高达 100 TOPS 的 AI 性能,功率可在 10 瓦到 25 瓦之间进行 ...
- nvidia jetson agx Xavier can 开机自动运行脚本
测试can的时候一遍遍手动加载特别麻烦,直接写脚本自动加载.记录,备忘. 一.接线图 二.安装依赖 sudo apt install busybox sudo apt install can-util ...
- 基于NVIDIA Jetson AGX Xavier的移动机器人开发(1)——Xavier刷机、风扇配置、ROS安装
实验室有一台2020年购入的AGX Xavier计算平台,由于实车开发作实验较为麻烦,打算基于这台Xavier从头搭建一套缩小版的自动驾驶系统用于算法验证以及实验,同时锻炼从头搭建系统的能力.平台基于 ...
- 玩转NVIDIA Jetson AGX Xavier
最近项目应用需要部署到边缘模块,所以就玩起了Xavier.感觉网上的资料不多,所以从头记录一下笔记,方便大家一起学习应用. 玩转NVIDIA Jetson AGX Xavier 1.刷机(安装sdkm ...
- NVIDIA Jetson AGX Xavier冰壶的跟踪与识别
NVIDIA Jetson AGX Xavier冰壶的跟踪与识别 一.项目简介 二.硬件平台的选取 2.1为什么选择NVIDIA Jetson AGX Xavier 三.识别环境配置 3.1 下载py ...
- NVIDIA Jetson AGX Xavier主机刷机与SSD安装
任务逻辑 当有个新的AGX主机到手上后,主机是启动的是eMMC,大约30G存储 这个安装了系统后到后面随便弄一下就不够存储了,所以我是想要在主机上安装一个SSD,然后将系统直接放到SSD上,这种操作就 ...
- ubuntu16.04安装英伟达(NVIDIA)驱动——run文件安装
ubuntu16.04安装英伟达(NVIDIA)驱动--run文件安装 去官网http://www.nvidia.com/Download/index.aspx?lang=en-us选择显卡驱动 中文 ...
最新文章
- java提取word中的文字_Java 提取Word中的文本和图片
- Redola.Rpc 的一个小目标:20000 tps
- 懒人专用SSH框架下的基本配置
- 到退休单位没有通知,半年后通知退休,这半年是否算工龄?
- 匿名函数lambda
- 2021-01-26数据治理具备哪些优势
- _CrtCheckMemory
- 练习--LINUX进程间通信之有名管理FIFO
- 深度学习——(4)VGG16 图像分类
- sap se06和scc4
- C++:Sqlite调用之增、读、改
- 用 Python 分析韦德职业生涯数据
- Android的公交线路查询系统
- 百度网盘搜索工具汇总
- 测线仪正确使用方法图解1
- 支付宝小程序分享转发
- CentOS 6.4 搭建 Java 开发环境详解
- OSGi 框架的组件运行机制
- Kubernetes更优雅的监控工具Prometheus Operator
- Tensorflow目标检测之yolov3训练自己的模型