+ Reply
Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Waking the iPhone from Sleep Mode?

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
Originally Posted by iPhoneIslam Sobhan Allah You was asking about a way on how waking the iPhone from Sleep Mode.. and you was expect us to share you what we
...
  1. #21
    Developer
    Join Date
    Jan 2008
    Posts
    16
    Thanks
    1
    Thanked 2 Times in 1 Post
    Quote Originally Posted by iPhoneIslam View Post
    Sobhan Allah

    You was asking about a way on how waking the iPhone from Sleep Mode.. and you was expect us to share you what we know..and help..

    So it seem normal if you find how to come and post here, so you can help anyone who was search like you..

    But even after I ask.. you do not share.. it is strange you expect DevTeam to make a toolchain, and Sean to gives you 31 opensource app.. and lot of people opensource there project to share... and you take all that and do not want share tiny information.. isn't ironic??
    You're very bitter brother. To be honest I didn't come back to the forum after the problem got sorted. Actually, I did come back a few times but the server was down. I'm sure others from the forum can confirm that their server was down for a day or two and after that I just happened to come this way today and found your post It would be my pleasure to help!

    For some reason I haven't been receiving topic alerts either and in the past I had been re-visiting this thread frequently to find replies.

    Why wouldn't I want to share my findings. It was in fact quite obvious once I gave it a bit of thought. I had forgotten the fact that much of iPhone is based on OS X 10.4 and so stuff that works on 10.4 should work on an iPhone theoretically. From there I started looking at the possibility of using the IOKIt. That's where the answer lies. However this really isn't what I wanted to do originally, and that was to wake the phone up (which still is undiscovered - and the proposed 'solution' doesn't quite achieve that). The IOKit method only prevents the phone from sleeping and due to this it consumes extra battery life.

    All you need is in this page here:

    http://developer.apple.com/documenta...ositePage.html

    and here:

    http://developer.apple.com/documenta...H204-TPXREF101

    You essentially require:

    IORegisterForSystemPower
    IOCancelPowerChange
    IOAllowPowerChange

    However like I said, this only prevents the phone from dozing off and so is not an ideal solution. I personally believe sparking the phone off from sleep, too, can probably be done via the IOKit but for that to work. This however won't work the moment Apple releases the SDK as you need to be root to be able to do this - and according to what I've read, root access is impossible with the SDK.
    Last edited by guided; 01-24-2008 at 03:28 AM.

  2. #22
    What's Jailbreak?
    Join Date
    Dec 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I believe the best way is to study how MobileTimer does for the alarm.

    Anyone has any idea?

  3. #23
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by wjding View Post
    I believe the best way is to study how MobileTimer does for the alarm.

    Anyone has any idea?
    I figured it out from studying MobileMail (it has the ability to wake up every 15 mins to check mail).

    I posted my code snippet over on the other dev forum:
    http://iphonedevdocs.com/forum/showp...93&postcount=9

+ Reply
Page 2 of 2 FirstFirst 12
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts