So this has happened a few times. My phone is not jailbroken and is running 2.1. At random my sleep wake button on the top of the phone stops responding. Due to the button not responding I am not able to reboot it. The only fix I have found is while near a power supply if I plug it in it will work instantly. There does not seem to be a way to fix it quick when not near a power source. Any ideas on how to fix it? Is it a bad hardware or software?