Chosen Solution

My laptop shuts down every time I unplug the charger. How do I fix this?

It sounds very likey that your computer’s battery is dead. I would suggest getting a replacament battery.

If, it’s like mine, it could be a faulty DC IN power jack. (You wiggle or just bump the power plug at the jack and the computer reboots)