Ubuntu下手动设置Nvidia显卡风扇转速

您所在的位置:网站首页 bios调整风扇转速无效 Ubuntu下手动设置Nvidia显卡风扇转速

Ubuntu下手动设置Nvidia显卡风扇转速

2024-07-10 03:12| 来源: 网络整理| 查看: 265

有显示器(桌面版)

 

 

 

 

默认情况下是可以调节的,神奇的是如果使用下面给出的命令调节的操作后就不能再进行可视化的手动调节了。

 

 

 

=========================================

 

 

无显示器(服务器版)

使用工具coolgus进行调节:

https://github.com/andyljones/coolgpus

这个工具其实就是一个python文件,通过调用nvidia-setting中的设置命令来对显卡风扇转速进行调节:

#!/usr/bin/python import os import re import time import argparse from subprocess import TimeoutExpired, check_output, Popen, PIPE, STDOUT from tempfile import mkdtemp from contextlib import contextmanager parser = argparse.ArgumentParser(description=r''' GPU fan control for Linux. By default, this uses a clamped linear fan curve, going from 30% below 55C to 99% above 80C. There's also a small hysteresis gap, because _changes_ in fan noise are a lot more distracting than steady fan noise. I can't claim it's optimal, but it Works For My Machine (TM). Full load is about 75C and 80%. ''') parser.add_argument('--temp', nargs='+', default=[55, 80], type=float, help='The temperature ranges where the fan speed will increase linearly') parser.add_argument('--speed', nargs='+', default=[30, 99], type=float, help='The fan speed ranges') parser.add_argument('--hyst', nargs='?', default=2, type=float, help='The hysteresis gap. Large gaps will reduce how often the fan speed is changed, but might mean the fan runs faster than necessary') parser.add_argument('--kill', action='store_true', default=False, help='Whether to kill existing Xorg sessions') parser.add_argument('--verbose', action='store_true', default=False, help='Whether to print extra debugging information') parser.add_argument('--debug', action='store_true', default=False, help='Whether to only start the Xorg subprocesses, and not actually alter the fan speed. This can be useful for debugging.') args = parser.parse_args() T_HYST = args.hyst assert len(args.temp) == len(args.speed), 'temp and speed should have the same length' assert len(args.temp) >= 2, 'Please use at least two points for temp' assert len(args.speed) >= 2, 'Please use at least two points for speed' # EDID for an arbitrary display EDID = b'\x00\xff\xff\xff\xff\xff\xff\x00\x10\xac\x15\xf0LTA5.\x13\x01\x03\x804 x\xee\x1e\xc5\xaeO4\xb1&\x0ePT\xa5K\x00\x81\x80\xa9@\xd1\x00qO\x01\x01\x01\x01\x01\x01\x01\x01(


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3