![]() |
Tool to Control Fan - fanctl - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98) +--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101) +--- Thread: Tool to Control Fan - fanctl (/showthread.php?tid=6489) |
RE: Tool to Control Fan - fanctl - tuxd3v - 05-01-2019 (05-01-2019, 01:17 PM)Farley56 Wrote: Thanks for the suggestions. 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, RE: Tool to Control Fan - fanctl - Farley56 - 05-01-2019 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 RE: Tool to Control Fan - fanctl - tuxd3v - 05-01-2019 (05-01-2019, 07:18 PM)Farley56 Wrote: 2. Result of "lua print version" command; Hello, The 2nd point is weird.. Code: lua <<<'print(_VERSION)' Anyway, you need a kernel at least >= 4.4.132-1083.. This one works: Code: apt-get update After rebooting, Check if the service is up and running ![]() RE: Tool to Control Fan - fanctl - Farley56 - 05-02-2019 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! RE: Tool to Control Fan - fanctl - tuxd3v - 05-03-2019 (05-02-2019, 07:44 PM)Farley56 Wrote: Thanks for sticking with me. You welcome ![]() You can check if ATS starts when service is been bring up Stop service: Code: service ats stop Then you can start it again: Code: service ats start 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.. RE: Tool to Control Fan - fanctl - Farley56 - 05-06-2019 Edited the ats.conf. Works like a champ. I appreciate it! RE: Tool to Control Fan - fanctl - Luke - 05-08-2019 Not sure how I managed to overlook that the thread itsn't stuck - thread stickied. RE: Tool to Control Fan - fanctl - deathisunknown - 05-17-2019 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. RE: Tool to Control Fan - fanctl - tuxd3v - 05-17-2019 (05-17-2019, 07:18 AM)deathisunknown Wrote: 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 [/url][url=https://github.com/ayufan-rock64/linux-mainline-kernel/releases/tag/5.0.0-1105-ayufan]5.0.0-1105, but can't seem to get this tool working. Hello deathisunknown, Can you please paste the output of: Code: luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.2-0.rockspec Also: Code: which lua RE: Tool to Control Fan - fanctl - deathisunknown - 05-18-2019 (05-17-2019, 05:34 PM)tuxd3v Wrote: Can you please paste the output of: Code: root@RockPro:~# luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.2-0.rockspec (05-17-2019, 05:34 PM)tuxd3v Wrote: Also: Code: root@RockPro:/usr/bin# which lua Thanks! |