add more temp sensors for fan control

This commit is contained in:
Cyryl Płotnicki 2022-04-01 21:43:03 +01:00
parent 5012299d38
commit d9aff9c530

View file

@ -38,7 +38,27 @@
hardware.trackpoint.enable = true;
services.hardware.bolt.enable = true;
boot.extraModprobeConfig = "options thinkpad_acpi fan_control=1";
services.thinkfan.enable = true;
services.thinkfan = {
enable = true;
sensors = [
{
type = "hwmon";
query = "/sys/class/hwmon";
name = "coretemp";
indices = [ 1 2 3 ];
}
{
type = "hwmon";
query = "/sys/devices/platform/thinkpad_hwmon/hwmon";
indices = [ 1 ];
}
{
type = "tpacpi";
query = "/proc/acpi/ibm/thermal";
indices = [ 0 ];
}
];
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.video.hidpi.enable = lib.mkDefault true;