mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
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:
co-authored by
David Heinemeier Hansson
parent
031ba01c83
commit
a5dc10960f
@@ -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
|
||||
Reference in New Issue
Block a user