![]() |
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 - ats - Active Thermal Service - tuxd3v - 10-21-2018 (10-19-2018, 04:34 PM)y0sh Wrote: Came back today to work on it and everything is now working. Hello y0sh, Ok, nice you succeed! ![]() fanctl is changing its project name, it would avoid conflict names with another projects, for instance, ( fanctl - fan bridge administration ), and its more descriptive. however there are another projects with similar names, they are differentiated, not service focused on system. fanctl is now called ats - Active Thermal Service, its a more acceptable and descriptive name. In this process, for installation, 1. You can install from master, as root with 2 options:
The simples option, and less prone to errors is simply: Will be provided, as the refactoring advance a simple way, like in the past, with the simple method above. I will inform about it, when v0.1.7 turn itself into stable Any problem, you already know, Drop a line here or on github project page, for issues: https://github.com/tuxd3v/ats/issues Regards tux RE: Tool to Control Fan - fanctl - O1Hitman1O - 10-21-2018 This is the error I am getting when trying to run luarocks build Error: Could not find library file for LUA53 No file liblua5.3.a in /usr/lib/aarch64-linux-gnu No file liblua5.3.so in /usr/lib/aarch64-linux-gnu No file matching liblua5.3.so.* in /usr/lib/aarch64-linux-gnu You may have to install LUA53 in your system and/or pass LUA53_DIR or LUA53_LIBDIR to the luarocks command. Example: luarocks install ats LUA53_DIR=/usr/local RE: Tool to Control Fan - fanctl - tuxd3v - 10-21-2018 (10-21-2018, 02:06 PM)O1Hitman1O Wrote: This is the error I am getting when trying to run luarocks build Hello O1Hitman1O, Indeed there are some dependencies that Lua needs to know about: Have you done this step? if not, copy & paste this in the terminal, and press enter: Code: cat <<HERE >> /etc/luarocks/config.lua Then issue again: Code: luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec The master repo, have seen some changes during the day, maybe related to that, some problems compiling shared library.. but trying to install again would solve the problem.. Does the error disappeared? EDIT: GitHub is reparing its Storage facility, maybe because of that you got problems.. The ats project page, is still inconsistent.. https://twitter.com/githubstatus RE: Tool to Control Fan - fanctl - O1Hitman1O - 10-22-2018 (10-21-2018, 07:39 PM)tuxd3v Wrote:(10-21-2018, 02:06 PM)O1Hitman1O Wrote: This is the error I am getting when trying to run luarocks build Yes I did, and the config file looks to be correct but still getting the dependency issue with no file found. This is what is in that directory. /usr/lib/aarch64-linux-gnu# ls audit gconv libstdc++.so.6 libstdc++.so.6.0.22 lua RE: Tool to Control Fan - fanctl - O1Hitman1O - 10-22-2018 (10-21-2018, 07:39 PM)tuxd3v Wrote:(10-21-2018, 02:06 PM)O1Hitman1O Wrote: This is the error I am getting when trying to run luarocks build I have tried to remove Lua and install again following the steps but with no success. Where would the files be located? liblua5.3.a liblua5.3.so RE: Tool to Control Fan - fanctl - tuxd3v - 10-22-2018 (10-22-2018, 01:18 AM)O1Hitman1O Wrote: I have tried to remove Lua and install again following the steps but with no success. The libraries, when you install via apt-get are located here: Code: LUA53_LIBDIR = "/usr/lib/aarch64-linux-gnu" To find the place were they are, issue: Code: find /usr -name liblua5.3.so In Ubuntu Lxde or in debian images they were in "/usr/lib/aarch64-linux-gnu". Because luarocks doesn't know where they really are, the 'variables' table, needs to be in: "/etc/luarocks/config.lua" RE: Tool to Control Fan - fanctl - O1Hitman1O - 10-22-2018 Ok success after changing to LUA53_LIBDIR = "/usr/lib/arm-linux-gnueabihf" But the service will now not start. This is the status error ystemd[1]: ats.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: ats.service: Unit entered failed state. systemd[1]: ats.service: Failed with result 'exit-code'. RE: Tool to Control Fan - fanctl - tuxd3v - 10-22-2018 (10-22-2018, 08:32 AM)O1Hitman1O Wrote: Ok success after changing to you are in a 32 bits OS, or you installed linaro tools. It would be nice if you can tell what OS you are using, to include in ats tool. Lua now know, and have verified its ats dependencies(including liblua5.3.so ), But the Makefile doesn't know.. it compiles, but then it cannot install, because of path in Makefile: Code: find /usr/{include,lib} -name lua5.3 -o -name 5.3 && find /lib -name system What is the result of this command? it tells you the paths were are the include headers( 'find /usr/include -name lua.h -o -name lauxlib.h -o -name lualib.h' ),the shared library 'lua5.3.so', and the systemd 'system' directory, by this order.. RE: Tool to Control Fan - fanctl - O1Hitman1O - 10-22-2018 Linux 4.4.154-1122-rockchip-ayufan-g7859b9b904a9 #1 SMP Mon Oct 1 07:32:42 UTC 2018 aarch64 find /usr/{include,lib} -name lua5.3 -o -name 5.3 && find /lib -name system /usr/include/lua5.3 /usr/lib/aarch64-linux-gnu/lua/5.3 /lib/systemd/system RE: Tool to Control Fan - fanctl - tuxd3v - 10-22-2018 (10-22-2018, 03:29 PM)O1Hitman1O Wrote: Linux 4.4.154-1122-rockchip-ayufan-g7859b9b904a9 #1 SMP Mon Oct 1 07:32:42 UTC 2018 aarch64 This are exactly the locations in the variables on '/etc/luarocks/config.lua' variables={ UNISTD_INCDIR = "/usr/include", LUALIB_INCDIR = "/usr/include/lua5.3", LAUXLIB_INCDIR = "/usr/include/lua5.3", LUA_INCDIR = "/usr/include/lua5.3", LUA53_LIBDIR = "/usr/lib/aarch64-linux-gnu" } |