Why does my computer run slowly when plugged in with charger and works normally on battery?

Feb 3, 2019
Out of the box, my HP Pavilion Gaming laptop is experiencing battery/charging problems such as having microstuttering intervals and not charging when sleeping. I've already tried updating the BIOS and tons of other methods people have suggested to me, power settings, and many more. I don't want to try taking it back or contact anybody yet, but can somebody suggest any other methods I can use to fix this problem?