Skip to content

Commit 26edd4d

Browse files
authored
Merge pull request #3 from cgomesu/dev
changed default period to standard 25kHz
2 parents 84863d5 + 3d86880 commit 26edd4d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Usage:
7676
-h Show this HELP message.
7777
-l int TIME (in seconds) to LOOP thermal reads. Lower means higher resolution but uses ever more resources. Default: 10
7878
-m str Name of the DEVICE to MONITOR the temperature in the thermal sysfs interface. Default: soc
79-
-p int The fan PERIOD (in nanoseconds). Default (30kHz): 30000000.
79+
-p int The fan PERIOD (in nanoseconds). Default (25kHz): 25000000.
8080
-s int The MAX SIZE of the TEMPERATURE ARRAY. Interval between data points is set by -l. Default (store last 1min data): 6.
8181
-t int Lowest TEMPERATURE threshold (in Celsius). Lower temps set the fan speed to min. Default: 25
8282
-T int Highest TEMPERATURE threshold (in Celsius). Higher temps set the fan speed to max. Default: 75
@@ -85,7 +85,7 @@ Usage:
8585
Defaults have been tested and optimized for the following hardware:
8686
- NanoPi-M4 v2
8787
- M4 SATA hat
88-
- Fan 12V (.08A)
88+
- Fan 12V (.08A and .2A)
8989
And software:
9090
- Kernel: Linux 4.4.231-rk3399
9191
- OS: Armbian Buster (20.08.9) stable

pwm-fan.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ fan_run_thermal () {
203203

204204
fan_startup () {
205205
if [[ -z $PERIOD ]]; then
206-
PERIOD=30000000
206+
PERIOD=25000000
207207
fi
208208
while [[ -d "$CHANNEL_FOLDER" ]]; do
209209
if [[ $(cat $CHANNEL_FOLDER'enable') -eq 0 ]]; then
@@ -365,7 +365,7 @@ usage() {
365365
echo ' -h Show this HELP message.'
366366
echo ' -l int TIME (in seconds) to LOOP thermal reads. Lower means higher resolution but uses ever more resources. Default: 10'
367367
echo ' -m str Name of the DEVICE to MONITOR the temperature in the thermal sysfs interface. Default: soc'
368-
echo ' -p int The fan PERIOD (in nanoseconds). Default (30kHz): 30000000.'
368+
echo ' -p int The fan PERIOD (in nanoseconds). Default (25kHz): 25000000.'
369369
echo ' -s int The MAX SIZE of the TEMPERATURE ARRAY. Interval between data points is set by -l. Default (store last 1min data): 6.'
370370
echo ' -t int Lowest TEMPERATURE threshold (in Celsius). Lower temps set the fan speed to min. Default: 25'
371371
echo ' -T int Highest TEMPERATURE threshold (in Celsius). Higher temps set the fan speed to max. Default: 75'
@@ -374,7 +374,7 @@ usage() {
374374
echo ' Defaults have been tested and optimized for the following hardware:'
375375
echo ' - NanoPi-M4 v2'
376376
echo ' - M4 SATA hat'
377-
echo ' - Fan 12V (.08A)'
377+
echo ' - Fan 12V (.08A and .2A)'
378378
echo ' And software:'
379379
echo ' - Kernel: Linux 4.4.231-rk3399'
380380
echo ' - OS: Armbian Buster (20.08.9) stable'

0 commit comments

Comments
 (0)