-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
hwmon drivers with long update period lead to malfunction #272
Comments
Hey @desowin , thx for opening an issue 👍
Do you have anything specific in mind?
That's already possible. Please have a look at the example config: Line 66 in dfa4364
|
Take a look at the I am not sure if there are genuine cases where there is non-monotonic pwmMap.
Yes, I know, but I have to put 256 distinct lines after pwmMap for it to work as expected, i.e.
|
@desowin thx for posting the graph, makes it much easier to visualize.
Neither am I. If working on fan2go has told me anyghing its that fan drivers are not all created equal 😄
So? I mean its ugly, sure, but its in a config file that has to be configured once to never be looked at again. |
Describe the bug
fan2go assumes that pwm value update period is 5 milliseconds. This is definitely not true for https://github.com/Fred78290/nct6687d driver where the cache update period is 1 second.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
PWM map is correctly computed. While this might not be feasible, some sanity check (and appropriate warning message if sanity check failed) on computed PWM map would be helpful in troubleshooting.
Screenshots
Desktop (please complete the following information):
uname -a
:Linux starfighter 6.7.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 17 Feb 2024 14:02:33 +0000 x86_64 GNU/Linux
sensors -v
: sensors version 3.6.0+git with libsensors version 3.6.0+gitfan2go version
: 0.8.1Additional context
I can get correct map by increasing pwmSetGetDelay in
fan2go/internal/controller/controller.go
Line 21 in dfa4364
from 5 to 1500 milliseconds (with 1000 milliseconds I was still getting wrong map, didn't try values in between due to pretty long time the computation takes).
While it can be argued that the problem is really in nct6687d driver, I think it would make sense to have some better sanity checks in fan2go to help explain weird behavior. Also it would be good to be able to specify direct 0-255 -> 0-255 map in config to workaround this sort of issues. See Fred78290/nct6687d#91 for a nct6687d driver workaround, but I believe such driver workaround is not the way to go.
The text was updated successfully, but these errors were encountered: