If your laptop has trouble charging have the charger and power socket checked. Holding the plug at an angle (which might seem like good a temporary fix) can cause the long term problems. A bent motherboard and power socket.