Skip to content

Instantly share code, notes, and snippets.

@nwjlyons
Last active July 13, 2023 10:05
Show Gist options
  • Save nwjlyons/fdb269f8f9cb40798e83 to your computer and use it in GitHub Desktop.
Save nwjlyons/fdb269f8f9cb40798e83 to your computer and use it in GitHub Desktop.
Manually control Mac Book Pro laptop fan from linux
# 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)
@gmrandazzo
Copy link

Many thanks! Beautifull the openbox setup and the key bindings.

Bests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment