Reset the SMC (System Management Controller):
For MacBook Pro and MacBook Air, shut down your Mac and unplug the power cable. Press and hold Shift + Control + Option and the Power button for 10 seconds. Release the keys, reconnect the power cable, and restart your Mac. For iMac, Mac Mini, or Mac Pro, unplug the power cable, wait for 15 seconds, plug it back in, and restart your Mac.