Difference between revisions of "Template:RK3399 Linux PWMFan"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
Line 7: Line 7:
 
if you want to change the speed regulation behavior of the fan, please modify the following file:<br />
 
if you want to change the speed regulation behavior of the fan, please modify the following file:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
/usr/bin/start-rk3399-pwm-fan.sh
+
/usr/bin/fa-fancontrol.sh # Entry, called by the pwm-fan.service service to control the fan in two ways, either by the kernel or by the user space by control the PWM.
 +
/usr/bin/fa-fancontrol-direct.sh # Script to control the fan from user space by control the PWM to control the fan speed, etc. This script is called from the above script.
 
</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 the other PWM device), please enter the following command:<br />

Latest revision as of 07:50, 11 May 2024

Fan speed setting

The fan uses PWM to automatically adjust the speed. 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 environmental noise). ),
If you want the fan to start working immediately, you can use the following command to get the CPU running at high load immediately. This is one way to test if the fan works:

cpuburn

if you want to change the speed regulation behavior of the fan, please modify the following file:

/usr/bin/fa-fancontrol.sh # Entry, called by the pwm-fan.service service to control the fan in two ways, either by the kernel or by the user space by control the PWM.
/usr/bin/fa-fancontrol-direct.sh # Script to control the fan from user space by control the PWM to control the fan speed, etc. This script is called from the above script.

Need to cancel the boot automatically start the fan (such as you need to connect the other PWM device), please enter the following command:

systemctl stop pwm-fan
systemctl disable pwm-fan

Or delete the two files below:

/etc/systemd/system/pwm-fan.service
/etc/systemd/system/multi-user.target.wants/pwm-fan.service