linux 调节风扇速度命令,ubuntu系统调节GPU风扇转速

ubuntu系统调节GPU风扇转速

查看NVIDIA GPU温度和转速nvidia-smi

有桌面的ubuntu

可以通过nvidia-settings进项图像化界面的设置。

无桌面ubuntu[headless linux server]

使用coolgpus脚本进行调节pip install coolgpus

使用用例:# 将gpu风扇转速设置为99%

sudo $(which coolgpus) --speed 99 99

# 关闭设置

sudo $(which coolgpus)

# 或者也可以设置线性控制

# 这个模式下20℃以下转速为5%, 20-55℃之间转速为30%,依次类推

sudo $(which coolgpus) --temp 20 55 80 --speed 5 30 99

如果需要将coolgpus脚本当作一个系统服务长期运行的话,如果你的服务器采用systemd管理server的话,可以在/etc/systemd/system/coolgpus.service创建模板[Unit]

Description=Headless GPU Fan Control

After=syslog.target

[Service]

ExecStart=/home/ajones/conda/bin/coolgpus --kill

Restart=on-failure

RestartSec=5s

ExecStop=/bin/kill -2 $MAINPID

KillMode=none

[Install]

WantedBy=multi-user.target

可以通过如下命令进行控制sudo systemctl enable coolgpus

sudo systemctl start coolgpus欢迎访问我的个人博客ximikang.icu~~~~

ubuntu系统调节GPU风扇转速 查看NVIDIA GPU温度和转速nvidia-smi 有桌面的ubuntu 可以通过nvidia-settings进项图像化界面的设置。 无桌面ubuntu[headless linux server] 使用coolgpus脚本进行调节pip install coolgpus 使用用例:# 将gpu风扇转速设置为99% sudo $(which coolgpus) --speed 99 99 # 关闭设置 sudo $(which coolgpus) # 或者也可以设置线性控制 # 这个模式下20℃以下转速为5%, 20-55℃之间转速为30%,依次类推 sudo $(which coolgpus) --temp 20 55 80 --speed 5 30 99 如果需要将coolgpus脚本当作一个系统服务长期运行的话,如果你的服务器采用systemd管理server的话,可以在/etc/systemd/system/coolgpus.service创建模板[Unit] Description=Headless GPU Fan Control After=syslog.target [Service] ExecStart=/home/ajones/conda/bin/coolgpus --kill Restart=on-failure RestartSec=5s ExecStop=/bin/kill -2 $MAINPID KillMode=none [Install] WantedBy=multi-user.target 可以通过如下命令进行控制sudo systemctl enable coolgpus sudo systemctl start coolgpus欢迎访问我的个人博客ximikang.icu~~~~
经验分享 程序员 微信小程序 职场和发展