Buffer Copy Engine fork for Intel Macs with a T2 chip.
The suspend fix is a set of three parts. You will need to replace stock apple-bce with this fork. Additionally you will need the following forks:
t2-upower:https://github.com/deqrocks/t2-upowert2-kbd-tb:https://github.com/deqrocks/t2-kbd-tb
These kernel parameters have to be set in Linux commandline:
mem_sleep_default=deepas override for hardcoded arguments (if exist)pcie_ports=autoas override for hardcoded arguments (if exist)pm_async=offto fix a PM race condition caused by aaudio
On dGPU Macs, suspend may still fail or resume may take very long unless the iGPU is set as the default GPU.
- Follow the iGPU setup from
https://wiki.t2linux.org/guides/hybrid-graphics/#enabling-the-igpu - On Fedora, rebuild both grub and initramfs after changing kernel parameters or module config
- If resume still hangs, try
modprobe.blacklist=amdgpu - Blacklisting
amdgpucan make suspend work, but you will lose normal dGPU use and external monitor support apple-gmuxcan be used to force the iGPU as default:
echo "options apple-gmux force_igd=y" | sudo tee /etc/modprobe.d/apple-gmux.confSwitch back to the dGPU default by changing y to n and rebooting.
MacBookAir8,1MacBookAir9,1MacBookPro15,1MacBookPro16,1MacBookPro16,2MacBookPro16,4iMac19,1Macmini8,1
makesudo make install
sudo depmod -a
sudo rebootRebuild grub if your distro uses grub.
Rebuild initramfs if your distro includes these modules there.
Example for Fedora / dracut-based distros:
sudo dracut -fDon't forget to build and install the other two repos mentioned above.
If this work helps you and you want to support it:
https://www.paypal.com/paypalme/negmaster
- MCMrArm https://github.com/MCMrARM
- Antoine Sidem https://github.com/clanoftheducks