iPhone 5c automatically turns off when right-side up
My iPhone 5c (8.4.1) automatically shuts off when it is right-side up. To turn it on I turn it upside down--it comes on fine. It also is fine if I set it flat on a table. I have just completely restored the phone using recovery mode: it set up fine, and all of the apps seem to be working well. Any guesses as to the problem? Possibly the gyroscope? Any thoughts on how to fix this?
iPhone 5c, iOS 8.4.1