-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite of the fanctrl.py script to improve security, compatibility, …
…modularity and maintainability (#29) * change the fan manager back to default on service stop/crash * > Rewrite of the fanctrl.py script to improve security, compatibility, modularity and maintainability > Removing watchdog as a dependency. We now use real unix sockets to communicate with the running service > We now use the embedded ectool command to fetch temperatures > The sleeping behavior will now put the service in pause (keep the active strategy) and use the default computer fan management to avoid draining battery > On crash/stop, the service will reactivate the default computer fan management to avoid damaging hardware * removing forgotten legacy code parts and re-adding '--strategy' for compatibility * removing forgotten legacy code parts and re-adding '--strategy' for compatibility * adding the '--list-strategies' command, as suggested by issue comment #11 (comment) * getting the higher ectool temperature instead of the higher 3 * using ectool to fetch battery charging status * discard stderr on "ectool battery" command * fix pick for the highest temperature * combining both temperature computing strategies * going back to the original temperature computing strategy * fixing typo
- Loading branch information
1 parent
d1a46f2
commit 25d300f
Showing
6 changed files
with
289 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.