I have a Dell Inspiron 5150 laptop computer. It is over 4 years old\nand out of warranty.\n\nThis week I was using it and it told me my battery was nearly dead.\nBut I didn't think I was using the battery, the external power supply\nwas connected to the computer and was plugged into a wall socket. The\npower supply light was on.\n\nSo I powered off the computer and waited an hour or so and when I\npowered it back up, the battery had recharged, but it was still\npowered by the battery, not the external power supply. It's like the\npower supply was able to charge the battery but not run the computer.\n\nSo I powered off the computer, removed the battery and powered it back\non. The machine booted and worked fine without the battery. I left\nit on for a while then I powered it back off, installed the battery\nand booted again.\n\nIt started this time and ran from the external power supply. So\nbasically it's back to normal.\n\nSo what's the problem, battery, power supply, motherboard, weak/strong\nelectricity and/or something else?\n\nWould the setting on the Power Control Panel affect this?\n\nIt's an old machine but I'm happy with it for now, I'd like to use it\nfor another year or so if possible but I don't want to throw good\nmoney after bad on repairs.\n\nThanks for any help you can give!