Rock64pro fan control

    • OMV 4.x
    • Rock64 por fan control

      Hello

      Sorry again to bother you with my question, but I am on the brink of doing a homer simpsons and påulling all my hair out.

      my question is straight forward, how can Í set my fan to start when the temperature is above 40C and stop below 40C ?

      first I tried to do some research myself, I tried the pine64 forum and found a post the linked the a "ATS - Active Thermal Service" program so i tried to install it:

      Hardware:
      Rock64pro
      two HDD (where I can view their temp. in the gui)
      Rock64pro PCI-e to sata card (pine64.org/?product=rockpro64-…al-sata-ii-interface-card)
      Rock64pro fan (pine64.org/?product=fan-for-ro…4-metal-desktopnas-casing)
      (the fan is conneted to the "FAN" port in the Rock64pro, wiki.pine64.org/index.php/ROCKPro64_Main_Page port 4)

      github.com/tuxd3v/ats

      Brainfuck Source Code

      1. $ sudo luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.2-0.rockspec
      2. Warning: variable CFLAGS was not passed in build_variables
      3. gcc -c -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o debug.o src/debug.c
      4. gcc -c -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o ats.o src/ats.c
      5. gcc -shared -Wl,-soname,ats.so.0 -llua5.3 -o ats.so.0.9 debug.o ats.o
      6. Install ATS Tool ..................: ats in /usr/local/sbin
      7. Install ATS Config ................: ats.config in /etc
      8. Install ATS Service File ..........: ats.service in systemd
      9. Remove previous ATS Library .......: ats.so.* from /usr/local/lib/lua/5.3
      10. Install new ATS Library ...........: ats.so.0.9 in /usr/local/lib/lua/5.3
      11. Create soname symLink .............: ats.so in /usr/local/lib/lua/5.3
      12. Failed to enable unit: File ats.service: No such file or directory
      13. Makefile:103: recipe for target 'install' failed
      14. make: *** [install] Error 1
      15. Error: Build error: Failed installing.
      Display All
      so that failed so I tried something else, someone else on the same pine64 forum said installing this was a possibility

      github.com/ayufan-rock64/linux….132-1077-rockchip-ayufan

      and then I tried to do this:


      Source Code

      1. nano /sys/class/hwmon/hwmon0/pwm1
      but I know nothing about writing my own code and I would like a more advance option instead of allways on or off.


      So I read that I needed to find a sensor that could be in the config of the PWM file, so I tried to run the command:


      Source Code

      1. sudo sensors-detect
      but after typing YES to all the question then I got this answer:



      Source Code

      1. Sorry, no sensors were detected.
      2. Either your system has no sensors, or they are not supported, or
      3. they are connected to an I2C or SMBus adapter that is not
      4. supported. If you find out what chips are on your board, check
      5. http://www.lm-sensors.org/wiki/Devices for driver status.
      and I have updated lm-sensors by

      Source Code

      1. sudo apt-get install lm-sensors
      So, I hope someone can help me before I go hairless :) have a nice day.

      From
      Chris

      The post was edited 2 times, last by Chrisjay ().

    • oh, that is nice to hear, I was afriad of breaking some guide lines.

      well seem like I need to do a fresh install of the OS since now the GUI cant seem to find my HDD after a shutdown. Maybe that will help afterwards somehow.

      update:
      nope that did no help. well now both my HDD are visible but I still get an install error when I try to follow in install instructions for the "ATS - Active Thermal Service" program.. I am at a lost :/

      The post was edited 1 time, last by Chrisjay ().

    • Chrisjay wrote:

      oh, that is nice to hear, I was afriad of breaking some guide lines.

      well seem like I need to do a fresh install of the OS since now the GUI cant seem to find my HDD after a shutdown. Maybe that will help afterwards somehow.

      update:
      nope that did no help. well now both my HDD are visible but I still get an install error when I try to follow in install instructions for the "ATS - Active Thermal Service" program.. I am at a lost :/
      if you follow the instructions github.com/tuxd3v/ats#requirements also sometime ago a specific kernel was required but not sure if it is true today. you can always ask in the forum there, the op is helpful.
    • So I finally got it working. I dont know if it is normal to post the solution but maybe someone is having the same problem as novice me :)

      So first I had to update the kernel

      I did it in SSH as "root"

      Source Code

      1. apt-get update
      2. apt-get install linux-image-4.4.138-1097-rockchip-ayufan-gb5128c0a1684 linux-headers-4.4.138-1097-rockchip-ayufan-gb5128c0a1684 linux-firmware-image-4.4.138-1097-rockchip-ayufan-gb5128c0a1684

      Then reboot

      Then you can follow the instruction in the link mention above:
      github.com/tuxd3v/ats

      But I ran these codes again in SSH as "root"

      Source Code

      1. apt-get install lua5.3 lua5.3-dev luarocks gcc make
      2. luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
      Then it should be installed and running. Thanks guys for your help.

      also source
      forum.pine64.org/showthread.php?tid=6953

      The post was edited 1 time, last by Chrisjay ().

    • I am using Ayufan build as well for OPV. When i try to use the above mentioned fan control script, i am getting error that is beyond my understanding
      Any one with knowledge please help me out. I dont want to burn my Rockpro64 in NAS casing, running 2 WD RED 8TB on RAID Mirror , if the fan will not work ... everything is expected to roast sooner or later :(

      The following code line works well

      Source Code

      1. apt-get install lua5.3 lua5.3-dev luarocks gcc make

      But the following build command fails

      Source Code

      1. luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec


      The errors i am getting, i am pasting below ..

      Brainfuck Source Code

      1. root@RockNas:~# sudo luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
      2. Cloning into 'ats'...
      3. remote: Enumerating objects: 24, done.
      4. remote: Counting objects: 100% (24/24), done.
      5. remote: Compressing objects: 100% (22/22), done.
      6. remote: Total 24 (delta 1), reused 9 (delta 0), pack-reused 0
      7. Receiving objects: 100% (24/24), 105.88 KiB | 0 bytes/s, done.
      8. Resolving deltas: 100% (1/1), done.
      9. Warning: variable CFLAGS was not passed in build_variables
      10. ** PLATFORM = linux **
      11. ** OS = 32Bits **
      12. /usr/bin/env: 'lua': No such file or directory
      13. ** ARCH = armv7-a **
      14. /usr/bin/env: 'lua': No such file or directory
      15. gcc -c -march=armv7-a -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o debug.o src/debug.c
      16. gcc -c -march=armv7-a -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o ats.o src/ats.c
      17. gcc -shared -Wl,-soname,ats.so.0 -llua5.3 -o ats.so.0.9 debug.o ats.o
      18. Install Method: LuaRocks ..
      19. SystemD Detected ..
      20. Searching for Previous Install, and Remove it:
      21. removed '/etc/ats.conf'
      22. removed '/lib/systemd/system/ats.service'
      23. removed '/usr/local/sbin/ats'
      24. removed '/usr/local/lib/lua/5.3/ats.so'
      25. Install ATS Service File ..........: ats.service in '/usr/local/lib/luarocks/rocks/ats/master-0'
      26. Install ATS Config ................: ats.config in '/usr/local/lib/luarocks/rocks/ats/master-0'
      27. Install ATS Tool ..................: ats in '/usr/local/lib/luarocks/rocks/ats/master-0'
      28. Install new ATS Library ...........: ats.so.0.9 in '/usr/local/lib/luarocks/rocks/ats/master-0'
      29. Creating soname symLink ........: ats.so in '/usr/local/lib/luarocks/rocks/ats/master-0'
      30. Creating Service symLink .......: ats.service in '/lib/systemd/system'
      31. Creating Binary symLink ........: ats in '/usr/local/sbin/ats'
      32. Creating Config symLink ........: ats.conf in '/etc/ats.conf'
      33. Creating SharedObject symLink ..: ats.so.0.9 in '/usr/local/lib/lua/5.3'
      34. Starting ATS Service..
      35. ● ats.service - ATS - Active Thermal Service
      36. Loaded: loaded (/usr/local/lib/luarocks/rocks/ats/master-0/ats.service; enabled; vendor preset: enabled)
      37. Active: activating (auto-restart) (Result: exit-code) since Sat 2019-06-08 11:01:31 UTC; 37ms ago
      38. Process: 4694 ExecStart=/usr/local/sbin/ats (code=exited, status=127)
      39. Main PID: 4694 (code=exited, status=127)
      40. CPU: 8ms
      41. Jun 08 11:01:31 RockNas systemd[1]: ats.service: Unit entered failed state.
      42. Jun 08 11:01:31 RockNas systemd[1]: ats.service: Failed with result 'exit-code'.
      43. Makefile:224: recipe for target 'install' failed
      44. make: *** [install] Error 3
      45. Error: Build error: Failed installing.
      Display All
    • New

      Hello waqas

      Maybe I am asking stupid question, and I am sorry I am fairly new.

      1: did you remember to reboot after the kernel update?

      2: when you install the ats, are you log in as root in ssh ?
      (I also failed installing that part many times but it was because I needed to log in as root.)

      The root login are

      User: root
      Password: openmediavault

      Source: wiki.pine64.org/index.php/ROCKPro64_Software_Release
      I hope that helps
    • Users Online 1

      1 Guest