My MacBook Pro 13" 2012 powers off when unplugged
If I unplug my MacBook it dies immediately however if I turn it on while unplugged I can plug it in and out. Also, to turn on while unplugged I have to hold in power button and from then on the power button doesn't work to put it to sleep etc. I recently replaced the battery with an oem replacement as I thought that was where the fault lied but it persists. I was also getting very high kernel_task in activity monitor until I followed this guide. https://www.davidschlachter.com/misc/kernel_task
System Information:
Battery Information:
Model Information:
Serial Number: D861015004NDGDL3T
Manufacturer: Aaweal
Device Name: bq20z451
Pack Lot Code: 0
PCB Lot Code: 0
Firmware Version: 74
Hardware Revision: 00aa
Cell Revision: 2
Charge Information:
Charge Remaining (mAh): 4543
Fully Charged: No
Charging: Yes
Full Charge Capacity (mAh): 6074
Health Information:
Cycle Count: 2
Condition: Normal
Battery Installed: Yes
Amperage (mA): 1370
Voltage (mV): 12403
System Power Settings:
AC Power:
System Sleep Timer (Minutes): 10
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 10
Wake on AC Change: No
Wake on Clamshell Open: Yes
Wake on LAN: Yes
Current Power Source: Yes
Display Sleep Uses Dim: Yes
PrioritizeNetworkReachabilityOverSleep: 0
Battery Power:
System Sleep Timer (Minutes): 10
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 2
Wake on AC Change: No
Wake on Clamshell Open: Yes
Display Sleep Uses Dim: Yes
Reduce Brightness: Yes
Hardware Configuration:
UPS Installed: No
AC Charger Information:
Connected: Yes
ID: 0x0000
Revision: 0x0000
Family: 0x0000
Serial Number: 0x00000000
Charging: Yes
Battery Information:
Model Information:
AC Power:
System Sleep Timer (Minutes): 10
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 10
Wake on AC Change: No
Wake on Clamshell Open: Yes
Wake on LAN: Yes
Current Power Source: Yes
Display Sleep Uses Dim: Yes
PrioritizeNetworkReachabilityOverSleep: 0
Battery Power:
System Sleep Timer (Minutes): 10
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 2
Wake on AC Change: No
Wake on Clamshell Open: Yes
Display Sleep Uses Dim: Yes
Reduce Brightness: Yes
Hardware Configuration:
UPS Installed: No
AC Charger Information:
Connected: Yes
ID: 0x0000
Revision: 0x0000
Family: 0x0000
Serial Number: 0x00000000
Charging: Yes
MacBook Pro, macOS High Sierra (10.13.1)