1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

fancontrol: restart service after suspend

This commit is contained in:
Elian Doran 2023-01-12 21:18:37 +02:00 committed by pennae
parent ae8876eace
commit ba0a640afd

View file

@ -42,6 +42,13 @@ in
ExecStart = "${pkgs.lm_sensors}/sbin/fancontrol ${configFile}";
};
};
# On some systems, the fancontrol service does not resume properly after sleep because the pwm status of the fans
# is not reset properly. Restarting the service fixes this, in accordance with https://github.com/lm-sensors/lm-sensors/issues/172.
powerManagement.resumeCommands = ''
systemctl restart fancontrol.service
'';
};
meta.maintainers = [ maintainers.evils ];