nv_fan_control

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 16 Imported by: 0

README

NV Fan Control

A small utility to control a PWM fan via sysfs based on Nvidia GPU temperature.

Hacked this up for a custom 12v blower fan I'm running on an old Nvidia Tesla P100, "it works on my machine" / YMMV / GLHF etc...

Usage

nv_fan_control -help
nv_fan_control -sensitivity 2 -maxPWM 245 -basePWM 55 -interval 3 -fanpath /sys/class/hwmon/hwmon5/pwm3

Installation

go build nv_fan_control.go
chmod +x nv_fan_control
mv nv_fan_control /usr/local/sbin/

Note: I have added a install.sh script, but haven't tested it on a clean machine yet.

You may also want to create a systemd service to run this at boot and in the background.

cp nv_fan_control.service /etc/systemd/system/
systemctl daemon reload
systemctl enable nv_fan_control.service --now

NCT 6775 + Fedora 38

My mainboard is a ASRock x670 Pro RS (sorry, no turbo or intercooler) which uses an NCT 6775 controller.

cat /etc/modprobe.d/am5-sensors.conf
options nct6775 force_id=0xd420 force

Bonus - To check for thermal throttling on Nvidia GPUs:

nvidia-smi -q -d PERFORMANCE

Documentation

Overview

A simple tool that adjusts the fan speed of the GPU based on its temperature. Its designed for a custom cooler I have on my Nvidia Tesla P100 which is a 12v non-pwm fan. Author: Sam McLeod @sammcj

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL