fancontrol: restart service after suspend
This commit is contained in:
parent
ae8876eace
commit
ba0a640afd
1 changed files with 7 additions and 0 deletions
|
@ -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