Tool to Control Fan - fanctl
(12-25-2018, 09:29 PM)tuxd3v Wrote:
(12-25-2018, 05:59 PM)stFfn Wrote: this
Code:
root@rockpro64nas:~# ls -l /usr/bin/lua && find /usr -name liblua\*
lrwxrwxrwx 1 root root 15 Dec 25 21:24 /usr/bin/lua -> /usr/bin/lua5.3
/usr/share/doc/liblua5.3-dev
/usr/share/doc/liblua5.1-0
/usr/share/doc/liblua5.3-0
/usr/share/doc/liblua5.1-0-dev
/usr/lib/arm-linux-gnueabihf/liblua5.1.a
/usr/lib/arm-linux-gnueabihf/liblua5.1.so.0
/usr/lib/arm-linux-gnueabihf/liblua5.1.so.0.0.0
/usr/lib/arm-linux-gnueabihf/liblua5.3-c++.so
/usr/lib/arm-linux-gnueabihf/liblua5.3.so.0.0.0
/usr/lib/arm-linux-gnueabihf/liblua5.1.so
/usr/lib/arm-linux-gnueabihf/liblua5.3-c++.a
/usr/lib/arm-linux-gnueabihf/liblua5.1-c++.so
/usr/lib/arm-linux-gnueabihf/liblua5.1-c++.so.0.0.0
/usr/lib/arm-linux-gnueabihf/liblua5.3-c++.so.0.0.0
/usr/lib/arm-linux-gnueabihf/liblua5.3.a
/usr/lib/arm-linux-gnueabihf/liblua5.3.so.0
/usr/lib/arm-linux-gnueabihf/liblua5.1-c++.so.0
/usr/lib/arm-linux-gnueabihf/liblua5.3-c++.so.0
/usr/lib/arm-linux-gnueabihf/liblua5.1-c++.a
/usr/lib/arm-linux-gnueabihf/liblua5.3.so

Remove lua 5.1 interpreter  is the easiest way..
Other way would be using alternatives..

but this should solve the problem:

Code:
apt-get remove lua5.1 lua5.1-dev

I reinstalled the system and installed only lua 5.3 and dev.

Code:
root@rockpro64:~# apt-cache policy lua5.3 lua5.3-dev
lua5.3:
 Installed: 5.3.3-1
 Candidate: 5.3.3-1
 Version table:
*** 5.3.3-1 500
       500 http://cdn.debian.net/debian stretch/main arm64 Packages
       100 /var/lib/dpkg/status
liblua5.3-dev:
 Installed: 5.3.3-1
 Candidate: 5.3.3-1
 Version table:
*** 5.3.3-1 500
       500 http://cdn.debian.net/debian stretch/main arm64 Packages
       100 /var/lib/dpkg/status

but i cant install your master now...
Code:
root@rockpro64:~# luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
-bash: luarocks: command not found
what can i do?
  Reply
(12-26-2018, 03:33 AM)stFfn Wrote:
Code:
root@rockpro64:~# luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
-bash: luarocks: command not found
what can i do?

Does you installed LuaRocks?
If yes, it is not finding it..

Check were luarocks is installed:
Code:
which luarocks

If its not Installed, you need to install it.
  Reply
(12-26-2018, 05:46 AM)tuxd3v Wrote:
(12-26-2018, 03:33 AM)stFfn Wrote:
Code:
root@rockpro64:~# luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
-bash: luarocks: command not found
what can i do?

Does you installed LuaRocks?
If yes, it is not finding it..

Check were luarocks is installed:
Code:
which luarocks

If its not Installed, you need to install it.

no i did not instrall it. i thought lua5.3 is the correct thing i need?

what exactly do i need to install and how can i install it?
  Reply
Hello Tuxdev are you still there? Smile
  Reply
(12-26-2018, 05:56 AM)stFfn Wrote: no i did not instrall it. i thought lua5.3 is the correct thing i need?

what exactly do i need to install and how can i install it?

Hello, you need to follow all the steps in GitHub page project.
It could be that you maybe need to add something to the dynamic link,and rebuild the cache.

with ldconfig

Its difficult to debug without proper access to the system  Sad
  Reply
(01-03-2019, 06:26 AM)tuxd3v Wrote:
(12-26-2018, 05:56 AM)stFfn Wrote: no i did not instrall it. i thought lua5.3 is the correct thing i need?

what exactly do i need to install and how can i install it?

Hello, you need to follow all the steps in GitHub page project.
It could be that you maybe need to add something to the dynamic link,and rebuild the cache.

with ldconfig

Its difficult to debug without proper access to the system  Sad
is there any way i could communitcate with you live? like on facebook or something?
  Reply
Ok i Figured out my Misstake.... now i can install your Master. But now i have a new Problem. Your Master is now Newer and i cant find anything to edit in it. its Version 0.2.0.

