11-15-2018, 04:41 AM
(11-14-2018, 06:24 PM)tuxd3v Wrote:Hello,(11-14-2018, 12:50 PM)stFfn Wrote:(11-14-2018, 11:20 AM)tuxd3v Wrote: Can you post the result of this command?
Code:ats --test
also you could change the profile, be default it his on profile 1, which is for smaller fans,
you could change for profile2, or profile3,
But first it would be nice to have the output of that command.
Hey this is what happenes....
Code:root@rockpro64Nas:~# ats --test
/usr/bin/env: 'lua': No such file or directory
Hello,
Does you installed the necessary dependencies?
it is not finding the Lua interpreter..
Maybe you have installed the dependencies, but maybe you have not created the simbolic lynk?
Code:ln -s /usr/bin/lua5.3 /usr/bin/lua
im a total linux noob.
if you could tell me step by step what to do i would be greatfull

Here is what i tested. i hope it helps you to help me

Code:
root@rockpro64Nas:~# ln -s /usr/bin/lua5.3 /usr/bin/lua
root@rockpro64Nas:~# luarocks build https://raw.githubusercontent.com/tuxd3v/ats /master/ats-master-0.rockspec
Cloning into 'ats'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 16 (delta 1), reused 6 (delta 0), pack-reused 0
Receiving objects: 100% (16/16), 95.96 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Warning: variable CFLAGS was not passed in build_variables
gcc -c -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o src/ats.o src/ats.c
gcc -shared -Wl,-soname,ats.so.0 -llua5.3 -o ats.so.0.2 src/ats.o
Install ATS Tool ..................: ats in /usr/local/sbin
Install ATS Service File ..........: ats.service in systemd
Remove previous ATS Library .......: ats.so.* from /usr/local/lib/lua/5.3
Install new ATS Library ...........: ats.so.0.2 in /usr/local/lib/lua/5.3
Create soname symLink .............: ats.so in /usr/local/lib/lua/5.3
Starting ATS Service..
● ats.service - ATS - Active Thermal Service
Loaded: loaded (/lib/systemd/system/ats.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2018-11-15 10:38:01 UTC; 860ms ago
Process: 10239 ExecStart=/usr/local/sbin/ats (code=exited, status=1/FAILURE)
Main PID: 10239 (code=exited, status=1/FAILURE)
Nov 15 10:38:01 rockpro64Nas systemd[1]: ats.service: Unit entered failed state.
Nov 15 10:38:01 rockpro64Nas systemd[1]: ats.service: Failed with result 'exit-code'.
Makefile:46: recipe for target 'install' failed
make: *** [install] Error 3
Error: Build error: Failed installing.
root@rockpro64Nas:~# ats --test
getConditions: Warning, Values { THERMAL0_CTL, THERMAL1_CTL, FAN_CTL }: /sys/class/thermal/thermal_zone0/temp, /sys/class/thermal/thermal_zone1/temp, ERROR
exit 1