Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:add-ons:cooling-fan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:add-ons:cooling-fan [2022/11/16 20:50]
nick
products:sbc:common:add-ons:cooling-fan [2023/11/15 01:20] (current)
sravan
Line 3: Line 3:
 ===== Introduction ===== ===== Introduction =====
  
-This page mainly introduces Cooling Fan. The first half describes how to control the Cooling Fan on Ubuntu, and the second half describes how to control the Cooling Fan on Android.+This page mainly introduces [[https://www.khadas.com/product-page/3705-cooling-fan | Cooling Fan]]. The first half describes how to control the Cooling Fan on Ubuntu, and the second half describes how to control the Cooling Fan on Android.
  
 ===== Ubuntu ===== ===== Ubuntu =====
 +
 +<WRAP important>
 +This setting is only applicable to 4.9, 5.4, and 5.15 linux kernel
 +</WRAP>
  
 ==== Fan Application ==== ==== Fan Application ====
Line 20: Line 24:
 === Set the fan mode === === Set the fan mode ===
  
-```shell +^ fan mode ^ command ^ 
-fan.sh off +| off | ''fan.sh off'' | 
-fan.sh on +| on | ''fan.sh on'' | 
-fan.sh auto +| auto | ''fan.sh auto'' |
-```+
  
-=== Read the fan mode ===+=== Get the fan mode ===
  
 ```shell ```shell
Line 34: Line 37:
 === Set the fan speed === === Set the fan speed ===
  
-```shell +^ fan speed ^ command ^ 
-fan.sh high +| high | ''fan.sh high'' | 
-fan.sh mid +| mid | ''fan.sh mid'' | 
-fan.sh low +| low | ''fan.sh low'' |
-```+
  
-=== Read CPU temperature ===+=== Get CPU temperature ===
  
 ```shell ```shell
Line 46: Line 48:
 ``` ```
  
-=== Get the trigger temperature ===+=== Get and Set the trigger temperature ===
  
 You can get the trigger temperature from the nodes below: You can get the trigger temperature from the nodes below:
  
-  * low /sys/class/fan/trigger_temp_low +^ fan mode ^ trigger temp parameter ^ 
-  mid /sys/class/fan/trigger_temp_mid +low | ''/sys/class/fan/trigger_temp_low'' | 
-  high /sys/class/fan/trigger_temp_high+mid | ''/sys/class/fan/trigger_temp_mid'' | 
 +high | ''/sys/class/fan/trigger_temp_high'' |
  
 e.g. Get the low trigger temperature: e.g. Get the low trigger temperature:
Line 60: Line 63:
 ``` ```
  
-=== Setup the trigger temperature ===+e.g. Set the low trigger temperature to ''40'' Celsius.
  
-You can setup the trigger temperature from the nodes below:+```shell 
 +echo 40 | sudo tee /sys/class/fan/trigger_temp_low  
 +```
  
-  * low - /sys/class/fan/trigger_temp_low +<WRAP tip > 
-  * mid - /sys/class/fan/trigger_temp_mid +The trigger temperature only effect the fan works in auto mode. 
-  * high - /sys/class/fan/trigger_temp_high+</WRAP>
  
-e.g. Setup the low trigger temperature to ''40'' Celsius.+=== Mainline linux ===
  
-```shell +Fan is controlled automatically by linux, and unit will be in millicelcius 
-echo 40 | sudo tee /sys/class/fan/trigger_temp_low + 
 +eg. get the auto trigger temp with 
 ``` ```
 +cat /sys/class/thermal/thermal_zone0/trip_point_3_temp
 +```
 +
 +eg. set the auto trigger temp to 40000 millicelcius
 +```
 +echo 40000 | sudo tee /sys/class/thermal/thermal_zone0/trip_point_3_temp
 +```
 +
 +<WRAP tip >
 +To turn off the fan, set trigger temp to higher amount such as 80000, \\
 +To turn on the fan, set the trigger temp to lower amount such as 10000.
 +</WRAP>
  
 ===== Android ===== ===== Android =====
  
-Just goto the system setting to control the FAN.+Check system settings to control the fan.
  
Last modified: 2022/11/16 20:50 by nick