Skip to content

Fix T2 Mac suspend and fan defaults - #6562

Merged
dhh merged 3 commits into
quattrofrom
fix-t2-mac-compatibility-6559
Aug 7, 2026
Merged

dhh merged 3 commits into
quattrofrom
fix-t2-mac-compatibility-6559

Conversation

@dhh

@dhh dhh commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace the obsolete pcie_ports=compat T2 kernel argument with pm_async=off mem_sleep_default=deep
  • use the native Boot Camp-style Touch Bar by default and remove tiny-dfr from T2 setup and the ISO cache
  • configure both possible MacBook fans while preserving Omarchy's linear fan curve
  • migrate existing T2 installs and cover affected, idempotent, and non-T2 paths

Closes #6559

Verification

  • bash test/shell.d/t2-hardware-test.sh
  • ./test/cli
  • Bash syntax validation and git diff --check
  • remaining shell suite passes; the aggregate runner retains the unrelated pre-existing model-usage migration assertion failure
  • fresh ISO acceptance was blocked before build by the harness's interactive sudo prompt

Copilot AI balanced review requested due to automatic review settings August 5, 2026 20:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates T2 Mac defaults for reliable suspend, native Touch Bar behavior, and dual-fan support.

Changes:

  • Replaces obsolete kernel parameters and removes tiny-dfr.
  • Adds dual-fan configuration and migration logic.
  • Adds T2 setup and migration tests.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
install/hardware/apple/fix-t2.sh Updates fresh T2 installation defaults.
install/omarchy-other.packages Removes tiny-dfr from the ISO cache.
migrations/1785944594.sh Migrates existing T2 installations.
test/shell.d/t2-hardware-test.sh Tests fresh, migrated, idempotent, and non-T2 paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread migrations/1785944594.sh
Comment on lines +45 to +47
{ [[ ! -r $running_cmdline ]] ||
! grep -Eq '(^| )pm_async=off( |$)' "$running_cmdline" ||
! grep -Eq '(^| )mem_sleep_default=deep( |$)' "$running_cmdline"; }; then

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 5, 2026 21:03
@dhh

dhh commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Claude Fable review completed.

Findings addressed:

  • added a machine-wide success marker so another user's pending migration cannot repeat the UKI rebuild before reboot
  • added explicit interrupted-rebuild and pre-reboot multi-user regression coverage
  • anchored the retry test's negative command match so paths containing sed or tee cannot cause a false failure

Fable also independently checked T2FanRD upstream: it reads only Fan1..FanN for detected fans, so Fan2 is required on dual-fan models and ignored safely on single-fan models. No remaining actionable code findings were reported. Fresh-ISO and physical T2 validation remain outstanding as documented in the PR.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@dhh
dhh merged commit 9cb3640 into quattro Aug 7, 2026
4 checks passed
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
* Fix T2 Mac suspend and fan defaults

* Avoid repeated T2 boot image rebuilds

* Harden T2 migration test matching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[quattro only] Update fix-t2.sh to enhance T2 macs compatibility

2 participants