When it switches to battery, how long does the laptop stay on till it shuts off? My guess is that there's something loose in the power adapter, which in my experience can be fairly common. It doesn't seem like a overheating problem to me. If it was overheating, it should be shutting off regardless if it is plugged in or on battery.