Tutorial:How to Configure ATS Fan control - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98) +--- Forum: RockPro64 Projects, Ideas and Tutorials (https://forum.pine64.org/forumdisplay.php?fid=104) +--- Thread: Tutorial:How to Configure ATS Fan control (/showthread.php?tid=6953) |
Tutorial:How to Configure ATS Fan control - tuxd3v - 12-12-2018 Hello all, I told you that I would create a tutorial about ATS Configuration, and here it is( sorry for the late on this.. ). You need a supported Kernel for this to work( at least you need kernel 4.4.132-1083 ). But the one bellow will work for sure: Code: apt-get update This tutorial is about the version 0.2.0 ( Install Point 2. or 3. ), it is updated with the status of the project.. So please refer only to this first comment, Some of comments below could be outdated( as the project is been updated.. ).. 1) ATS, has a configuration file '/etc/ats.conf' Code: SYSTEM = { This File will define when ATS is active or not, IF fan is always on, and the max power applied... The values above are the default ones.. THERMAL0_CTL - CPU Thermal SysFs Control THERMAL1_CTL - GPU Thermal SysFs Control PWM_CTL - Power Control MAX_CONTINUOUS_THERMAL_TEMP - Maximum Temperature were ATS adjust Fan power [ -20, 70 [, Above this, power is always Maximum.. MIN_CONTINUOUS_THERMAL_TEMP - Minimum Temperature were ATS adjust Fan power [ -20, 70 [, Bellow this, power is always Off. MAX_PWM - Max PWM Fan Power ] 0, 255 ], above 255 ATS will automatically assign value 255, and bellow 0, the same. MIN_PWM - Min PWM Fan Power [ 0, 255 [, bellow 0 ATS will automatically assign value 40, and above 254, the same. ALWAYS_ON - Tell ATS when Fan should be ON/OFF { true, false }, - true, if you want the Fan always ON. - false,if you want the Fan Cycling ON/OFF, In this case, the algorithm works always in a 2 steps way( Time for Fan on, and Time for Fan off ): - Timer for Fan ON, will increase with temperature rising, or decrease when temperature fall.. - Timer for Fan OFF, will decrease with temperature rising, or increase when temperature fall.. The values bellow( introduced in version 0.1.8 ), probably will be scratched out, because its almost impossible to create profiles with so different configurations any one has( different heatsinks, different Fans, different Humidity/Temperatures around the globe... ). Instead, the controls above, would be better,( don't delete them because the code needs to be adjusted first for that..) PROFILE_NAME - The name of the profile PROFILE_NR - Profile number 2) A Practical Case.. Imagine you want max power at 100, the Fan always ON, and max power( 100 ) to be reached at 65°C: Code: SYSTEM = { 3) Stop ATS, and start it again( new values will be read ). Code: service ats stop && service ats start 4) Check values applied, Start ats in test mode: Code: root@rockpro64:~# ats -t Here you can see at end: 'Stop ATS Service first [ service ats stop ]..' No problem, When you started ats in test mode, it detected that Service launched in 3) was already running.. So it report the config, and exit from test mode( The Service launched in 3) continues running, as expected ).. Its nice when you wanted to know what values are configured for example.. That's it!! Hope you find a good tuning for your Fan/Cooler. Best Regards, RE: Tutorial:How to Configure ATS Fan control - Neo2018 - 12-13-2018 (12-12-2018, 09:13 AM)tuxd3v Wrote: Hello all, Hello, please help me. I use a RockPro64 4Gb. Code: root@rockpro64:~# uname -a I installed by these instructions.
Code: root@rockpro64:~# ats -v The fan turns, even test ats -t works Code: root@rockpro64:~# ats -t But over 1) ATS, has a configuration file '/etc/ats.conf' I can not control the fan. I try to change the values, e.g. : MAX_CONTINUOUS_THERMAL_TEMP, MIN_CONTINUOUS_THERMAL_TEMP no success. Or ALWAYS_ON does not work either. Where is the mistake, what am I doing wrong? Question 2: I have a NASCase, I want to have 2 fans: 1 for CPU, 2 for NASCase / HDD. Where and how can you connect and control this? RE: Tutorial:How to Configure ATS Fan control - tuxd3v - 12-13-2018 (12-13-2018, 06:37 AM)Neo2018 Wrote: But over 1) ATS, has a configuration file '/etc/ats.conf' I can not control the fan. I try to change the values, e.g. : You need to install the version that is in master branch.. do this: Code: luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec Question 2: I have a NASCase, I want to have 2 fans: 1 for CPU, 2 for NASCase / HDD. Where and how can you connect and control this? At least for now, ATS, only provide 2 sources of Temperature Control( CPU + GPU ). To Connect 2 fans, youwould need to conect the second one to the conector close to the Power Plug( The bigger white plug ). See this reply from romtorwator RE: Tutorial:How to Configure ATS Fan control - Neo2018 - 12-13-2018 Thanks for quick support. (12-13-2018, 09:58 AM)tuxd3v Wrote: You need to install the version that is in master branch.. do this:Great it works now! Super Software Thanks for that! Code: root@rockpro64:~# ats -v Quote:At least for now, Sorry, but which plug exactly 23 ? > 23 CON15 4 DC out for SATA disk cable (direct connect from DC-IN) The plug is occupied with me HDD power supply / Power Cable for dual SATA Drives / (PCI-e to Dual SATA-II Interface Card). Or am I completely wrong? How should it all look like? Do you have an example photo / picture? I do not understand. Do you mean that reply? How is it controlled? Is there another way to cool the "NASCase" with GRIPO / Script / Python etc .... Does somebody has any idea? RE: Tutorial:How to Configure ATS Fan control - tuxd3v - 12-14-2018 (12-13-2018, 11:41 AM)Neo2018 Wrote: Thanks for quick support. You Welcome, thanks (12-13-2018, 09:58 AM)Neo2018 Wrote: Sorry, but which plug exactly 23 ? > 23 CON15 4 DC out for SATA disk cable (direct connect from DC-IN) I was thinking about the conector 23.. But you already have it populated with Sata power for the disk.. 1) If you are not using too much CPU: The CPU heatsink alone will do, without any fan above.. In this case, You can put the NasFan connected to Fan Conector 4. 2) If you have, the CPU processing a lot: You would need to have a conector that will do,1 conector -> to 2 power derivation, connected to Conector 23. In this way, You can have power to disks, and power to NASFan, but no control of NasFan, ON/OFF, etc, Fan will be always at Max speed To Control NasFan in this situation, you will need one of the options: 2a) The romtorwator, solution of a thermostat, or other identical.. 2b) Or a replication, of the circuit schematic that control pwm for fan in RockPro64 ( page 6 ), The possibility of this situation will be addressed in future versions of ATS, were will be there a option for GPIO PWM.. Also, at the moment there are options to control GPIO on 3.9 Working Features, search there for "GPIO pins".. But the power circuitry, will need to exist in some form, ( ..it could be connected to Conector 23, and a pin connected to GPIO, for example, for pwm control ) RE: Tutorial:How to Configure ATS Fan control - Neo2018 - 12-14-2018 (12-14-2018, 04:16 AM)tuxd3v Wrote: 2) If you have, the CPU processing a lot:Thanks for the complete education, helped me a lot. I will probably use KSD9700 40-NO, it seems to me the best and fastest solution. It is a real pity that it is not immediately an extra plug for NasCase is provided. I will report who I installed it. Thank you. RE: Tutorial:How to Configure ATS Fan control - tuxd3v - 12-18-2018 (12-14-2018, 11:47 AM)Neo2018 Wrote:(12-14-2018, 04:16 AM)Thanks for the complete education, helped me a lot. Wrote: I will probably use KSD9700 40-NO, it seems to me the best and fastest solution. RE: Tutorial:How to Configure ATS Fan control - va88 - 12-22-2018 Could this possibly work on a Rock64? RE: Tutorial:How to Configure ATS Fan control - tuxd3v - 12-22-2018 (12-22-2018, 05:29 AM)va88 Wrote: Could this possibly work on a Rock64? At the moment it wouldn't work, in future releases perhaps.. I am redesigning the Backend of ATS, so accept different input sources and different output sources. But the most important are SysFs and PWM.. In Rock64 I don't know if there are any pwm driver there, or if there are any fan conector.. It could be possible to generate the pwm, via GPIO, but a HardWare power driver( like in Rockpro64 need to exist in some form to switch the fan On/Off ). It could be even a breakout board connected to gpio and 12 volts, receiving pwm from ATS for example.. I don't know much about rock64 RE: Tutorial:How to Configure ATS Fan control - Neo2018 - 12-25-2018 (12-22-2018, 03:44 PM)tuxd3v Wrote: RockPro64Hello tuxd3v, i have a completely different question, maybe you can help me or an idea! I create for me a welcome message for "SSH-Putty" connection. > EXAMPLE. On my RaspberryPi there is a command to read the CPU temperature "vcgencmd measure_temp" and I get a simple output> Code: pi@myhomeserver:~ $ vcgencmd measure_temp Code: # Temperatur Code: pi@myhomeserver:~ $ sh welcome.sh Code: root@RockHomeServer:~# armbianmonitor -m I can not integrate that into the welcome message. I do not get far with Google Search. I'm not a noob but that's new to me. Can you please tell me what I can use in my case? You had to do with it too? Thank you very much! Merry Charismas ! |