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
e
- 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 in Arch Linux from the AUR, from RubyGems, or run from the source code.
Arch User Repository
Use your favorite tool such as paru to install ruby-amdgrpu_fan from the AUR.
paru -S ruby-amdgpu_fan
From RubyGems
gem install amdgpu_fan
From Source
git clone https://github.com/HarlemSquirrel/amdgpu-fan-rb.git
cd amdgpu-fan-rb
bundle install
bin/amdgpu_fan
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