Chosen Solution
I have a MacBook Air 2011 it keeps shutting off at random times to. I don’t know how to fix it. I have been trying everything. Can someone help me?
First I would reset the SMC Heres the Apple TN - Resetting SMC. I would also fully discharge and recharge the battery at least every two months. Also here is a good writeup on maximizing battery life Apple TN - Tips on maximizing battery life