Tool to Control Fan - fanctl
(11-21-2018, 05:18 PM)tuxd3v Wrote:
(11-21-2018, 01:32 PM)stFfn Wrote: p.s. i think i found it my selfe after i wrote this post Big Grin

is this correct to change this setting: MAX_FAN_PWM?
I changed it to 150 and the fan is mutch quieter.

or am i wrong and did something fatal? Big Grin

That is one way of limiting without changing too much [Image: shy.png]

The PWM curve by Interpolated method is:

ahm.. ok Big Grin
so what would you change?

please give me the numbers.. im not as good with these calculations Big Grin
  Reply
(11-21-2018, 05:28 PM)stFfn Wrote: ahm.. ok Big Grin
so what would you change?

please give me the numbers.. im not as good with these calculations Big Grin

heheh, 
You changed the 'MAX_FAN_PWM' to 150, so it will max out at 150, its the beginning.. [Image: shy.png]

For the fan to run continuously, without stop,
Maybe the best would be to just comment the stop code( with "--" before it like you see below ), at almost the end of file:
Code:
-- Sleeping with Fan OFF, until next cicle
-- sleep( PROFILE:getQtimer( TEMP ) )

(...OTHER CODE ...)

-- Stop Fan
-- setFanpwm( 0 )

The fan will not stop in this way.. and you can lower the 'MAX_FAN_PWM' even more..it you want..

But in my opinion you should not touch 'MIN_FAN_PWM', because its the minimum..bellow that, the fan can stop depending of fan type..

It varies a lot..
For example:
in a fan 10mm, this value would be around 30-35 has minimum..
in a 20 mm fan, it would be at least between 35-40
I don't know the value for the NAS Fan case..., but 40 seems nice to me has minimum...

Because of that I used 40 for all, which is not so above 30, and more fans could be running with it..

Right now you are with a Function like this:  Shy
   

So with a max temp of 60C, you will get 150 PWM.
  Reply
(11-21-2018, 10:39 AM)tuxd3v Wrote:
(11-20-2018, 09:19 PM)Drago Wrote: The fan is kind of loud actually, any advice on damping the sound?

For Now, its only possible editing : '/usr/local/sbin/ats'
In future releases, will be there a config file '/etc/ats.conf'

Changing the profile will lower the fan speed..
You can change line 68, of file  '/usr/local/sbin/ats'

change:
FANSPEC                         = "profile1"

for "profile2"
or even "profile3"

it will have a less aggressive power output..
What are the characteristics of your fan?

Thanks, switching to "profile3" made a significant improvement. As far as my fan, I'm using the 80mm fan from the pine64 website. I believe its rated 12V, 0.1 A.
  Reply
Well the master branch, its now v0.1.8.

In this process, I forgot to update, the string version that will show as v0.1.7, when you do:
Code:
ats -v


Blush
I am sorry for that..

Hope you enjoy it..
  Reply
Hello,
The next release will have lua as frontend, and the functionality is in the C backend.

Is is not yet optimised, but I noticed some speed gains, from ~17us per CPU second Time( or 0.0017% CPU ), to now ~12.28us per CPU second Time( or 0.001228% CPU ).

Also there are a '/etc/ats.conf' config file were you can adjust things easier,for your fan,
Without scroll lots of code, and understand it..

Its in master branch now, and its in tests,
But it seems to be stable...

It would be nice to have some feed back from you, so that any bug cold be sorted out. [Image: shy.png]

Regards,
  Reply
I promised a Tutorial about ATS,
The Tutorial is about the version in master branch that will become in time 0.2.0.

It's here

Regards,
  Reply
Hey i had to Reinstall the whole system and now im getting this message when i try to install the tool.

Error: Could not satisfy dependency lua >= 5.3: No results matching query were found.

plz help Undecided
  Reply
(12-21-2018, 06:16 PM)stFfn Wrote: Hey i had to Reinstall the whole system and now im getting this message when i try to install the tool.

Error: Could not satisfy dependency lua >= 5.3: No results matching query were found.

plz help Undecided

Hello,
Does you installed the dependencies and create the symbolic link?
What OS are you using?

Regards
  Reply
(12-22-2018, 06:36 AM)tuxd3v Wrote:
(12-21-2018, 06:16 PM)stFfn Wrote: Hey i had to Reinstall the whole system and now im getting this message when i try to install the tool.

Error: Could not satisfy dependency lua >= 5.3: No results matching query were found.

plz help Undecided

Hello,
Does you installed the dependencies and create the symbolic link?
What OS are you using?

Regards



I Use stretch-openmediavault-rockpro64-0.7.9-1067-armhf

last time i used the arm64 version and not the HF version and i didnt have this issue... Undecided
  Reply
(12-22-2018, 01:58 PM)stFfn Wrote: I Use stretch-openmediavault-rockpro64-0.7.9-1067-armhf

last time i used the arm64 version and not the HF version and i didnt have this issue... Undecided

It seems that you are in a 32 bits OS...maybe that is the problem..
Because ATS is compiled for armv8 64bits.

What I don't understand is the complai about Lua Version, it should give another error, with a 32 bits lua VM..

What is the output of this command:
Code:
apt-cache policy lua5.3 lua5.3-dev

You are installing from Master Right?
Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
  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: 4 Guest(s)