Fan Control via cur_state file. #2
Replies: 2 comments 2 replies
-
|
@russelroyr - the logic (very high level) is
When you say you changed the file in vi, what exactly did you change? In my case I set MIN_STATE to 1 because I wanted the fan to run always (even at lowest speed). But if you set it to 0, the fan will actually stop when the temperature falls below lower temperature threshold. And no, the cur_state does not have to be continously set to keep the fan running. Just set it once and the fan runs until you change the value or reboot the board. You can run this script in debug mode and in foreground by just running it like any standard python script. This should show what the program is doing by log messages. All those "logger.debug" messages should tell you what's going on. Let me know how it goes. |
Beta Was this translation helpful? Give feedback.
-
|
@russelroyr - I have added more comments to the code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings,
Thanks for this python file.
I’ve examined the fan_control.py. I did not install it yet.
Looks like you control the fan speed via the cur_state file.
When I change this file manually (vi), the fan spins for maybe 30 seconds and then stops.
When I look at the value in the cur_state file it’s set to 0.
Do you know why it behaves this way?
Does the fan continue to operate with your script because you periodically set the cur_state value otherwise it would stop like when I adjust it manually?
Russ
Beta Was this translation helpful? Give feedback.
All reactions