A battery pack failure is usually responsible for this problem. In the event that your laptop works well without a battery but only via the AC adapter, you might need to replace the battery.