I have a M4V2, and want to build a mini NAS with OpenMediaVault 5 under Armbian (OMV5 can only run under Armbiam/Debian, but not in Ubuntu)
The M4V2 has a SATA hat, and it can support up to 4 hard drives (2.5 inches size), so the SATA hat is powered separately, and I guess this is why this hat always gets overheat.
There is a 12V fan interface (2pin) on this SATA hat, just right biside the power button. And I found that there are already some solution in this forum, all kinds of scripts, can drive the Fan according to the CPU's temperature, or even SSD/HDD's temperature, this are so amazing.
And then when I tried these scripts, I realized this PWM scripts won't solve the issue I am facing. bacause the SATA hat is getting heater and heater, whilr at this time the CPU's temperature remains in 100F, and the fan is not running. I guess if I can let the fan keep running in full speed, this issue would be solved.
So I went to the FriendlyARM's Wiki page, and found they did provide a scrips to change working method of the FAN, here is the code:
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
JKS
I have a M4V2, and want to build a mini NAS with OpenMediaVault 5 under Armbian (OMV5 can only run under Armbiam/Debian, but not in Ubuntu)
The M4V2 has a SATA hat, and it can support up to 4 hard drives (2.5 inches size), so the SATA hat is powered separately, and I guess this is why this hat always gets overheat.
There is a 12V fan interface (2pin) on this SATA hat, just right biside the power button. And I found that there are already some solution in this forum, all kinds of scripts, can drive the Fan according to the CPU's temperature, or even SSD/HDD's temperature, this are so amazing.
And then when I tried these scripts, I realized this PWM scripts won't solve the issue I am facing. bacause the SATA hat is getting heater and heater, whilr at this time the CPU's temperature remains in 100F, and the fan is not running. I guess if I can let the fan keep running in full speed, this issue would be solved.
So I went to the FriendlyARM's Wiki page, and found they did provide a scrips to change working method of the FAN, here is the code:
#!/bin/bash echo 0 > /sys/class/pwm/pwmchip1/export sleep 1 echo 0 > /sys/class/pwm/pwmchip1/pwm0/enable echo 50000 > /sys/class/pwm/pwmchip1/pwm0/period echo 1 > /sys/class/pwm/pwmchip1/pwm0/enable echo 45000 > /sys/class/pwm/pwmchip1/pwm0/duty_cycle
I have tried this script with the image name "Friendly Core" (branch of Ubuntu 18.04) image, it works fine.
When system lights up, the fan will keep running, when system is done, the fan will shut down also.
(before I have try the GPIO with another 5V fan, while in this case, the fan wont shutdown even the system is poweroff )
And now my problem is, this script can only run under Ubuntu, how can I make it available in Armbian also?
Will be really appreciate to hear any response from you.
Thanks,
J.K.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.