IPhone 5 lock button not working, what to do?

My iPhone 5 lock button finally stopped working. At first, the right side quit working and I had to lock with the left side. Today, the whole button is useless. It is still under warranty, but the nearest apple store is 90 minutes away. Is there a way I could fix it without having to go there?

Ok you go to Settings>General>Accessibility>Assistive Touch>On
It should bring a button like thing on your screen and you can press it, giving you the option to lock your phone

Yeah try a few things:

1. Take the battery and the small chip out. You will find this at the back. After you take it out, wait, and put them in again. Turn on your phone and see if it works. If it doesn't follow step two:

2. Leave your phone uncharged for the whole time. Soon, the battery life will die. When the phone turns off, enter your charger and wait for about 30 minutes. Then turn on your phone. Does it work? If it still doesn't, check what service provider you have: Verizon Wireless, Sprint, T-moblie, etc. Then, go on google, type in the provider's name, then search for its number. With another phone, call the number and state your problem. They will help you.

  • What can I do about my iPhone lock button not working? I noticed as of yesterday that my iPhone lock button only worked on one side. My mom won't take it in the apple store because she said there was nothing they could do about it, and I'm afraid that eventually the whole lock button will stop working. I'm very obsessive compulsive, so even they smallest things will set me off and worry me to death. Is there anything I could do to help it in any way? I already have the assistive touch on
  • My iphone device lock button is not working and i need to get into DFU mode? I have downloaded the ios 7 beta and occidentally erased everything off my device which mean it is now a 'New iPhone' set up page. I tunes is saying "the device is not registered as part of the iPhone developers program" I need to put my device in DFU mode but I can't because the lock button is not working. is there any way i can do this? Really need help
  • My iphone 5 lock button not working? I bought an iPhone 5 two weeks ago it has been working fine but the past week I have noticed the right side of my sleeper/lock button doesn't work properly and it won't lock the phone, what do I do about this?
  • My iPhone 4 lock/sleep button is not working? I don't know what to do, should I go to my phone company or an Apple Store. This problem started yesterday.