Closed ootoovak closed 6 years ago
Hello ootoovak, You welcome :)
I see, the last part of the error, is very important:
"getConditions: Warning, Values { THERMAL0_CTL, THERMAL1_CTL, FAN_CTL }: /sys/class/thermal/thermal_zone0/temp, /sys/class/thermal/thermal_zone1/temp, ERROR"
It is a pré-check, for detecting PWM capabilities, and sensor reading for temperatures.. Your kernel needs to be updated..
Do the Following as root:
apt-get update
apt-get install linux-firmware-image-4.4.138-1097-rockchip-ayufan-gb5128c0a1684
apt-get install linux-headers-4.4.138-1097-rockchip-ayufan-gb5128c0a1684
apt-get install linux-image-4.4.138-1097-rockchip-ayufan-gb5128c0a1684
reboot
Then try to install with luarocks option 1. It should now work :)
Can you confirm?
Perfect, that seems to have done the trick. It is all working now. Thanks again @tuxd3v!
Ok, nice you succeed! There are 2 profiles, one for 10mm taller fans and another for 20 mm taller fans( less power given that the fan is more powerfull already ).
By default, it comes with the configuration for 10mm taller fan. If you notice that, it is too much aggressive with speed noise, or something, you can change to profile 2.
For that, edit file /usr/local/sbin/ats
in line 67:
" FANSPEC = "profile1""
Change "profile1" to "profile2"
save file and:
service ats restart
service ats status
and its done :)
Best Regards,
That is very good to know, thank you. I'm using the one for the NAS box casing from the Pine64 store. https://www.pine64.org/?product=fan-for-rockpro64-metal-desktopnas-casing
FYI, I'm getting the same error on kernel version 5.10.63 on a rock64 with Armbian. Followed the 'A' install instructions (but installing liblua5.3-dev
rather than lua5.3-dev
because I don't think lua5.3-dev
exists), and get this when I try to install:
sudo luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.2-0.rockspec
ats 0.2-0 depends on lua >= 5.3 (5.3-1 provided by VM)
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 debug.o src/debug.c
gcc -c -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o ats.o src/ats.c
gcc -shared -Wl,-soname,ats.so.0 -llua5.3 -o ats.so.0.9 debug.o ats.o
Install ATS Tool ..................: ats in /usr/local/sbin
Install ATS Config ................: ats.config in /etc
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.9 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 Tue 2022-08-16 18:51:22 PDT; 1s ago
Process: 2421 ExecStart=/usr/local/sbin/ats (code=exited, status=1/FAILURE)
Main PID: 2421 (code=exited, status=1/FAILURE)
make: *** [Makefile:119: install] Error 3
Error: Build error: Failed installing.
sudo /usr/local/sbin/ats --test
gets me
getConditions: Warning, Values { THERMAL0_CTL, THERMAL1_CTL, FAN_CTL }: /sys/class/thermal/thermal_zone0/temp, ERROR, ERROR
exit 1
No chance you know what's up?
[EDIT: installing from master seems to have fixed it]
First of all thanks for writing and sharing this project. 😃Seems like it will be very useful to have. I'm currently having a issue with my install though.
I've tried both the command with
luarocks
as well as using Git to clone the repo and build withmake
andmake install
.make install
fails with:And checking with
sudo /usr/local/sbin/ats --test
returns:Am I missing something?
Note: I'm using the RockPro64 with NAS case (including heatsink and fan).