i Cant find the 3 Profiles where i can choose how big the fan is and i cant find the value to edit on how fast the fan should spin.... Undecided
  Reply
(01-05-2019, 01:05 PM)stFfn Wrote: Ok i Figured out my Misstake.... now i can install your Master. But now i have a new Problem. Your Master is now Newer and i cant find anything to edit in it. its Version 0.2.0.

i Cant find the 3 Profiles where i can choose how big the fan is and i cant find the value to edit on how fast the fan should spin.... Undecided

Hello stFfn,
Sorry for not replying to you soon, I have been in work in another Country..

Yes, the version that is in Master, is yet the Latest stable version..
It was released to stable some days ago, v0.2.0.

The profiles was dropped, because is was dificult to achieve good profiles with a lot of people having different setups..  Undecided
I made a Tutorial about this new version.

Basicaly it have a file in /etc/ats.conf
On this file, you can edit Max pwm( power for Fan )
if you want fan always on or On/oFF, and so on  Shy

For some time the version that is in Master branch, could be broken now, because I am/will when I have some free time, Continue the work, to add support for control also via GPIO, internal board i2c, GPIO i2c, 1wire etc.  Shy

So that you could use what you want, for example, use Fan Header conecOr for CPU  Fan, and GPIO for NASCasa for example, or another configuration.
To do that, I need to redesign the Application backend, with a common Interface, for several functions, but I want iT To be standard, so that could be easli extended..

Long story short: For Some time, better to install the Stable release, the last one v0.2.0( Method 2. )
Some days ago, I updated the Tutorial for that.

You can edit /etc/ats.conf, with nano, or vi
Regards
  Reply
Just wanted to thank you once again for this great utility. Works nicely on mainline (5.0-RC X), but the fan seems to rev up every 2-3 min despite tempt being lower than my minimum values for CPU/GPU set in ats.conf. Ideas as to why this may happen ?
You can find me on IRC, Discord and Twitter


  Reply
(04-05-2019, 09:24 AM)Luke Wrote: Just wanted to thank you once again for this great utility. Works nicely on mainline (5.0-RC X), but the fan seems to rev up every 2-3 min despite tempt being lower than my minimum values for CPU/GPU set in ats.conf. Ideas as to why this may happen ?

Hello Luke,
You Welcome,  Wink
I am using it since maybe August of last year, on its several iterations..
Now the worst performance should be around ~0.0011% cpu time..
I think I can lower it a bit more( maybe ~0.0009% ), but now starts to be very difficult to do so..

This values can be better measured, for example, in a up-time of 1 month or so( because when ATS starts, it consumes more CPU... it needs to calculate the triggers to use during its work, but after that, it is almost all the time sleeping in a C loop code section..sleeping ).

I plan to add more options to it, like options to drive a pwm via GPIO, or even if disks connected are getting temps too high..
I am planning to develop a kernel driver for the PWM part, via GPIO, with dma and so on..
I am planning for the H6 first, because its cheaper( If I burn something testing, I burn something less expensive ).  Shy

I haven't understood you completely..
You say that the Fan starts spinning at intervals around 2-3 minutes, even when temps are outside activation window?
It could be that, temps reach the minimum, for very brief intervals of time, and ats starts?

By default the Fan activates in this window[40-60]( Above 60C is always in maximum speed, bellow 40C it stops.. ):
Code:
    MAX_CONTINUOUS_THERMAL_TEMP    = 60,
    MIN_CONTINUOUS_THERMAL_TEMP    = 40,

1)You can grow up the minimum level to lets say ie: 50C, so that fan only starts spinning at ie: 50C ..
In that case it will be in '/etc/ats.conf':
Code:
MAX_CONTINUOUS_THERMAL_TEMP = 60,
MIN_CONTINUOUS_THERMAL_TEMP = 50,

And restart the service after.
Code:
systemctl restart ats

I don't know if the problem is with the minimum threshold( to activate fan), or if you want the fan always on?

2)For Always on in '/etc/ats.conf':
Code:
ALWAYS_ON = true,


And restart the Service:
Code:
systemctl restart ats

In this case Fan is always on, but the Algorithm for pwn is the same, so fan adjusts itself to temps, if temps higher, it rise power, if temps lower it lower the power applied to the fan.. 

3) For checking triggers:
With service running, start ats in test mode "by hand", typing:
Code:
ats -t

It will show you the range/temps/power applied for that situations, were fan will be active..

4) For seeing in real time the actions taken by ATS:
stop service ats first.
Code:
service ats stop

And then, start it "by hand"...in test mode:
Code:
ats -t

It will print information about the state were it his..
Temps acquired, and power delivered to the Fan, on each cycle..

There are other type of turnings that can be made for example to adjust the triggers themselves, internally( in the C backend ), for different cooler/fans..
But for that I would need to have that cooler/fan, to adjust for it.. Sad
  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: 11 Guest(s)