Skip to content

Instantly share code, notes, and snippets.

View gmrandazzo's full-sized avatar
💥
Creativity mode: ON

Giuseppe Marco Randazzo gmrandazzo

💥
Creativity mode: ON
View GitHub Profile
@nwjlyons
nwjlyons / laptop_fan.sh
Last active July 13, 2023 10:05
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