Chosen Solution

bought a battery from ifixit when charged, if i unplug charger the system shut off while on battery power the system shuts off randomly while on charger power the system keeps going to sleep Untitled

Let’s do some testing of the battery. Complete the guide below; be sure to upload an image of the coconutBattery window to your existing question! How to Test a Mac Laptop Battery Adding images to an existing question