Tutorial:How to Configure ATS Fan control
#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!


Messages In This Thread
RE: Tutorial:How to Configure ATS Fan control - by Neo2018 - 12-25-2018, 01:19 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)