mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* 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>
12 lines
255 B
Bash
12 lines
255 B
Bash
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
|