This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:add-ons:cooling-fan [2022/07/11 23:53] hyphop [Fan application] |
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 document mainly | + | This page introduces |
| ===== Ubuntu ===== | ===== Ubuntu ===== | ||
| - | ==== Fan application ==== | + | <WRAP important> |
| + | This setting is only applicable to 4.9, 5.15, 5.4, and 6.1 linux kernel | ||
| + | </ | ||
| + | ==== Fan Application ==== | ||
| - | {{/ | + | This method is recommended if you are using a desktop OS. Find '' |
| - | This method is recommended if you are using desktop OS. Find '' | + | |
| + | {{/ | ||
| ==== Command Line ==== | ==== Command Line ==== | ||
| - | You can also use command | + | You can also use commands |
| - | * Set the fan mode: \\ ```shell | + | === Set the fan mode === |
| - | $ fan.sh off | + | |
| - | $ fan.sh on | + | ^ fan mode ^ command ^ |
| - | $ fan.sh auto | + | | off | '' |
| + | | on | '' | ||
| + | | auto | '' | ||
| + | |||
| + | === Get the fan mode === | ||
| + | |||
| + | ```shell | ||
| + | fan.sh mode | ||
| ``` | ``` | ||
| - | * Read the fan mode: \\ ```shell | + | |
| - | $ fan.sh | + | === Set the fan speed === |
| + | |||
| + | ^ fan speed ^ command ^ | ||
| + | | high | '' | ||
| + | | mid | '' | ||
| + | | low | '' | ||
| + | |||
| + | === Get CPU temperature === | ||
| + | |||
| + | ```shell | ||
| + | fan.sh | ||
| ``` | ``` | ||
| - | * Set the fan speed: \\ ```shell | + | |
| - | $ fan.sh high | + | === Get and Set the trigger temperature === |
| - | $ fan.sh mid | + | |
| - | $ fan.sh low | + | You can read the trigger temperature from the following nodes: |
| + | |||
| + | ^ fan mode ^ trigger temp parameter ^ | ||
| + | | low | ''/ | ||
| + | | mid | ''/ | ||
| + | | high | ''/ | ||
| + | |||
| + | Example: Get the low trigger temperature: | ||
| + | |||
| + | ```shell | ||
| + | cat / | ||
| ``` | ``` | ||
| - | * Read the fan speed: \\ ```shell | + | |
| - | $ fan.sh level | + | Example: Set the low trigger temperature to '' |
| + | |||
| + | ```shell | ||
| + | echo 40 | sudo tee /sys/class/fan/ | ||
| ``` | ``` | ||
| - | * Read CPU temperature: \\ ```shell | + | |
| - | $ fan.sh temp | + | <WRAP tip > |
| + | The trigger | ||
| + | </ | ||
| + | |||
| + | === Mainline linux === | ||
| + | |||
| + | The fan is controlled automatically by the Linux thermal subsystem. Temperatures are in millidegrees Celsius. | ||
| + | |||
| + | Example: Get the auto trigger temperature: | ||
| ``` | ``` | ||
| + | cat / | ||
| + | ``` | ||
| + | |||
| + | Example: set the auto trigger temp to 40000 millicelcius | ||
| + | ``` | ||
| + | echo 40000 | sudo tee / | ||
| + | ``` | ||
| + | |||
| + | <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). | ||
| + | </ | ||
| + | |||
| ===== Android ===== | ===== Android ===== | ||
| + | Check system settings to control the fan. | ||