thinkpad: enable fan control
1 file changed, 19 insertions(+), 0 deletions(-)
changed files
M system/settings/machines/t470s.nix → system/settings/machines/t470s.nix
@@ -5,6 +5,25 @@ systemd.services.ModemManager.enable = false; hardware.enableRedistributableFirmware = true; + boot.extraModprobeConfig = '' + options thinkpad_acpi fan_control=1 + ''; + + services.thinkfan.sensors = '' + hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp3_input + hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp1_input + hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp2_input + ''; + services.thinkfan.levels = '' + (0, 0, 48) + (1, 45, 52) + (2, 50, 57) + (3, 55, 63) + (6, 60, 65) + (7, 60, 85) + (127, 80, 32767) + ''; + boot.postBootCommands = '' echo bfq > /sys/block/nvme0n1/queue/scheduler '';