Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I use my iPhone4 to listen to Pandora radio at work. I have it plugged in to a standard charge/sync cable, and a headphone jack to my speakers.

Sometimes the screen stays on indefinitely, showing me the current album in the Pandora app. Sometimes, it goes to sleep, and I have to manually unlock it to see the current album. Seems about 50/50, and I have no idea why it sometimes stays on and sometimes doesn't.

How can I get it to stay on, and not go to sleep (I do want it to go to sleep normally when I'm not using it for music, however)

Not sure if this is specific to Pandora, or if I'd see the same issue with the iPod app.

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

I figured out a reliable way to make sure the phone doesn't go to sleep while running Pandora:

  1. Launch Pandora
  2. Insert headphone jack
  3. Connect dock/power cable

If I dock the power cable before launching Pandora, then the screen will go to sleep.

Still not sure why it does this, or if it is specific to the Pandora app, but hopefully this will help someone else out :)

share|improve this answer
    
I know apps are capable of blocking the sleep timeout from occurring, so this sounds like either a bug in Pandora, iOS itself, or something else. My theory: When you plug the cable in AFTER launching Pandora, the app "sees" the power state, and keeps the screen on. It apparently doesn't read the power state on launch. Presumably this also means you can unplug/replug the cable at any time after the app launches to keep it awake too. –  Jason Salaz Mar 8 '11 at 17:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.