(05-01-2019, 01:17 PM)Farley56 Wrote: [ -> ]Thanks for the suggestions.
1. which lua returned error.
2. Ran the ln command
3. which lua command now returns;
/usr/bin/lua
4. Install of master revision now gives me this error;
Hello,
Can you post the entire command of:
Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
Also the output of:
Code:
lua <<<'print(_VERSION)'
Regards,
I certainly can. Let me know if you need anything more.
1. Result of luarocks build" command;
Cloning into 'ats'...
remote: Enumerating objects: 24, done.
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 24 (delta 1), reused 9 (delta 0), pack-reused 0
Receiving objects: 100% (24/24), 105.83 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Warning: variable CFLAGS was not passed in build_variables
** PLATFORM = linux **
** OS = 32Bits **
** ARCH = armv7-a **
** TUNE = cortex-a72.cortex-a53 **
gcc -c -march=armv7-a -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o debug.o src/debug.c
gcc -c -march=armv7-a -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 Method: LuaRocks ..
SystemD Detected ..
Searching for Previous Install, and Remove it:
removed '/etc/ats.conf'
removed '/lib/systemd/system/ats.service'
removed '/usr/local/sbin/ats'
removed '/usr/local/lib/lua/5.3/ats.so'
Install ATS Service File ..........: ats.service in '/usr/local/lib/luarocks/rocks/ats/master-0'
Install ATS Config ................: ats.config in '/usr/local/lib/luarocks/rocks/ats/master-0'
Install ATS Tool ..................: ats in '/usr/local/lib/luarocks/rocks/ats/master-0'
Install new ATS Library ...........: ats.so.0.9 in '/usr/local/lib/luarocks/rocks/ats/master-0'
Creating soname symLink ........: ats.so in '/usr/local/lib/luarocks/rocks/ats/master-0'
Creating Service symLink .......: ats.service in '/lib/systemd/system'
Creating Binary symLink ........: ats in '/usr/local/sbin/ats'
Creating Config symLink ........: ats.conf in '/etc/ats.conf'
Creating SharedObject symLink ..: ats.so.0.9 in '/usr/local/lib/lua/5.3'
Starting ATS Service..
● ats.service - ATS - Active Thermal Service
Loaded: loaded (/usr/local/lib/luarocks/rocks/ats/master-0/ats.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2019-05-01 20:14:00 CDT; 25ms ago
Process: 16288 ExecStart=/usr/local/sbin/ats (code=exited, status=1/FAILURE)
Main PID: 16288 (code=exited, status=1/FAILURE)
Makefile:224: recipe for target 'install' failed
make: *** [install] Error 3
Error: Build error: Failed installing.
2. Result of "lua print version" command;
-dash: 2: Syntax error: redirection unexpected
More info that might help. From the OMV dashboard System Information
Version = 4.1.22-1 (Arrakis)
Processor = ARMv8 Processor rev2 (v8I)
Kernel = Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524
(05-01-2019, 07:18 PM)Farley56 Wrote: [ -> ]2. Result of "lua print version" command;
-dash: 2: Syntax error: redirection unexpected
More info that might help. From the OMV dashboard System Information
Version = 4.1.22-1 (Arrakis)
Processor = ARMv8 Processor rev2 (v8I)
Kernel = Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524
Hello,
The 2nd point is weird..
Code:
lua <<<'print(_VERSION)'
Should work..does you copy pasted it or run a custom version?
Anyway, you need a kernel at least >= 4.4.132-1083..
This one works:
Code:
apt-get update
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
reboot
After rebooting,
Check if the service is up and running
Damn. My bad. Thought I was at a high enough kernel... the classic "id10t" error! Sorry.
1. Installed the kernel update. Rebooted.
2. Installed the master revision. Got the green light that install was good.
3. Checked service - running now.
Thanks for sticking with me.
Now I can peruse the settings in the forum thread and see if I can get the fan to start up.
Any quick advice on what to set just to see if it's operational?
Thanks again!
(05-02-2019, 07:44 PM)Farley56 Wrote: [ -> ]Thanks for sticking with me.
Now I can peruse the settings in the forum thread and see if I can get the fan to start up.
Any quick advice on what to set just to see if it's operational?
Thanks again!
You welcome
You can check if ATS starts when service is been bring up
Stop service:
Then you can start it again:
The fan will spin for very short time, if outside Active window, or during a bigger amount of time if between 40-60C degrees..
But you can adapt it the config file '/etc/ats.conf'
I made a Tutorial for that
here
You can lower the '
MIN_CONTINUOUS_THERMAL_TEMP' to 30C degrees for example, so that the fan start erlier to spin, in that way you will notice it..
Each time you change the config file you need to stop and start the service, to catch the changes..
Edited the ats.conf. Works like a champ. I appreciate it!
Not sure how I managed to overlook that the thread itsn't stuck - thread stickied.
Is there anything I should do to get this working with ayufan's mainline kernel? I'm running DietPi, transitioned from the packaged ARMbian kernel to ayufan's
5.0.0-1105, but can't seem to get this tool working.