Hey everyone, I don't really know where to post this, but I thought it might be quite useful to people around here, and maybe even Michael.
Since the default fan curve on the 5700/5700XT is quite bad on the reference cards, I wanted to get a custom fan curve working. It required both a bugfix patch for the kernel/amdgpu, and writing a simple fan controller.
You can find my kernel patch (should be on amd-staging-drm-next soon) here: https://lists.freedesktop.org/archiv...ly/037735.html. That patch will make the sysfs interface for the fans work.
My fan controller (fanctl), can be found on GitLab here: https://gitlab.com/mcoffin/fanctl.
Here is a config file I'm using for a very aggressive fan curve on my 5700 XT. It's loud, but you won't be hurting your card while benchmarking! : https://gitlab.com/snippets/1881771.
To run the fan controller (as root for proper permissions), use the following command.
I hope this helps somebody out. If you have comments on fanctl itself, please let me know, as I'd really like to keep building it out as a way better alternative to fancontrol as I find the configuration interface for fancontrol to be moderately confusing, and hard to use.
FWIW, I also noticed that to get my card to use the correct power profile mode, I had to do the following:
Changing the power profile mode didn't really seem to impact performance in any meaningful way, but I thought it should be in the correct mode regardless.
Cheers, and happy hacking,
codeYeTi/mcoffin
Since the default fan curve on the 5700/5700XT is quite bad on the reference cards, I wanted to get a custom fan curve working. It required both a bugfix patch for the kernel/amdgpu, and writing a simple fan controller.
You can find my kernel patch (should be on amd-staging-drm-next soon) here: https://lists.freedesktop.org/archiv...ly/037735.html. That patch will make the sysfs interface for the fans work.
My fan controller (fanctl), can be found on GitLab here: https://gitlab.com/mcoffin/fanctl.
Here is a config file I'm using for a very aggressive fan curve on my 5700 XT. It's loud, but you won't be hurting your card while benchmarking! : https://gitlab.com/snippets/1881771.
To run the fan controller (as root for proper permissions), use the following command.
Code:
fanctl -c /path/to/fanctl.yml
FWIW, I also noticed that to get my card to use the correct power profile mode, I had to do the following:
Code:
echo 1 | sudo tee /sys/class/drm/card0/device/pp_power_profile_mode && echo 0 1 | sudo tee /sys/class/drm/card0/device/pp_dpm_sclk
Cheers, and happy hacking,
codeYeTi/mcoffin
Comment