iPhone Keep phone awake though screen is off? (iOS7)

Discussion in 'Jailbreaks and iOS Hacks' started by LosLoco, Jan 8, 2014.

  1. LosLoco macrumors member

    Joined:
    Nov 28, 2012
    #1
    Hola dudes and dude-ettes!

    I've gotten myself a Philips nightstanddock for christmas, but I'm hugely annoyed by the fact, that I have to keep the screen on all through the night, if I want the alarm-app from Philips (HomeStudio) to actually go off in the morning.

    A little digging through the almighty internet has provided with an idea as to why this is, and it seems to be something do to with the phone going to sleep/hybernating after the screen has been on for a while, and third party apps can't wake this sleep again (or something like that).

    Now, dear jailbreakers, my question to you is - is there some kind of tweak on cydia, that makes it possible for a third party app to set off an alarm, even though the screen is off? Even if I turn the brightness all the way down (which is a huge bother to do every freaking night), the light from the screen still irritates oh so much.

    I have absolute no insight into how this all works, but I have this idea, that it's a question of preventing the phone from hybernating (ideally just when it's docked/connected to a charger).

    Any ideas?
     
  2. Applejuiced macrumors Westmere

    Applejuiced

    Joined:
    Apr 16, 2008
    Location:
    At the iPhone hacks section.
    #2
    Why not use the regular alarm app to wake you up instead of the Phillips one?
    For something like that to work you would need someone to write a specific hack for that specific Philips hardware to function right like it was supposed to do when it was sold by Phillips.
     
  3. eyoungren macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #3
    ScreenDimmer can do this, but it's iOS 6 right now and hasn't updated I think (maybe it has?). Might check.
     
  4. LosLoco thread starter macrumors member

    Joined:
    Nov 28, 2012
    #4
    I wouldn't mind using the regular alarm a bit - but the dock goes to auto-standby after a period of time (that I don't quite now what is...)

    I don't really see it being such a specific hack, though. As far as I understand, the culprit is hybernation/deepsleep, that kicks in after a period of time after the screen has been shut off. If this hybernation/deepsleep didn't kick it, the problem would be solved - nay? :)

    Surely, there must be some kind of tweak that disables hybernation/deepsleep?

    It's worth a try, if nothing else :)
     
  5. eyoungren macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #5
    Well, Background Manager allows you to control which apps can remain running. You can tell it to keep apps that you add to the list running in the background (forced backgrounding). That prevents them from backgrounding out and quitting which is the normal process on stock.

    I think they have updated for iOS 7. If you can't find it, try removing the space between the two words. Never can remember how it goes for all tweaks because some devs use spaces between the words and some don't.
     
  6. LosLoco thread starter macrumors member

    Joined:
    Nov 28, 2012
    #6
    I just found this from another thread

    http://forums.macrumors.com/showpost.php?p=17718830&postcount=69

    So I have no idea if Background Manager will do anything, I'm afraid - but it's worth a try !
     
  7. eyoungren macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #7
    Well, no idea. I use My Alarm Clock, but it's a nightstand clock and I don't use it's alarm features. I know that if I add an app to the list of exceptions on Background Manager it keeps it running until I kill it. But I've never added an alarm clock app to it.

    My reasoning behind that is that since the stock alarm clock will work whether the phone is locked or not, I use that. One because I've added my own alarms (jailbroken of course) and hate the ones in the app (although I love the clock) and two because sometimes my iPhone has a bad habit of spontaneously restarting.

    Keeping an alarm app running in the background does you no good if your phone restarts on you. I need to get up, so if my phone DOES restart I know the stock alarm will still go off.

    My only advice is to test it. If Background Manager is iOS 7, try it and set your app as an exception in Background Manager. Add an alarm in your app for a few minutes ahead and then leave the app. See if it goes off when it's supposed to.
     
  8. LosLoco thread starter macrumors member

    Joined:
    Nov 28, 2012
    #8
    Well, I'm definately giving it a go. Just had a quick "session" with the developer of Background Manager on Twitter, and he suggest, that it should work, if I check "forced" at the alarm app. And he said, that I should contact him tomorrow, if it doesn't work.

    I love helpful devs like that, and it makes paying 0,99 for the app so much easier to know that the dev actually cares to help :)

    So it's downloaded, I've done nothing more than add the alarm app and set it to forced. Now I'll just have to wait 6,5 hours to see if it works in the morning (better set up oldfashioned alarm as backup ;) )
     
  9. eyoungren macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #9
    I've never needed support from the dev, but good to know he's responsive if I ever do need it.

    Yeah, forced mode is what you want. That keeps it live.

    Note that the tweak is great for all sorts of apps. I use it to keep my music streaming apps running when my iPhone is locked.
     
  10. LosLoco thread starter macrumors member

    Joined:
    Nov 28, 2012
    #10
    Yeah, I can see the tweak being valuable in a lot of instances.

    However, a quick question. "Native" means "how it works without the tweak", right? :D
     
  11. eyoungren macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #11
    That is correct. I know there's a reason it's included, but that reason escapes me right now.
     
  12. LosLoco thread starter macrumors member

    Joined:
    Nov 28, 2012
    #12
    Sadly, it didn't work :/

    Guess it's got something to do about Apples limitations to what an app can do when screen is locked :/

    Guess I'll have to dig even deeper in the almighty jailbreak-universe to find a solution. Now I'm just getting good old stubborn! :D
     
  13. Qaanol macrumors 6502a

    Joined:
    Jun 21, 2010
    #13
    So, I could be way off-base here, but is it possible to set a regular alarm and the 3rd-party alarm to go off at about the same time? The regular alarm should wake up the device, and then the other app should be able to do its thing, no?
     
  14. goobot macrumors 603

    goobot

    Joined:
    Jun 26, 2009
    Location:
    long island NY
    #14
    Insomnia is what you are looking for. It keeps everything running even when you shut off the screen. You can turn it on and off. The pro version lets you put on a schedule so it turns itself on and off when you want with out ever touching it. Idk if it works on iOS 7 tho.
     
  15. LosLoco thread starter macrumors member

    Joined:
    Nov 28, 2012
    #15
    But isn't that what Background Manager also does?

    I don't think the problem is having the app running (as I believe Background Manager also keeps the app alive), but restrictions from Apple on what an app can do, when the screen is locked. And these restrictions doesn't really seem to be avoidable (not through any tweak I can find, at least...)

    ----------

    Yeah, that may be a workaround, albeit not a very pretty one :D Not entirely sure it would work, as I don't know the full length of Apples restrictions on third party apps, background, lockscreen and everything :)
     
  16. goobot macrumors 603

    goobot

    Joined:
    Jun 26, 2009
    Location:
    long island NY
    #16
    Insomnia is not a background app. It's an app that keeps the phone running like the screen is on even tho it isn't
     
  17. LosLoco thread starter macrumors member

    Joined:
    Nov 28, 2012
    #17
    which sounds exactly like what I want ! :D

    But sure enough, Insomnia isn't updated for iOS7 :/
     
  18. LosLoco thread starter macrumors member

    Joined:
    Nov 28, 2012
    #18
    Thanks for the help, guys. I think I found a solution with the tweak "screen dimmer" that let's me turn off autolock and turn off the screens backlight :)

    Only caveat is a bug that turns up the screens brightness at times, but other than that, I think it will work :)

    Thanks for all your input! :)
     

Share This Page