Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
iPhone / iPod Touch SDK | Development Discussionforums, a part of the
3rd Party Apps For iPhone | iPod Touchsection;
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...
01-24-2008, 04:25 AM #21
- Join Date
- Jan 2008
- Thanked 2 Times in 1 Post
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:
You essentially require:
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 04:28 AM.
01-27-2008, 06:57 AM #22
I believe the best way is to study how MobileTimer does for the alarm.
Anyone has any idea?
02-20-2008, 09:33 PM #23
I posted my code snippet over on the other dev forum: