Coder Social home page Coder Social logo

mac_fan_controller's Introduction

Control a Mac's fan speeds on Linux

This script sets your Macbook's fan speed based on the highest CPU temperature. It currently only supports one fan, but can easily be generalized to work with n fans. This script was made to avoid an expensive hardware fix on a Macbook with a broken motherboard temperature sensor.

Installation

Run sudo setup.sh then run sudo crontab -e and append the following line to the file that opens:

* * * * * /usr/local/bin/run_every_x_seconds 10 /usr/local/bin/fan_control

This will make fan_control run every 10 seconds.

System-specific changes

You Macbook might store its SMC files under a different path. If the directory /sys/devices/platform/applesmc.768/ does not exist, you should change the line

APPLE_SMC = '/sys/devices/platform/applesmc.768/'

in fan_control to point the proper directory (hopfully it is as simple as a different number after applesmc) then re-run sudo setup.sh.

mac_fan_controller's People

Contributors

nwam avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.