Hello mrgtjcqz,
Thanks for the post. I know it's important to make sure your Mac runs as expected. I understand yours has been shutting down at around 20 percent, and you've done some troubleshooting already.
To clarify, are you seeing any alerts that your Mac restarted because of a problem, or anything similar? If so, you might start here: If your Mac restarted because of a problem
I understand you checked your cycle count. Have you checked your battery condition as well? About Mac notebook batteries:
"To see the health of your battery, hold the Option key and click the battery icon in the menu bar to reveal the battery status menu. You'll see one of the following status indicators:
- Normal: The battery is functioning normally.
- Service Recommended: The battery's ability to hold charge is less than when it was new or it isn't functioning normally. You can safely continue to use your Mac but you should take it to an Apple Store or Apple-authorized service provider to get your battery evaluated."
Regarding shut-down warnings, it sounds possible you're not seeing the warning because the battery is not reaching 15% or less:
If you don't receive a warning when your battery has a low charge, generally reported at or under 15%, it might be because the battery menu bar icon is disabled. Follow these steps to enable the battery status menu item:
- Open System Preferences.
- Click Energy Saver.
- Select the "Show battery status in menu bar" check box to display the battery status menu item.
Portables using OS X Mavericks v10.9 or later display the low battery warning when the battery has approximately 10 minutes of power remaining. Earlier versions of OS X report it at 15% or less."
I hope this helps. Kind regards.