-
-
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
Dell Server - Cycles without Settling #201
Comments
Hey @tjbennett thx for the report 🚀 FYI: For better readability, I have removed the comments from your configuration.
fan2go should not fail because of this, it should issue warnings about it though.
If you set
You specify a custom minPwm: 128
startPwm: 128
maxPwm: 255
pwmMap:
0 : 128
170: 138
255: 255 How did you get to these values? Are there no possible PWM values other than the three you have specified? Setting a Increasing the value of |
@markusressel Your response is helpful, I will go through the link you sent and using more knowledge attempt this again... hopefully by tomorrow. |
So @markusressel I have done that reading and found the similar pattern in the Dell server as a PWM input/RPM output. The 3930 has a step functionality: [0-64] -> idling fan, speed not truly constant Graph RPM v PWMThe PWM value read back from /sys/class/hwmon/hwmon3/pwm1, is always 128 until the value written to pwm1 hits 192 and there is a pause for 6 seconds I simplified the yaml file and get an "invalid argument" panic. Graph RPM v PWMdbPath: "/etc/fan2go/fan2go.db"runFanInitializationInParallel: false tempSensorPollingRate: 200ms rpmPollingRate: 1s controllerAdjustmentTickRate: 200ms fans:
sensors:
curves:
Panic output: using INFO Using configuration file at: ./fan2go.yaml
INFO Gathering sensor data for cpu...
INFO Loading fan curve data for fan 'cpu'...
WARNING Fan 'cpu' has not yet been analyzed, starting initialization sequence...
INFO Using pwm map override from config...
DEBUG Distinct PWM value targets of fan cpu: [0 192]
INFO Measuring RPM curve...
DEBUG Fan cpu: Actual PWM value differs from requested one, skipping. Requested: 0 Actual: 128
DEBUG Fan cpu: Actual PWM value differs from requested one, skipping. Requested: 1 Actual: 128
ERROR Cant attach empty fan curve data to fan cpu
ERROR Failed to attach fan curve data to fan cpu: invalid argument
INFO Fan controller for fan cpu stopped.
WARNING Cannot send notification, missing env variable 'DISPLAY'! Panic output when running INFO Using configuration file at: ./fan2go.yaml
INFO Using persistence at: /etc/fan2go/fan2go.db
INFO Deleting existing data for fan 'cpu'...
INFO Using pwm map override from config...
INFO Measuring RPM curve...
ERROR Cant attach empty fan curve data to fan cpu
ERROR Failed to attach fan curve data to fan cpu: invalid argument Any thoughts on what I have missed here? |
Firstly I would suggest to set Given your PWM map is accurate, min and start can be set to 0, max can be set to 192. Fan control should then start even with a "fresh install" (or removed fan curve). The fact that fan2go is panicking is not great though, I will see if there is something we can do about this. |
Describe the bug
Dell Server 3930 - has 3 fans all of which can be controlled by a temperature sensor (or many sensors). Attempting to replace fancontrol with an easier, smoother method.
Install fan2go and tried to build a yaml file to represent server conditions
Use a definition of single cpu fan and representative sensor (cpu temp sensor).
In Dell 3930, /sys/class/hwmon/hwmon3/pwm1 represents as 128 even when in slow cycles. Therefore reading back a PWM setting is fraught with issues. A PWM setting should represent an RPM value and instead of reading back the PWM settings a relation to the RPM would be more representative of the PWM setting.
To Reproduce
Install fan2go, using go 1.20, and set yaml as following:
Expected behavior
Expect the system to ramp up fan speed when temperature increases, slowly ramp fan system down as system cools.
Desktop (please complete the following information):
Distro: Ubuntu 20.04 server version
uname -a
: Linux SG30d042e20c0a 5.4.0-137-generic Bugfix/#153 pwm settings improvements #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linuxsensors -v
: sensors version 3.6.0 with libsensors version 3.6.0fan2go version
: (dev) b3f19b3Additional context
There may be a great misunderstanding of the configuration or the intent of this program that has created this report.
The text was updated successfully, but these errors were encountered: