iPhone How to make a SmartCover with a proximity sensor?

Discussion in 'Jailbreaks and iOS Hacks' started by Mihindu, Jan 11, 2014.

  1. Mihindu macrumors newbie

    Joined:
    Jun 20, 2010
    #1
    Hello! I have a flip case and I would love to have it work like a Smart Cover. So when I open it up, the iPhone wakes up. And when I close it, it sleeps. I'm guessing I need to install a tweak with the proximity sensor. I've tried Always On Proximity but it doesn't work.
     
  2. dhlizard macrumors G4

    dhlizard

    Joined:
    Mar 16, 2009
    Location:
    The Jailbreak Community
    #2
    Smart covers contain magnets that activate the screen off/sleep settings
    If your case has no magnets, I think you are out of luck.
     
  3. thelatinist macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #3
    Just get a couple of small magnets, experiment with where they need to be placed to shut off and turn on the iPad, and glue them to the inside of the cover.
     
  4. M Quick macrumors 6502

    M Quick

    Joined:
    Nov 9, 2011
    Location:
    Stockholm, Sweden
    #4
    If that is the case, how is it turning off and on the screen when you put the phone against your ear or remove it when you have a call? What i mean is, the proximity sensor does just that.. without magnets.
     
  5. JackieInCo macrumors 601

    Joined:
    Jul 18, 2013
    Location:
    Colorado
    #5
    Thats because the iPhone has proximity sensors, the iPad does not need them. This is why the iPad uses magnets.

    MacBooks also use magnets to put it to sleep when you close the lid. I can sleep my MacBook by placing my iPads smart cover on the edge of the left palm rest.
     
  6. Mihindu thread starter macrumors newbie

    Joined:
    Jun 20, 2010
  7. JackieInCo macrumors 601

    Joined:
    Jul 18, 2013
    Location:
    Colorado
    #7
    No.
     
  8. Mihindu thread starter macrumors newbie

    Joined:
    Jun 20, 2010
    #8
    Alright and is there any way to use the proximity sensor to replicate the Smart Cover effect?
     
  9. JackieInCo macrumors 601

    Joined:
    Jul 18, 2013
    Location:
    Colorado
    #9
    You figure it out and let us know.
     
  10. inselstudent macrumors 6502a

    Joined:
    Jul 27, 2012
    #10
    I don't know if this is what you're looking for, but there's a tweak in Cydia called SleekSleep, which enables you to turn on/off your phone by swiping across the proximity sensor. Maybe it'll also work with a flip case, I don't know.

    the obvious downside though is that the proximity sensor will be always enabled and drain your battery.
     
  11. Mihindu thread starter macrumors newbie

    Joined:
    Jun 20, 2010
    #11
    I tried it but it doesn't work :/ Thanks though :)
     
  12. M Quick macrumors 6502

    M Quick

    Joined:
    Nov 9, 2011
    Location:
    Stockholm, Sweden
    #12

    Exactly :) Like i was saying, proximity sensor should work np, as the iphone has it.

    Ipad and macbook for example (as you say) uses magnets to detect if it's closed or not. Hence my reply to previous poster is a hint that magnets will probably not work :p



    How much drain is that? Can't see how the proximity sensor will draw any amount to speak of. :)
     
  13. inselstudent macrumors 6502a

    Joined:
    Jul 27, 2012
    #13
    I wouldn't know, but in the screenshots in Cydia it says that the sensor insomnia may cause increased battery drain. Maybe the OP could try to contact the developer of that tweak and kindly request a feature which would make the app work for him.
     
  14. dhlizard macrumors G4

    dhlizard

    Joined:
    Mar 16, 2009
    Location:
    The Jailbreak Community
    #14
    Or just buy a flip case with magnets already installed.
     
  15. thelatinist macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #15
    I think some of us are confused. He doesn't want a Smart Cover for his iPad...he wants to create one for his iPhone. I at least did not understand what he was looking for.

    OP: I don't think there is any such tweak available. If you want it, you'd have to write it yourself -- or get someone else to write it for you. As others have said, the proximity sensor would have to be on all the time, which I imagine would drain the battery. After all, the proximity sensor works by shining an infrared LED and detecting bounce-back. The LED would have to be on all the time. And, while I imagine it's relatively low-powered, it's definitely going to definitely drain the battery. It might also cause an overheating issue for the light sensor...I don't know.
     
  16. Mihindu thread starter macrumors newbie

    Joined:
    Jun 20, 2010
    #16
    I just got a reply from the dev, and he said that sleeksleep2 (free update available in a few weeks) will have the function to make this work. ^_^
     

Share This Page