MacBook 12 lid close on Arch Linux

Running Arch Linux on the MacBook (Retina, 12-inch, 2017) works surprisingly well. However, there is a known issue where the system fails to wake up properly when the lid opens after being closed (sleep mode). This article documents how the lid close/wake issue could be fixed on the MacBook 12-inch 2017 by using two key solutions: Disabling D3cold on the NVMe device - prevents the storage from…