Fix T2 Mac suspend and fan defaults (#6562)

* Fix T2 Mac suspend and fan defaults

* Avoid repeated T2 boot image rebuilds

* Harden T2 migration test matching
This commit is contained in:
David Heinemeier Hansson
2026-08-07 11:15:28 +02:00
committed by GitHub
parent 25a74f4e39
commit 9cb3640c9f
4 changed files with 249 additions and 9 deletions
+11 -8
View File
@@ -8,15 +8,10 @@ if lspci -nn | grep -q "106b:180[12]"; then
linux-t2-headers \
apple-t2-audio-config \
apple-bcm-firmware \
t2fanrd \
tiny-dfr
t2fanrd
# Add user to video group (required for tiny-dfr to access /dev/dri devices)
usermod -aG video "$OMARCHY_INSTALL_USER"
# Enable T2 services
# Enable T2 fan control
systemctl enable t2fanrd.service
systemctl enable tiny-dfr.service
mkdir -p /etc/modules-load.d
{
@@ -40,14 +35,22 @@ EOF
mkdir -p /etc/limine-entry-tool.d
cat > /etc/limine-entry-tool.d/t2-mac.conf <<'EOF'
# Generated by Omarchy installer for T2 Mac support
KERNEL_CMDLINE[default]+=" intel_iommu=on iommu=pt pcie_ports=compat"
KERNEL_CMDLINE[default]+=" intel_iommu=on iommu=pt pm_async=off mem_sleep_default=deep"
EOF
# t2fanrd only reads sections for detected fans, so Fan2 is harmless on
# single-fan models and required on dual-fan MacBooks.
cat > /etc/t2fand.conf <<'EOF'
[Fan1]
low_temp=55
high_temp=75
speed_curve=linear
always_full_speed=false
[Fan2]
low_temp=55
high_temp=75
speed_curve=linear
always_full_speed=false
EOF
fi