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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user