-
Notifications
You must be signed in to change notification settings - Fork 72
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
Discussion: Optimal Fan Curves #180
Comments
@MilesBHuff responding just to the 90C remarks, I felt the same way initially and I adjusted my fan curve to something like you describe; spin those fans early and hit 100% between 70-80C. I ran with that fan curve for a bit and thought it was good. Then, I embarked on a journey to understand the power limits (and how they relate to thermal limits) of my new i7-1165G7 and that led me here and ultimately to understanding the pop-os s76 power profiles and their intended use. The fan curves actually correspond to the power profiles. Battery profile (for my device) places a thermal limit of 68C while the floor of fans even spinning is 70C. I can't find the thread now, but I've seen @jackpot51 or another engineer write that battery profile should be silent. Balanced profile thermal limits to 88C which would allow for 90% fan and then you must use performance profile to get to 100% fan use. So for some time now, I've been running this fan curve to make battery profile function as intended and to keep fan speeds low on balanced when I'm using more casually and don't mind throttling if it keeps my baby from waking up. |
Fun spikes are really annoying and distracting on Distribution (run cat /etc/os-release):
NAME="Pop!_OS"
VERSION="20.10"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.10"
VERSION_ID="20.10"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=groovy
UBUNTU_CODENAME=groovy |
@kolya182 care to re-run your tests with an attempt to fix such a problem? #139. You'd need to build from the branch in pull request and add these build flags to lemp10/board.mk before building/flashing: https://github.com/curiousercreative/ec/blob/galp5/src/board/system76/galp5/board.mk#L44 |
I can't I use my machine for work, and only will be able to install official software update releases. @jackpot51 do you have a time frame on when changes to fan curves will be released ?. I listened to your convo on podcast when you mentioned work on fan curves and that when I made final decision on getting system76 laptop. Is it normal for the processor to be in the range from 62-76C at minimum load ? |
@curiousercreative (#180 (comment)) |
Sure, but at that level of effort it'd make sense to expose fan speed control in the OS. My old Mac Pro has fixed (conservative) EC fan speed control in addition to OS controlled. It'll take the maximum speed of what OS and EC request. |
@curiousercreative I feel like that's probably even more involved, but I'd definitely support that. There's an issue for it here: pop-os/system76-acpi-dkms#9, which I see you already thumbsed-up -- thanks! |
I definitely feel like there can not be a universal fan curve that all users will be happy with. Some users have sleeping kids and they want their fans to run as quiet as possible. Other users don't care, they just buy a bunch of spare fans pre-emptively and run aggressive cooling profiles: if it kills the fans earlier, they just replace them. So it's great that we have already raised an issue to control the curves from pop-os, but I feel like it needs to be higher-level. One should be able to control those curves in runtime from any OS (or at least from bios). |
Of course. But I think the option of a performance curve vs a quiet curve would cover 90% of users. And, indeed, it is commonplace in the industry for such an option to exist in the BIOS.
FWIW, what I recommend above doesn't run the fans 100% of the time -- just when needed.
pop-os/system76-acpi-dkms#9 would work from any Linux distro, not just Pop!_OS. In fact, OP's distro is Manjaro. |
This comment was marked as off-topic.
This comment was marked as off-topic.
My long term plan is now to move most of the logic to system firmware:
|
HEATUP
/COOLDOWN
The rapid and sudden spin-ups of fans on System76 laptops seems to be a common complaint in reviews for some models. Thankfully, this should be somewhat largely addressed by #190; still, it may be worth deliberating on what the optimal values for
HEATUP
andCOOLDOWN
are, since they can play a large role in this.When they're too low, the fans constantly spin up and down as the CPU fluctuates, creating a lot of distracting noise (as described by @leviport in #38 (comment));
when
HEATUP
is too high, the CPU fan will take too long to adjust (thus creating a jarring and sudden transition from a lower speed to a higher one); andwhen
COOLDOWN
is too high, the fan can blow loudly and noisily for long durations after the CPU has already cooled down.I know that
HEATUP=5
andCOOLDOWN=10
seem to work well on the oryp7 (The defaults are5
and20
, respectively;20
is definitely too long, and leaves the fans at max for 10+ seconds after the system has already cooled down.); but I don't have a good logical argument for why these are good -- only a qualitative one.Other models, such as the darp5, seem to do best with very low values for these (see: #135).
Is there some sort of criteria that can be used to determine what values should be ideal, in principle?
Bounds and interpolation
Once #190 is merged, fan curves can be simplified a fair bit, as intermediate values can then be interpolated, from what I understand. This means that the only values that will need to be explicitly mentioned in theboard.mk
files, are the ones that have very specific reasons to be there.Reading the second half of #163, it seems some fans have a lower bound for useful percentages. The oryp7, for example, has to run its fans at at least 25% or many users will experience rumbling vibrations. So maybe the lower bounds for each model could be set to the lowest percentage that works without issue?
For fans that have a broken value in the middle of their ranges (let's say Fan A rattles only from 51%-53%), two nodes could be specified, differing by only 1'C, to exclude this range: 60'C:50%::61'C:54%.
The highest value should always be 100%, unless that speed is broken for a given model's fans.
Currently, most System76 models seem to have this placed at around 90'C. While this may seem like a worthwhile tradeoff of CPU lifetime vs noise, it comes at more costs than just lifetime: When the computer does not spin the fans to max until the CPU is throttling itself extremely heavily (which it is doing at 90'C), the computational power of the computer takes a hit; and this hit can be substantial. And running at high temperatures does more than just shorten the CPU's lifespan -- it can also decrease the chip's reliability, as the fragile transistors are directly impacted by high temperatures.
All computers should reach their maximum fan speeds when they reach Tjunction, the point at which the CPU has to start throttling. This value is different for all processors, and the exact specs can be found at Intel's website (https://www.intel.com/content/www/us/en/support/articles/000005597/processors.html); but generally, hitting 100% fan at 70'C will avoid throttling on most or all CPUs, from what I understand.
But what about the temperature at which the fan should turn on? I'm unsure of an objective way to determine where this should be; but 50'C seems reasonable for laptops.
For the oryp7, the above gets us an interpolated fan curve with just two nodes: 25% @ 50'C, and 100% @ 70'C. You can find these settings (with hard-coded interpolation
as a temporary workaround until #190 is merged) at my pull request, #179.Closing remarks
I just want to say, I think you guys are awesome and thank you thank you thank you for working so hard to give us open source firmware. Like, honestly, the simple fact that I can even discuss the BIOS with the devs on GitHub and tweak the code for my own uses is just amazing.
I'm thinking through all of the above to improve the fan settings and fix the issues the defaults cause on my personal laptop; and I'm sharing my thought process here in case it's of some help, either to System76 or other power-users seeking to get the most out of their new laptops.
If nothing else, though, I really encourage you guys to consider lowering the temperature at which fans reach full speed -- 90'C is definitely too high.
Thanks for your time.
The text was updated successfully, but these errors were encountered: