My phone suddenly starting beeping randomly, the same beep you get when the charger is a bad fit or the contact is otherwise bad. Assuming the socket might be dirty (as with most things you shove in pockets) I used a contact-cleaning spray on it, and for the time being this seems to have solved the problem. It is possible, however, that I might have to get this socket changed/repaired.