Add migration for T2 fan curve config (#5176)

* Add migration for tuned fan curve on existing T2 installs

* Make sure it's clear to all what migration is being run (even if it doesn't apply to them)

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Federico Sapuppo
2026-04-02 11:06:57 +02:00
committed by GitHub
co-authored by David Heinemeier Hansson
parent 031ba01c83
commit a5dc10960f
+11
View File
@@ -0,0 +1,11 @@
echo "Install tuned fan curve for T2 MacBook"
if lspci -nn | grep -q "106b:180[12]" && [[ ! -f /etc/t2fand.conf ]]; then
cat <<EOF | sudo tee /etc/t2fand.conf >/dev/null
[Fan1]
low_temp=55
high_temp=75
speed_curve=linear
always_full_speed=false
EOF
fi