12-13-2018, 06:37 AM
(12-12-2018, 09:13 AM)tuxd3v Wrote: Hello all,
I told you that I would create a tutorial about ATS Configuration, and here it is( sorry for the late on this.. ).
Hello, please help me.
I use a RockPro64 4Gb.
Code:
root@rockpro64:~# uname -a
Linux rockpro64 4.4.138-1094-rockchip-ayufan-gf13a8a9a4eee #1 SMP Thu Aug 9 20:29:55 UTC 2018 aarch64 GNU/Linux
I installed by these instructions.
- apt-get install lua5.3 lua5.3-dev luarocks gcc make
- ln -s /usr/bin/lua5.3 /usr/bin/lua
- luarocks build https://raw.githubusercontent.com/tuxd3v...8.rockspec
Code:
root@rockpro64:~# ats -v
ATS - .. Active Termal Service..
- .. Version: 0.1.7
root@rockpro64:~# service ats status
● ats.service - ATS - Active Thermal Service
Loaded: loaded (/lib/systemd/system/ats.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-12-13 11:24:01 UTC; 47s ago
Main PID: 2417 (lua)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/ats.service
└─2417 lua /usr/local/sbin/ats
Dec 13 11:24:01 rockpro64 systemd[1]: Started ATS - Active Thermal Service.
The fan turns, even test ats -t works
Code:
root@rockpro64:~# ats -t
Stopping for[ seconds ]............... 10
CPU Temperature[ max 70 °C ].......... 60
GPU Temperature[ max 70 °C ].......... 60
Fan PWM Duty Cycle value[ 0 - 255 ]... 190
--------------------
Running for[ seconds ]................ 6
CPU Temperature[ max 70 °C ].......... 38
GPU Temperature[ max 70 °C ].......... 38
Fan PWM Duty Cycle value[ 0 - 255 ]... 0
--------------------
Stopping for[ seconds ]............... 120
CPU Temperature[ max 70 °C ].......... 38
GPU Temperature[ max 70 °C ].......... 38
Fan PWM Duty Cycle value[ 0 - 255 ]... 0
--------------------
^Clua: /usr/local/sbin/ats:407: interrupted!
stack traceback:
[C]: in function 'sleep'
/usr/local/sbin/ats:407: in main chunk
[C]: in ?
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?