Sounds like the sensor switch inside the AC adaptor jack has failed -- explains all of the symptoms. Solution is to replace the jack.

Cheers