The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-08-2008, 03:34 PM
What's Jailbreak?
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Preventing Auto-Lock without user interaction?

I'm looking for a way to prevent the phone from auto-locking. As is, it requires user interaction to avoid auto-locking. Instead, I'd like the phone/screen to just stay on without user interaction.

I notice that playing movies will prevent auto-lock and thought about hacking something in, but I'd like to avoid ugly hacks.

(Copied from below)
For example: can I throw simulated touch events to the system to make the phone think someone touched the screen? Or disable the auto-locking through a system preference API?

Any ideas?

Thanks!

Last edited by sinr; 08-08-2008 at 04:38 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 08-08-2008, 03:37 PM
redcard's Avatar
Livin the iPhone Life
 
Join Date: Oct 2007
Device + Firmware: 3G 2.2
Operating System: Vista Ultimate
Location: Scotchland
Posts: 1,920
Thanks: 7
Thanked 175 Times in 158 Posts

Uhhh, set auto-lock to 'never'?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 08-08-2008, 03:49 PM
Eurisko's Avatar
Livin the iPhone Life
 
Join Date: Aug 2007
Device + Firmware: 3G iPhone, FW3.0
Operating System: OSX Leopard
Location: Toronto, Canada
Posts: 3,312
Thanks: 11
Thanked 554 Times in 482 Posts
Send a message via Yahoo to Eurisko

What he said
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 08-08-2008, 03:55 PM
nickswagger's Avatar
iPhoneaholic
 
Join Date: Mar 2008
Device + Firmware:  White 3GS 32Gb 3.0
Operating System:  OSX
Location: Illinois
Posts: 369
Thanks: 37
Thanked 21 Times in 16 Posts

yeah, what they said
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 08-08-2008, 04:15 PM
Broomhead's Avatar
Super Moderator
 
Join Date: Sep 2007
Device + Firmware: 2G-3.0|3G-3.1
Operating System: OS X 10.5.8
Location: The Windy City
Posts: 8,262
Thanks: 183
Thanked 608 Times in 538 Posts
Send a message via AIM to Broomhead

Thread moved
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 08-08-2008, 04:18 PM
What's Jailbreak?
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by redcard View Post
Uhhh, set auto-lock to 'never'?
Crap, I wasn't specific enough :-( Sorry everyone.

I meant how to prevent the phone from auto-locking programmatically (via the toolchain or SDK). For example: can I throw simulated touch events to the system to make the phone think someone touched the screen? Or disable the auto-locking through a system preference API?

Can this be moved back to the iPhone/iPod Development forum?

Thanks!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 08-08-2008, 04:32 PM
Broomhead's Avatar
Super Moderator
 
Join Date: Sep 2007
Device + Firmware: 2G-3.0|3G-3.1
Operating System: OS X 10.5.8
Location: The Windy City
Posts: 8,262
Thanks: 183
Thanked 608 Times in 538 Posts
Send a message via AIM to Broomhead

Moved back
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 08-14-2008, 09:39 PM
Green Apple
 
Join Date: Jun 2008
Device + Firmware: iPod 2.2.1 1st gen
Operating System: Too many computers to list
Location: SpyderRevolution headquaters
Posts: 44
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via AIM to Hackin' Fool

You should just have to set the auto lock to never. If that doesn't work, go into the Prefrences.app bundle and you have to edit on of the plists. On the plist you set all times related to auto lock to -1. You can also add different times to set the auto lock to and different choices in Settings>General>Auto-Lock i.e. 30 seconds, 20 min, an hour... This is the best plist file I have ever messed with because you dont have to change the code to accomplish your goal.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 03:26 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Top