{"id":20687083,"url":"https://github.com/jcsalterego/smc","last_synced_at":"2025-04-22T15:07:30.316Z","repository":{"id":7768726,"uuid":"9137488","full_name":"jcsalterego/smc","owner":"jcsalterego","description":"A fork of Apple System Management Control (SMC) Tool","archived":false,"fork":false,"pushed_at":"2013-04-01T02:47:08.000Z","size":120,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T16:11:36.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcsalterego.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-31T22:53:00.000Z","updated_at":"2022-12-02T22:50:27.000Z","dependencies_parsed_at":"2022-09-13T14:01:16.947Z","dependency_job_id":null,"html_url":"https://github.com/jcsalterego/smc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fsmc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fsmc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fsmc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fsmc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcsalterego","download_url":"https://codeload.github.com/jcsalterego/smc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250264910,"owners_count":21402003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T22:55:44.708Z","updated_at":"2025-04-22T15:07:30.289Z","avatar_url":"https://github.com/jcsalterego.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# SMC\n\nA fork of\n[smc-command](https://github.com/hholtmann/smcFanControl/tree/master/smc-command)\nfrom\n[https://github.com/hholtmann/smcFanControl/](https://github.com/hholtmann/smcFanControl/).\n\n## License\n\n[GPLv2](LICENSE)\n\n## Original README\n\n    Warning\n    -------\n    This tool will allow you to write values to the SMC which could\n    irreversably damage your computer.  Manipulating the fans could\n    cause overheating and permanent damage.  USE THIS PROGRAM AT YOUR\n    OWN RISK!\n    \n    Background\n    ----------\n    I created this program because I was unhappy with my MacBook Pro\n    running so hot and it annoyed me that Apple didn't make any way\n    for end users to set fan preferences.\n    \n    This program will allow you to read and write values to the SMC\n    using the AppleSMC kernel extension.  The purpose of this is to\n    show how to talk to the controller.  I've made no effort to make\n    it user friendly, however I'm releasing this in hopes that someone\n    will take the next logical step and make a nice *free* GUI. I\n    think it's absurd that some people are trying to charge for simple\n    programs to manipulate this type of data.\n    \n    In my testing I've been able to lower the average system\n    temperature by 15C just by running the fans at a low speed like\n    3500 RPM, which you can barely hear.\n    \n    Usage\n    ------\n    # smc -h\n    \n    Apple System Management Control (SMC) tool 0.01\n    Usage:\n    ./smc [options]\n        -f         : fan info decoded\n        -h         : help\n        -k \u003ckey\u003e   : key to manipulate\n        -l         : list all keys and values\n        -r         : read the value of a key\n        -w \u003cvalue\u003e : write the specified value to a key\n        -v         : version\n    \n    Fan control\n    -----------\n    To decode:\n    # smc -f\n    \n    To manually query and control:\n    FNum - tells you how many fans are in the system\n    \n    To read data from each fan:\n    F0Ac - Fan actual speed\n    F0Mn - Fan minimum speed\n    F0Mx - Fan maximum speed\n    F0Sf - Fan safe speed\n    F0Tg - Fan target speed\n    FS!  - See if fans are in automatic or forced mode\n    \n    [Replace 0 with fan #.  In the MacBook Pro there two fans so this\n     applies for 0 (left) and 1 (right).]\n    \n    To set a fan to a specific speed:\n    FS!  - Sets \"force mode\" to fan.  Bit 0 (right to left) is fan 0,\n           bit 1 is fan 1, etc\n    F0Tg - Sets target speed, make sure you fp78 encode it (left shift\n           by 2)\n    \n    For example, to force both fans to 3500 RPM:\n    # python -c \"print hex(3500 \u003c\u003c 2)\"\n    0x36b0\n    # smc -k \"FS! \" -w 0003\n    # smc -k F0Tg -w 36b0\n    # smc -k F1Tg -w 36b0\n    \n    ..to force fan 0 to 4000 RPM and leave fan 1 in automatic mode:\n    # smc -k \"FS! \" -w 0001\n    # smc -k F0Tg -w 3e80\n    \n    ..to return both fans to automatic mode:\n    # smc -k \"FS! \" -w 0000\n    \n    Temperature sensors\n    -------------------\n    TB0T\n    TC0D\n    TC0P\n    TM0P\n    TN0P\n    Th0H\n    Ts0P\n    TN1P\n    Th1H\n    \n    Light sensors\n    -------------\n    ALV0 - Left\n    ALV1 - Right\n    \n    Motion sensors\n    --------------\n    MO_X\n    MO_Y\n    MO_Z\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcsalterego%2Fsmc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcsalterego%2Fsmc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcsalterego%2Fsmc/lists"}