Go to file
Adrian Woźniak 779b4c08d9
Initial
2021-07-02 13:37:21 +02:00
src Initial 2021-07-02 13:36:36 +02:00
.gitignore Initial 2021-07-02 13:36:36 +02:00
amdfand.service Initial 2021-07-02 13:36:36 +02:00
Cargo.lock Initial 2021-07-02 13:36:36 +02:00
Cargo.toml Initial 2021-07-02 13:37:21 +02:00
README.md Initial 2021-07-02 13:36:36 +02:00

AMDGPU Fan control service

Available commands:

  • monitor - Print current temp and fan speed
  • service - Set fan speed depends on GPU temperature
  • set-automatic - Switch to GPU automatic fan speed control
  • set-manual - Switch to GPU manual fan speed control
  • available - Print available cards

amdfand set-automatic | set-manual [OPTIONS]

Optional arguments:

  • -h, --help Help message
  • -c, --card CARD GPU Card number

Usage

cargo install argonfand

sudo argonfand monitor # print current temperature, current fan speed, min and max fan speed 
sudo argonfand service # check amdgpu temperature and adjust speed from config file 

Config file

# /etc/amdfand/config.toml
log_level = "Error"
cards = ["card0"]

[[speed_matrix]]
temp = 4.0
speed = 4

[[speed_matrix]]
temp = 30.0
speed = 33

[[speed_matrix]]
temp = 45.0
speed = 50

[[speed_matrix]]
temp = 60.0
speed = 66

[[speed_matrix]]
temp = 65.0
speed = 69

[[speed_matrix]]
temp = 70.0
speed = 75

[[speed_matrix]]
temp = 75.0
speed = 89

[[speed_matrix]]
temp = 80.0
speed = 100