From 2176a53c4ac28c120f260886ce2206d19ec7e051 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 18 Mar 2023 09:29:20 -0400 Subject: [PATCH] setup amd gpu fancontrol curve --- hosts/tempest/hardware-configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hosts/tempest/hardware-configuration.nix b/hosts/tempest/hardware-configuration.nix index 113ff46..660d9ba 100644 --- a/hosts/tempest/hardware-configuration.nix +++ b/hosts/tempest/hardware-configuration.nix @@ -37,4 +37,19 @@ powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + hardware.fancontrol.enable = true; + hardware.fancontrol.config = '' + # Configuration file generated by pwmconfig, changes will be lost + INTERVAL=10 + DEVPATH=hwmon0=devices/pci0000:00/0000:00:03.1/0000:06:00.0/0000:07:00.0/0000:08:00.0 + DEVNAME=hwmon0=amdgpu + FCTEMPS=hwmon0/pwm1=hwmon0/temp1_input + FCFANS= hwmon0/pwm1=hwmon0/fan1_input + MINTEMP=hwmon0/pwm1=30 + MAXTEMP=hwmon0/pwm1=70 + MINSTART=hwmon0/pwm1=150 + MINSTOP=hwmon0/pwm1=12 + MINPWM=hwmon0/pwm1=12 + ''; }