Difference between revisions of "Template:RK3399 Android PWMFan"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
 
(updated by API)
 
Line 1: Line 1:
 
===Fan speed setting===
 
===Fan speed setting===
The fan uses PWM to achieve automatic speed regulation. If you want to change the speed regulation behavior of the fan, please modify the following file:<br />
+
The fan uses PWM to achieve automatic speed regulation. It determines the fan switch and the fan speed according to the current CPU temperature. If the current CPU temperature is not high, the fan will be turned off or rotated at a lower speed (reducing unnecessary environment). Noise), if you want to change the fan's speed behavior, please modify the following files in the Android bsp source code:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
/usr/bin/start-rk3399-pwm-fan.sh
+
device/rockchip/rk3399/nanopc-t4/pwm_fan.sh
 
</syntaxhighlight>
 
</syntaxhighlight>
Need to cancel the boot automatically start the fan (such as you need to connect the other PWM device), please enter the following command:<br />
+
Need to cancel the boot automatically start the fan (such as you need to connect other PWM devices), please modify the following files in the Android bsp source code:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
systemctl stop pwm-fan
+
device/rockchip/rk3399/init.rk3399.rc
systemctl disable pwm-fan
+
</syntaxhighlight>
+
Or delete the two files below:<br />
+
<syntaxhighlight lang="bash">
+
/etc/systemd/system/pwm-fan.service
+
/etc/systemd/system/multi-user.target.wants/pwm-fan.service
+
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
After modifying the source code, you need to recompile Android.

Latest revision as of 09:53, 15 May 2019

Fan speed setting

The fan uses PWM to achieve automatic speed regulation. It determines the fan switch and the fan speed according to the current CPU temperature. If the current CPU temperature is not high, the fan will be turned off or rotated at a lower speed (reducing unnecessary environment). Noise), if you want to change the fan's speed behavior, please modify the following files in the Android bsp source code:

device/rockchip/rk3399/nanopc-t4/pwm_fan.sh

Need to cancel the boot automatically start the fan (such as you need to connect other PWM devices), please modify the following files in the Android bsp source code:

device/rockchip/rk3399/init.rk3399.rc

After modifying the source code, you need to recompile Android.