Skip to content

Instantly share code, notes, and snippets.

@Fusseldieb
Last active June 20, 2022 18:51
Show Gist options
  • Save Fusseldieb/49bb770dff86faf1cf5d7713a837db1a to your computer and use it in GitHub Desktop.
Save Fusseldieb/49bb770dff86faf1cf5d7713a837db1a to your computer and use it in GitHub Desktop.

Revisions

  1. Fusseldieb revised this gist Jun 20, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion silent_fans.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,9 @@
    # And save this file in the same location (/home/<your_username>/silent_fans.sh)
    # Restart and see if it works - If you're using a 2017 MiBook, it definitively should
    # After the login, only one fan should spin very slowly, maintaining a constant active airflow cooling the computer

    #
    #I couldn't verify a decrease in battery runtime, it seems that it remains the same
    # A theory of mine is that the computer uses more energy to idle the fans, get hot and then ramp up the fans to cool it back down, whereas maintaing it at low rpm prevents it from heating up in the first place.
    /usr/bin/nbfc set -f 0 -s 0
    /usr/bin/nbfc set -f 1 -s 50
    /usr/bin/cpupower frequency-set -g conservative
  2. Fusseldieb revised this gist Jun 20, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions silent_fans.sh
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,7 @@
    # @reboot /usr/bin/sh /home/<your_username>/silent_fans.sh
    # And save this file in the same location (/home/<your_username>/silent_fans.sh)
    # Restart and see if it works - If you're using a 2017 MiBook, it definitively should
    # After the login, only one fan should spin very slowly, maintaining a constant active airflow cooling the computer

    /usr/bin/nbfc set -f 0 -s 0
    /usr/bin/nbfc set -f 1 -s 50
  3. Fusseldieb revised this gist Jun 20, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion silent_fans.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    # Install nbfc and cpupower package first
    # Run in crontab when computer starts
    # Add this line to `sudo crontab -e`:
    # @reboot /usr/bin/sh /home/<your_username>/fans.sh
    # @reboot /usr/bin/sh /home/<your_username>/silent_fans.sh
    # And save this file in the same location (/home/<your_username>/silent_fans.sh)
    # Restart and see if it works - If you're using a 2017 MiBook, it definitively should

    /usr/bin/nbfc set -f 0 -s 0
    /usr/bin/nbfc set -f 1 -s 50
  4. Fusseldieb revised this gist Jun 20, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion silent_fans.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Install nbfc and cpupower package first
    # Run in crontab when computer starts
    # Add this line to `sudo crontab -e`:
    # @reboot /usr/bin/sh /home/fusseldieb/fans.sh
    # @reboot /usr/bin/sh /home/<your_username>/fans.sh

    /usr/bin/nbfc set -f 0 -s 0
    /usr/bin/nbfc set -f 1 -s 50
  5. Fusseldieb revised this gist Jun 20, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions silent_fans.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # Install nbfc and cpupower package first
    # Run in crontab when computer starts
    # Add this line to `sudo crontab -e`:
    # @reboot /usr/bin/sh /home/fusseldieb/fans.sh
  6. Fusseldieb revised this gist Jun 20, 2022. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions silent_fans.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    # Run in crontab when computer starts
    # Add this line to `sudo crontab -e`:
    # @reboot /usr/bin/sh /home/fusseldieb/fans.sh

    /usr/bin/nbfc set -f 0 -s 0
    /usr/bin/nbfc set -f 1 -s 50
    /usr/bin/cpupower frequency-set -g conservative
  7. Fusseldieb revised this gist Jun 20, 2022. No changes.
  8. Fusseldieb created this gist Jun 20, 2022.
    4 changes: 4 additions & 0 deletions silent_fans.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    /usr/bin/nbfc set -f 0 -s 0
    /usr/bin/nbfc set -f 1 -s 50
    /usr/bin/cpupower frequency-set -g conservative
    echo 0 > /sys/devices/system/cpu/cpufreq/boost