amdgpu_fan
A Ruby CLI to read and set fan speed, power profiles, and more for AMD Radeon graphics cards running on the AMDGPU Linux driver.
amdgpu_fan aims to provide a more user friendly interface on top of sysfs for displaying statistics and interacting with AMD Radeon graphics hardware running on the AMDgpu driver.
Further reading
- https://wiki.archlinux.org/index.php/AMDGPU#Overclocking
- https://wiki.archlinux.org/index.php/Fan_speed_control#AMDGPU_sysfs_fan_control
- https://phoronix.com/scan.php?page=news_item&px=AMDGPU-Quick-WattMan-Cap-Test
Installation
The amdgpu_fan CLI command can be installed from RubyGems or easily run from the source code.
From RubyGems
gem install amdgpu_fan
From Source
Usage
Dependencies
- Ruby with Bundler
- Thor (installed with
bundle install) - Internet connection - Device info is retrieved from https://pci-ids.ucw.cz/
Building a binary
Ruby Packer provides a convenient way to compile this into a single executable. For the best results, compile Ruby Packer from source from the lastest master branch.
rubyc amdgpu_fan --output amdgpu_fan