Tutorial:How to Configure ATS Fan control
#11
(12-25-2018, 07:01 AM)Neo2018 Wrote: I can not integrate that into the welcome message.
I do not get far with Google Search.
I'm not a noob but that's new to me.
Can you please tell me what I can use in my case? You had to do with it too?
Thank you very much!
Merry Charismas !

Hello Neo2018,
First of All you Welcome,

You can find via SysFs the Temperature on this locations:
Code:
root@rockpro64:/# find /sys/class/thermal/thermal_zone{0,1}/ -name temp -exec ls {} \; -exec cat {} \;
/sys/class/thermal/thermal_zone0/temp
53888
/sys/class/thermal/thermal_zone1/temp
45000

Zone0 -> CPU
Zone1 -> GPU

Merry Christmas for you too, all good!!  Shy
Regards
#12
(12-25-2018, 07:39 AM)tuxd3v Wrote: You can find via SysFs the Temperature on this locations:
Code:
root@rockpro64:/# find /sys/class/thermal/thermal_zone{0,1}/ -name temp -exec ls {} \; -exec cat {} \;
/sys/class/thermal/thermal_zone0/temp
53888
/sys/class/thermal/thermal_zone1/temp
45000
I did not expect such a quick response, thank you.
I forgot to mention that, of course, I also found this command (in /etc/ats.conf) and used. I was not sure if he was right.
Code:
#!/bin/bash
TEMP1=`awk '{print substr($1,1,2)}'  /sys/class/thermal/thermal_zone1/temp`
TEMP=`awk '{print substr($1,1,2)}'  /sys/class/thermal/thermal_zone0/temp`
echo "
\033[0;35m+    \033[0;37mTemperatur \033[0;35m= \033[1;32mCPU $TEMP  C GPU $TEMP1  C
"tput sgr0

output>
root@RockHomeServer:~# sh te.sh
+    Temperatur = CPU 39°C GPU 38°C

Test>
root@RockHomeServer:~# armbianmonitor -m
Stop monitoring using [ctrl]-[c]
Stop monitoring using [ctrl]-[c]
Time       big.LITTLE   load %cpu %sys %usr %nice %io %irq   CPU  C.St.

20:21:06:  408/ 408MHz  0.06   1%   0%   0%   0%   0%   0% 39.4°C  0/3
20:21:11:  408/ 408MHz  0.06   0%   0%   0%   0%   0%   0% 39.4°C  0/3^C
That's right? Or can do better? Can you do it with decimal? So> 39.4°C

Perfect thank you
Ps: Waiting for the delivery from Aliexpress "KSD9700 40-NO" is coming soon!
#13
(12-25-2018, 01:19 PM)Neo2018 Wrote:
(12-25-2018, 07:39 AM)tuxd3v Wrote: You can find via SysFs the Temperature on this locations:
Code:
root@rockpro64:/# find /sys/class/thermal/thermal_zone{0,1}/ -name temp -exec ls {} \; -exec cat {} \;
/sys/class/thermal/thermal_zone0/temp
53888
/sys/class/thermal/thermal_zone1/temp
45000
I did not expect such a quick response, thank you.
I forgot to mention that, of course, I also found this command (in /etc/ats.conf) and used. I was not sure if he was right.
Code:
#!/bin/bash
TEMP1=`awk '{print substr($1,1,2)}'  /sys/class/thermal/thermal_zone1/temp`
TEMP=`awk '{print substr($1,1,2)}'  /sys/class/thermal/thermal_zone0/temp`
echo "
\033[0;35m+    \033[0;37mTemperatur \033[0;35m= \033[1;32mCPU $TEMP  C GPU $TEMP1  C
"tput sgr0

output>
root@RockHomeServer:~# sh te.sh
+    Temperatur = CPU 39°C GPU 38°C
That's right? Or can do better? Can you do it with decimal? So> 39.4°C

Perfect thank you
Ps: Waiting for the delivery from Aliexpress "KSD9700 40-NO" is coming soon!

Its ok, you can also use decimal values with awk..

Code:
TEMP=`awk '{ print substr( $1, 1, 3 ) / 10 }' /sys/class/thermal/thermal_zone0/temp`
TEMP1=`awk '{ print substr( $1, 1, 3 ) / 10 }' /sys/class/thermal/thermal_zone1/temp`

You welcome.
Regards
#14
(12-25-2018, 02:01 PM)tuxd3v Wrote: Its ok, you can also use decimal values with awk..
Code:
TEMP=`awk '{ print substr( $1, 1, 3 ) / 10 }' /sys/class/thermal/thermal_zone0/temp`
TEMP1=`awk '{ print substr( $1, 1, 3 ) / 10 }' /sys/class/thermal/thermal_zone1/temp`
Perfect! First of all I'm happy, thank you!
#15
Ok so this is my next try to install this fan Control programm Big Grin

But it does not work Undecided what is the Problem?

root@rockpro64:~# luarocks build https://raw.githubusercontent.com/tuxd3v...0.rockspec
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.21 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 = aarch64 **
** TUNE = cortex-a72.cortex-a53**
ATS Module Folder: /usr/local/lib/lua/5.3,created..
Make is Working ..
SystemD Detected ..
gcc -c -march=aarch64 -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o debug.o src/debug.c
gcc: error: unrecognized argument in option '-march=aarch64'
gcc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8.1-a armv8.1-a+crc iwmmxt iwmmxt2 native
Makefile:184: recipe for target 'debug.o' failed
make: *** [debug.o] Error 1

Error: Build error: Failed building.
#16
Ok.. so the Master was the Issue.... this Version did not work to Install. I Installed the 0.2.0 and it worked fine Undecided
#17
Sad 
(01-28-2019, 03:24 PM)stFfn Wrote: ( ... )
** PLATFORM = linux**
** OS       = 32Bits**
** ARCH     = aarch64 **
( ... )
Error: Build error: Failed building.

Hello stFfn,
The error you got, it very important for debugging,  Shy
I am in the process of expanding arch/os configs, and trying to catch several options..
In this process could be that the master was broken,
When you installed ats, because of that I suggested using the 0.2.0 release version...

Right now,
it could be very usefull if you try again the master version,( I think its solved now.. )

You seems to be running a hf OS version, which means a 32 bits OS version,

For that situation it should compile for 'armv7-a'
It should  pick 'armv7-a' ..

Can you test again, and report?
after you can install the release version you have now  Shy

Its for Confirmation..
Thanks in Advance for the request and reporting that.

Regards
#18
Star 
[ENGLISH/GERMANY]
After a long wait and lack of time, I managed to install the second 80mm fan.
Here are a few pictures of construction together.

Nach langen warten und Zeitmangel habe ich es geschafft den zweiten 80mm Lüfter einzubauen.
Hier ein Paar Bilder von zusammen Bau.

[Image: 2R1TY.jpg] [Image: 2R1TZ.jpg] [Image: 2R1U1.jpg]

I decided to place the sensor directly on the HDD because it gives off the most heat. When using the HDD, we reached a temperature of about 40°C quickly. Standard temperature is around 35°C, so it was important for me to keep the temperature below 40°C when using the HDD.

Ich habe entschieden den Sensor direkt auf die HDD zu platzieren, weil sie am meisten Wärme abgibt. Bei Einsatz der HDD wir eine Temperatur von ca. 40°C  schnell erreicht. Standard Temperatur ist bei ca. 35°C deshalb war mir wicht, bei Einsatz der HDD die Temperatur unter 40°C zu halten.

Code:
root@RockHomeServer:~# sh a.sh
/dev/sdb1: ST4000VN008-2DR166: 30 C
/dev/sda1: WDC WD5000LUCT-63RC2Y0: 30 C

+    Temperatur = CPU 33.8  C  GPU 33.3  C


Zum Sensor Test To the sensor test - KSD9700 / 250V 5A 40°C / ON 40°C  OFF 29°C
#19
(02-05-2019, 02:01 PM)Neo2018 Wrote: [ENGLISH/GERMANY]
After a long wait and lack of time, I managed to install the second 80mm fan.
Here are a few pictures of construction together.

Nach langen warten und Zeitmangel habe ich es geschafft den zweiten 80mm Lüfter einzubauen.
Hier ein Paar Bilder von zusammen Bau.


I decided to place the sensor directly on the HDD because it gives off the most heat. When using the HDD, we reached a temperature of about 40°C quickly. Standard temperature is around 35°C, so it was important for me to keep the temperature below 40°C when using the HDD.

Ich habe entschieden den Sensor direkt auf die HDD zu platzieren, weil sie am meisten Wärme abgibt. Bei Einsatz der HDD wir eine Temperatur von ca. 40°C  schnell erreicht. Standard Temperatur ist bei ca. 35°C deshalb war mir wicht, bei Einsatz der HDD die Temperatur unter 40°C zu halten.

Zum Sensor Test To the sensor test - KSD9700 / 250V 5A 40°C / ON 40°C  OFF 29°C
Woow, very nice setup!!  Shy
I noticed that you are using Seagate IronWolf disks..
Those cat handle a max temp of 70C, WesternDigital max out at 60C..
I also have IronWolfs in my setup.. 
I made a tutorial that you will need for Seagate disks:
https://forum.pine64.org/showthread.php?tid=7137
After you have the tools installed, in that tutorial:
1) Enable Power UIn Standby( to use less current at startup..)
# Its a persistent feature
# No Power Cycle required
 )
Code:
openSeaChest_Configure --device /dev/sdX --puisFeature enable
2) Enable Low Current SpinUp
# Its a persistent Feature
# Requires a Power Cycle( REBOOT )


Code:
openSeaChest_Configure --device /dev/sdX --lowCurrentSpinup enable



Thanks for sharing
#20
(02-06-2019, 07:27 AM)tuxd3v Wrote: I noticed that you are using Seagate IronWolf disks..
Those cat handle a max temp of 70C, WesternDigital max out at 60C..
I also have IronWolfs in my setup.. 
I made a tutorial that you will need for Seagate disks:
https://forum.pine64.org/showthread.php?tid=7137
Thanks for the tip, good job again!
But I'm a bit scared to install an external tool now. Data loss.
I use OMV with S.M.A.R.T. for the HDD.
[Image: 2R3Yf.jpg]
Are you of the opinion that the tool is a good extension and with S.M.A.R.T. compatible?


Possibly Related Threads…
Thread Author Replies Views Last Post
  SkiffOS server with Docker ,NAS, Home assistant, Jellyfin, Snikket XMPP (tutorial) GreyLinux 12 12,428 04-04-2022, 05:26 AM
Last Post: GreyLinux
  SimpNas server with docker - home assistant, radicale , jellyfin & esphome (tutorial) GreyLinux 0 4,885 01-17-2021, 11:33 AM
Last Post: GreyLinux
  Serial Connection Tutorial: FTDI 232RL hmuller 0 3,757 10-23-2020, 11:56 AM
Last Post: hmuller
Wink Tutorial[ Seagate Disks ]: Optimize Life Span/Power Managment tuxd3v 14 26,812 06-19-2019, 04:40 AM
Last Post: Neo2018
Thumbs Up Tutorial[ Seagate Disks ]: Install Seagate OpenSeaChest Utilities tuxd3v 41 84,905 04-08-2019, 10:10 AM
Last Post: Neo2018
  Tutorial[ Multimedia ] : Play DVD movies tuxd3v 0 2,986 02-26-2019, 07:21 PM
Last Post: tuxd3v
  Tutorial[ OpenCL ]: OpenCL 1.2 FULL_PROFILE Working tuxd3v 0 4,247 11-06-2018, 01:03 PM
Last Post: tuxd3v

Forum Jump:


Users browsing this thread: 1 Guest(s)