-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite of the fanctrl.py script to improve security, compatibility, modularity and maintainability #29
Conversation
…, 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
I kept existing commands the same as to avoid breaking existing systems |
# Conflicts: # fanctrl.py
Looks good to me now, though I'll run this branch for a few days before merging it |
ok, I take back what I said about mixing the two temperature computing strategies. |
After a week running it, LGTM |
Hi @TamtamHero and @leopoldhub just to let you know that I install the latest version using AUR and I can confirm the issue #35. If you try to start the tool using systemctl you get:
And if I try run manually the tool to see the output like the previos version I get the follow:
I hope this can help. Thanks! |
Hi @dariov1988 , there is no such thing as |
Hi @leopoldhub, thanks for answer. The fw-fanctrl-git package is pointing to this git repository. I check when install that checkout e97f4b3 so is up to date. Your assumption that I don't have the config in |
My bad, it seems that the AUR package created it without using the install script. |
Hi @leopoldhub, thanks for your quick response. I was reading the install script and I figured out that you have a binary in your repository (ectool) redistribute packaged by yourself binaries from other people is not good for several reasons (not only security). The previous AUR approach was nice, not only because they update it automatically, and I do not have to remember from time to time to go to my local git repo, pull, and install. They have a dependency fw-ectool-git and pull it directly from their source, so all these benefits apply to this dependency too. The original author of ectool has a pipeline that built the tool himself https://gitlab.howett.net/DHowett/ectool/-/artifacts. If you want to continue providing the binary for an easy install user experience could you please evaluate the possibility of using the latest artifact provided by the original author? Thanks again. Have a nice day... |
Hi @dariov1988 Yes, you are right I will work on this as soon as I have time for it. Thank you for making this issue known to us |
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