This was happening on my Dell P57G laptop with 11.1v battery. I checked several things and saw that the power supply was producing voltage. The computer when powered on would show the battery disabled and the adapter message was showing a problem as well. Something like not recognized and adjusting for the power needed to run laptop. I then noticed the plug was not inserting properly. Upon closer inspection, the center pin was bent to the side. The laptop would run like this when plugged in, but would not charger the battery. I unplugged and let the power run out of the power supply completely and then used a tiny Philips head screwdriver to bend the center pin back into position. The Philips head allowed me to have a groove to sort of grab the pin and push it gently without slipping off. Sure enough, plugged the power cord back into laptop. It seated like new and the battery charging light came on. Booted up and no more messages about battery being temporarily disabled or the adapter not being recognized.