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:45]
nick
products:sbc:common:add-ons:cooling-fan [2026/02/02 01:44] (current)
gray update by using AI
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 introduces the [[https://www.khadas.com/product-page/3705-cooling-fan | Cooling Fan]]. The first section describes how to control the fan on Ubuntu, and the second section describes how to control it on Android.
  
 ===== Ubuntu ===== ===== Ubuntu =====
 +
 +<WRAP important>
 +This setting is only applicable to 4.9, 5.15, 5.4, and 6.1 linux kernel
 +</WRAP>
  
 ==== Fan Application ==== ==== Fan Application ====
  
-The following method is recommended if you are using desktop OS. Find ''Fan Setting'' from the applications list. Open the app to control the cooling fan speed.+This method is recommended if you are using desktop OS. Find ''Fan Setting'' in the applications list. Open the app to control the cooling fan speed.
  
 {{/products/sbc/common/accessories/gnome_application_fan.png|gnome_application_fan}} {{/products/sbc/common/accessories/gnome_application_fan.png|gnome_application_fan}}
Line 16: Line 20:
 ==== Command Line ==== ==== Command Line ====
  
-You can also use command to control the FAN from terminal.+You can also use commands to control the fan from the terminal.
  
 === 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 ===
  
-Get the low trigger temperature:+You can read the trigger temperature from the following nodes: 
 + 
 +^ fan mode ^ trigger temp parameter ^ 
 +| low | ''/sys/class/fan/trigger_temp_low''
 +| mid | ''/sys/class/fan/trigger_temp_mid''
 +| high | ''/sys/class/fan/trigger_temp_high''
 + 
 +Example: Get the low trigger temperature:
  
 ```shell ```shell
Line 54: Line 63:
 ``` ```
  
-Get the mid trigger temperature:+Example: Set the low trigger temperature to ''40'' Celsius.
  
 ```shell ```shell
-cat /sys/class/fan/trigger_temp_mid+echo 40 | sudo tee /sys/class/fan/trigger_temp_low 
 ``` ```
  
-Get the high trigger temperature:+<WRAP tip > 
 +The trigger temperature only affects the fan when it is in auto mode.  
 +</WRAP>
  
-```shell +=== Mainline linux ===
-cat /sys/class/fan/trigger_temp_high  +
-```+
  
-=== Setup the trigger temperature ===+The fan is controlled automatically by the Linux thermal subsystem. Temperatures are in millidegrees Celsius.
  
-Setup the low trigger temperature.+Example: Get the auto trigger temperature
 +``` 
 +cat /sys/class/thermal/thermal_zone0/trip_point_3_temp 
 +```
  
-e.g. Setup the low trigger temperature to ''40'' Celsius. +Example: set the auto trigger temp to 40000 millicelcius 
- +``` 
-```shell +echo 40000 | sudo tee /sys/class/thermal/thermal_zone0/trip_point_3_temp
-echo 40 | sudo tee /sys/class/fan/trigger_temp_low +
 ``` ```
  
 +<WRAP tip >
 +To turn the fan off, set the trigger temperature to a higher value (e.g., 80000). \\
 +To turn the fan on, set the trigger temperature to a lower value (e.g., 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:45 by nick