My phone has once again started with it's old nonsense. So I have to accept that it is probably a hardware problem, or a glitch with the software that cannot be fixed to reloading it (reloading the software fixes it for about a week before trouble starts).
I have decided to stop trying to fix it. Instead I ripped out BBM out of my Blackberry 8520, which (although it is slow) has less serious flaws than this phone. Which is sad really as I like the Android phone more.