Repository navigation
Closed
Conversation
Owner
|
I'm open to changes in the algorithm if they're beneficial to everyone using this. I currently don't have a mac running linux to really test/maintain this project at the moment. |
This pull request was closed.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
i dont remember exactly any more, but i've always been running with this patch
i think i had issue macfand setting a low fan speed and my settings in the conf file doesnt seem to be working properly, this pr is the hack worked (i think) for myself
if i understand correctly the intention of this code here is about:
say i set my floor and ceiling to 20 and 30℃, window will be 10
if my current temperature is at 25℃, the math goes: 25-20=5; 5/10=0.5
so if in my conf file i have fan min and max set to 2000rpm and 3000rpm, im expecting it to give me the middle value (2500rpm)
but the code in repo currently calculate a "fan_window" by using 3000-2000=1000, and 0.5*1000 which gives me 500, not the 2500rpm i wanted
i suspect the code should be fan_min plus this 500
i figured i shouldnt remove "fan_window" entirely and just use the normalized value times fan_max, since someone might set a fan_min higher than 0, so this part of code is still necessary to be kept
fyi, im using macfand on macbookair7,2 running archlinux. (im not an experienced developer)