Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion install/hardware/apple/fix-t2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@
if lspci -nn | grep "106b:180[12]" >/dev/null; then
echo "Detected MacBook with T2 chip. Installing support items..."

# The fetcher replaced the packaged firmware upstream and declares
# Conflicts=apple-bcm-firmware, so a machine that already carries the old
# package (an earlier install) must drop it first or the noninteractive
# transaction fails. Fresh installs have nothing to drop, which is a no-op.
omarchy-pkg-drop apple-bcm-firmware

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These files are ONLY ran upon install so this will never accomplish anything. Delete.


# apple-bcm-firmware-fetcher reads its firmware off an on-disk macOS volume —
# Wi-Fi firmware for T2 Macs is only legally obtainable from there. A
# single-boot install that wiped macOS has no such volume, so the fetch comes
# up empty; those machines need the firmware supplied from a macOS copy or a
# downloaded recovery image instead.
omarchy-pkg-add \
linux-t2 \
linux-t2-headers \
apple-t2-audio-config \
apple-bcm-firmware \
apple-bcm-firmware-fetcher \
Comment thread
SorenHJohansen marked this conversation as resolved.
Resolved
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
t2fanrd

# Enable T2 fan control
Expand Down
2 changes: 1 addition & 1 deletion install/omarchy-other.packages
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ dell-xps13-sidecar-amps
lsp-plugins-lv2

# T2 MacBook support packages
apple-bcm-firmware
apple-bcm-firmware-fetcher
apple-t2-audio-config
linux-t2
linux-t2-headers
Expand Down
10 changes: 10 additions & 0 deletions test/shell.d/t2-hardware-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ grep -Fq 'KERNEL_CMDLINE[default]+=" intel_iommu=on iommu=pt pm_async=off mem_sl
fail "T2 setup leaves optional Touch Bar customization uninstalled"
! grep -qx 'tiny-dfr' "$other_packages" ||
fail "the ISO no longer caches tiny-dfr"
grep -Fq 'apple-bcm-firmware-fetcher' "$fix_t2" ||
fail "T2 setup installs the firmware fetcher"
grep -Fq 'omarchy-pkg-drop apple-bcm-firmware' "$fix_t2" ||

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing. We're not migrating users who already have the firmware so this shouldn't exist

fail "T2 setup drops the superseded firmware package before the fetcher conflicts with it"
! grep -Fq 'apple-bcm-firmware \' "$fix_t2" ||

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to care about this

fail "T2 setup no longer adds the superseded firmware package"
grep -Fq 'apple-bcm-firmware-fetcher' "$other_packages" ||
fail "the default package list installs the firmware fetcher"
! grep -qx 'apple-bcm-firmware' "$other_packages" ||
fail "the default package list no longer names the superseded firmware package"
pass "fresh T2 setup uses t2bce-compatible suspend, fan, and Touch Bar defaults"

test_tmp=$(mktemp -d)
Expand Down