简单点说就是通过设置 /sys/class/drm/card0/device/hwmon/hwmon0 下面的pwm1_enable 来确定是否启动自动控制 1为手动 2为自动,然后设置pwm1来控制速度百分比值从(0~255)255为100%
AMDGPU sysfs fan control
AMDGPU kernel driver offers fan control for graphics cards via hwmon in sysfs.
Configuration of manual control
To switch to manual fan control from automatic, run
echo “1” > /sys/class/drm/card0/device/hwmon/hwmon0/pwm1_enable
Set up fan speed to e.g. 50% (100% are 255 PWM cycles, thus calculate desired fan speed percentage by multiplying its value by 2.55):
echo “128” > /sys/class/drm/card0/device/hwmon/hwmon0/pwm1
To reset to automatic fan control, run
echo “2” > /sys/class/drm/card0/device/hwmon/hwmon0/pwm1_enable
Warning: Resetting fan speed to auto may not work due to a driver bug and instead a restart of the driver may be required as a workaround.
如果觉得《amd显卡风扇调节_amd显卡风扇速度设置linux版本》对你有帮助,请点赞、收藏,并留下你的观点哦!