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/11/16 20:45] 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 |
===== Ubuntu ===== | ===== Ubuntu ===== | ||
+ | |||
+ | <WRAP important> | ||
+ | This setting is only applicable to 4.9, 5.4, and 5.15 linux kernel | ||
+ | </ | ||
==== 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 on | + | | on | '' |
- | fan.sh auto | + | | 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 mid | + | | mid | '' |
- | fan.sh low | + | | 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 get the trigger temperature from the nodes below: |
+ | |||
+ | ^ fan mode ^ trigger temp parameter ^ | ||
+ | | low | ''/ | ||
+ | | mid | ''/ | ||
+ | | high | ''/ | ||
+ | |||
+ | e.g. Get the low trigger temperature: | ||
```shell | ```shell | ||
Line 54: | Line 63: | ||
``` | ``` | ||
- | Get the mid trigger temperature: | + | e.g. Set the low trigger temperature |
```shell | ```shell | ||
- | cat / | + | echo 40 | sudo tee / |
``` | ``` | ||
- | Get the high trigger temperature: | + | <WRAP tip > |
+ | The trigger temperature | ||
+ | </ | ||
- | ```shell | + | === Mainline linux === |
- | cat / | + | |
- | ``` | + | |
- | === Setup the trigger temperature === | + | Fan is controlled automatically by linux, and unit will be in millicelcius |
- | Setup the low trigger | + | eg. get the auto trigger |
+ | ``` | ||
+ | cat / | ||
+ | ``` | ||
- | e.g. Setup the low trigger | + | eg. set the auto trigger |
- | + | ``` | |
- | ```shell | + | echo 40000 | sudo tee /sys/class/thermal/ |
- | echo 40 | sudo tee /sys/class/fan/trigger_temp_low | + | |
``` | ``` | ||
+ | <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. | ||
+ | </ | ||
===== Android ===== | ===== Android ===== | ||
- | Just goto the system | + | Check system |