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:
parent
ae8876eace
commit
ba0a640afd
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue