Chosen Solution

I’ve had some interesting problems with my Mac recently, it won’t boot or respond to the power button. However sometimes it will just boot at random regardless of if I press the power button but as soon as I close the Mac or it goes to sleep it completely shuts down. solid green magsafe indicator and no signs of life from it. Can’t reset SMC or pram as it is acting as if it is completely shutdown or out of battery. Any advice would be appreciated.

Disconnect the battery following this guide MacBook Air 13" Early 2017 Battery Replacement stop at Step 3 Now press & hold the power button for 15 secs with nothing connected. Next carefully plug in your MagSafe charger. does the system startup and stay running?