Buffer Copy Engine fork for Intel Macs with a T2 chip with stateful and no-state resume support.
These kernel parameters have to be set in Linux commandline:
mem_sleep_default=deepThis is S3. S2 and 4 should also workpcie_ports=autoas override for hardcoded arguments (if exist)
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,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