This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
products:sbc:common:add-ons:cooling-fan [2023/03/21 02:36] nick |
products:sbc:common:add-ons:cooling-fan [2023/11/15 01:20] (current) sravan |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== 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 | '' |
| - | ``` | + | |
| === Get the fan mode === | === Get the fan mode === | ||
| 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 | '' |
| - | ``` | + | |
| === Get CPU temperature === | === Get CPU temperature === | ||
| 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 - / | + | ^ fan mode ^ trigger temp parameter ^ |
| - | | + | | low | '' |
| - | | + | | mid | '' |
| + | | high | '' | ||
| e.g. Get the low trigger temperature: | e.g. Get the low trigger temperature: | ||
| Line 59: | Line 62: | ||
| cat / | cat / | ||
| ``` | ``` | ||
| - | |||
| - | === Set the trigger temperature === | ||
| - | |||
| - | You can setup the trigger temperature from the nodes below: | ||
| - | |||
| - | * low - / | ||
| - | * mid - / | ||
| - | * high - / | ||
| e.g. Set the low trigger temperature to '' | e.g. Set the low trigger temperature to '' | ||
| Line 78: | Line 73: | ||
| </ | </ | ||
| + | === Mainline linux === | ||
| + | |||
| + | Fan is controlled automatically by linux, and unit will be in millicelcius | ||
| + | |||
| + | eg. get the auto trigger temp with | ||
| + | ``` | ||
| + | cat / | ||
| + | ``` | ||
| + | |||
| + | eg. set the auto trigger temp to 40000 millicelcius | ||
| + | ``` | ||
| + | echo 40000 | sudo tee / | ||
| + | ``` | ||
| + | |||
| + | <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 |