Restoring S3 Suspend to X1 Carbon (6th Gen) on Linux - 2018-08-11 00:00:00

My current laptop is the second in the X1 Carbon lineup I’ve owned. In general, it’s been painless running Linux. However, in this current iteration, I was surprised to find that suspend-to-ram functionality isn’t enabled in UEFI. Apparently, Lenovo is catering to a new Microsoft sleep state Windows Modern Standby that allows for devices to be more easily woken up when in deep sleep (think mobile phones). There’s a long thread on the Arch forums about this, and I was able to successfully follow this blog post in order to patch my system, with a few exceptions.