Tool to Control Fan - fanctl
#71
(11-13-2018, 03:26 PM)stFfn Wrote: Hello,

i´ve just gotten my RockPro64 + the Nascase... and i´ve also notived that the fan does not spin up.... 
im a linux noob and somehow im not able to install your fan controll programm... im connected to the RockPro64 with SSH as Root. and when i try to install ist, i geht these  error messages...

Code:
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 Tue 2018-11-13 21:18:25 UTC; 978ms a
go
 Process: 14532 ExecStart=/usr/local/sbin/ats (code=exited, status=127)
Main PID: 14532 (code=exited, status=127)

Nov 13 21:18:25 rockpro64Nas systemd[1]: ats.service: Unit entered failed state.
Nov 13 21:18:25 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.
Could you please help me out? the HDD´s getting to 60°C during my Raid Setup.... i want to avoid HDD damage...

Greetings
Steffen
Can you post the result of this command?
A exit code of 127, should be a shell exit code, maybe it won't find the binary or so..

Code:
ats --test

also you could change the profile, by 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.
  Reply
#72
(11-14-2018, 11:20 AM)tuxd3v Wrote:
(11-13-2018, 03:26 PM)stFfn Wrote: Hello,

i´ve just gotten my RockPro64 + the Nascase... and i´ve also notived that the fan does not spin up.... 
im a linux noob and somehow im not able to install your fan controll programm... im connected to the RockPro64 with SSH as Root. and when i try to install ist, i geht these  error messages...

Code:
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 Tue 2018-11-13 21:18:25 UTC; 978ms a
go
 Process: 14532 ExecStart=/usr/local/sbin/ats (code=exited, status=127)
Main PID: 14532 (code=exited, status=127)

Nov 13 21:18:25 rockpro64Nas systemd[1]: ats.service: Unit entered failed state.
Nov 13 21:18:25 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.
Could you please help me out? the HDD´s getting to 60°C during my Raid Setup.... i want to avoid HDD damage...

Greetings
Steffen
Can you post the result of this command?
A exit code of 127, should be a shell exit code, maybe it won't find the binary or so..

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
  Reply
#73
(11-13-2018, 10:39 PM)tuxd3v Wrote:
(11-13-2018, 11:30 AM)Girbur Wrote: With openmediavault 32 bits works perfect bu I just tried to install on 64 bit and get


Error: Could not find header file for LAUXLIB
 No file lauxlib.h in /usr/local/include
 No file lauxlib.h in /usr/include
You may have to install LAUXLIB in your system and/or pass LAUXLIB_DIR or LAUXLIB_INCDIR to the luarocks command.
Example: luarocks install ats LAUXLIB_DIR=/usr/local

Does you tried first step?
Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

What is the output of it?

Woking Thank you, great sofware
  Reply
#74
(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
  Reply
#75
kudos on the app. works like a charm.
  Reply
#76
(11-14-2018, 05:46 PM)Girbur Wrote: Woking Thank you, great sofware

You Welcome [Image: shy.png]
  Reply
#77
(11-14-2018, 06:24 PM)tuxd3v Wrote:
(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
Hello,

im a total linux noob.

if you could tell me step by step what to do i would be greatfull Smile

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


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
  Reply
#78
(11-15-2018, 04:41 AM)stFfn Wrote: Hello,

im a total linux noob.

if you could tell me step by step what to do i would be greatfull Smile

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

Code:
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

Ok,
Your problem, is that you need to upgrade your kernel,
install this kernel version:
Code:
apt-get install linux-image-4.4.138-1097-rockchip-ayufan-gb5128c0a1684 linux-headers-4.4.138-1097-rockchip-ayufan-gb5128c0a1684 linux-firmware-image-4.4.138-1097-rockchip-ayufan-gb5128c0a1684

It will install a new kernel version, it will askyou if you want to install press 'Y', for yes.

After installation:
Code:
reboot

And after boot up the new kernel, check ats status( it should now now be ok ): [Image: shy.png]
Code:
service ats status
  Reply
#79
Thank you. Now it shows a status.

Code:
root@rockpro64Nas:~# 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-11-15 16:18:13 UTC; 23s ago
Main PID: 924 (lua)
   Tasks: 1 (limit: 4915)
  CGroup: /system.slice/ats.service
          └─924 lua /usr/local/sbin/ats

Nov 15 16:18:13 rockpro64Nas systemd[1]: Started ATS - Active Thermal Service.
Now what do i have to do exactly to get the fan started Big Grin
  Reply
#80
(11-15-2018, 10:19 AM)stFfn Wrote: Thank you. Now it shows a status.

Code:
root@rockpro64Nas:~# 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-11-15 16:18:13 UTC; 23s ago
Main PID: 924 (lua)
   Tasks: 1 (limit: 4915)
  CGroup: /system.slice/ats.service
          └─924 lua /usr/local/sbin/ats

Nov 15 16:18:13 rockpro64Nas systemd[1]: Started ATS - Active Thermal Service.
Now what do i have to do exactly to get the fan started Big Grin

You need to plug the fan 2 pin conector in the board, red wire is(+), black is(-).  Shy
It should start automatically, when temps above 40C
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PWM Fan Control Python Script superbox 0 1,647 02-04-2022, 10:02 PM
Last Post: superbox

Forum Jump:


Users browsing this thread: 18 Guest(s)