From a5dc10960fe5e8a14c49770f3b934a6a68f63933 Mon Sep 17 00:00:00 2001 From: Federico Sapuppo Date: Thu, 2 Apr 2026 06:06:57 -0300 Subject: [PATCH] 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 --- migrations/1775059710.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/1775059710.sh diff --git a/migrations/1775059710.sh b/migrations/1775059710.sh new file mode 100644 index 00000000..c385a8ea --- /dev/null +++ b/migrations/1775059710.sh @@ -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 </dev/null +[Fan1] +low_temp=55 +high_temp=75 +speed_curve=linear +always_full_speed=false +EOF +fi