Resetting the system management controller (SMC) can resolve certain issues related to power, battery, fans, and other features.
Unplug the power, then shut down your Mac.
Hold the left Shift+Control+Option and the power button keys down at the same time)keys. Keep all four buttons pressed down for ten seconds, then let go.
Plug the power cable back in, then turn on your Mac.
The SMC is now reset.