mirror of
https://github.com/hirschmann/nbfc.git
synced 2026-04-26 00:56:01 +03:00
[PR #1228] Fan.cs - Feature/update EC when needed (ramping up cycle); Config: Thinkpad E570 #1430
Labels
No labels
Stale
bug
config
discussion
duplicate
enhancement
experimental
feature
help-wanted
info
invalid
invalid
pull-request
question
up-for-grabs
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nbfc-hirschmann#1430
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hirschmann/nbfc/pull/1228
Author: @matkovic
Created: 3/5/2022
Status: 🔄 Open
Base:
master← Head:feature/update-ec-when-needed📝 Commits (4)
83812e3fan EC update only when neededf9c398fadd thinkpad lenovo e570 config66bb084add 100 temperature fan speed threshold5a9bf05fix critical and 100 fan speed📊 Changes
2 files changed (+55 additions, -1 deletions)
View changed files
➕
Configs/Lenovo ThinkPad E570.xml(+51 -0)📝
Core/StagWare.FanControl/Fan.cs(+4 -1)📄 Description
I added config for Lenovo ThinkPad E570, where 100% of the target fan speed is really some "special" full fan speed (also really loud). This is only enabled for critical temperature. Without this, this fan has only 5 speed modes (0x01, 0x02, 0x03, 0x04, 0x05) written to 0x2F EC. The special fast+loud one is 0x40.
Another thing that I noticed is the constant ramping up cycle on my laptop - everytime when the EcPollInterval started with checking up the temperature and setting the value in EC, fan stops for a moment and starts again with the desired fan speed. The problem is with the constant writing to EC, which somehow resets or reinitializes fan. I think the same behavior is described in #925.
I added a few lines to the Fan.cs, so that writing to EC happens only when needed (when the change in target speed actually happens). This stops constant fan ramping up after EcPollInterval, but still when the change in target speed happens, it resets the fan for a moment. Maybe its not the best solution, but it better than torturing the fan with constant on-ing and off-ing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.