Last active
July 13, 2023 10:05
-
-
Save nwjlyons/fdb269f8f9cb40798e83 to your computer and use it in GitHub Desktop.
Manually control Mac Book Pro laptop fan from linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First su in as root | |
sudo su | |
# Then set fan control to manual mode | |
echo 1 > /sys/devices/platform/applesmc.768/fan1_manual | |
# Then set the fan speed to any value between fan1_min and fan1_max. To view these values | |
cat /sys/devices/platform/applesmc.768/fan1_min | |
cat /sys/devices/platform/applesmc.768/fan1_max | |
# Set the fan speed by writing to fan1_output | |
echo 6200 > /sys/devices/platform/applesmc.768/fan1_output | |
(6200 is my max fan speed) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Many thanks! Beautifull the openbox setup and the key bindings.
Bests