Is there a way to detect the event when device goes to sleep and the screen blackens?

I want to detect the event when the iOS device goes to sleep and the screen blackens?
Is there any way to do it?

Hi,
A small idea, please check whether it will work or not.
You can achieve this by using combination of DNS server and reverse proxy server.( Customized apache). Make 'A' record for www.abcd.com to reverse proxy server IP address in your DNS.
So it will resolve your reverse proxy IP address for requests.
Configure appche to accept incoming request for www.abcd.com and points towards www.abcd.com/parameters.
I think this will solve your problem.  Only one condition is that proxy server will communicate with www.abcd.com on behalf of client.
Follow the link for configuration of reverse proxy server
http://www.slashroot.in/how-configure-basic-apache-reverse-proxy
HTH
Naisam

Similar Messages

  • Hi there, when i press the start button on my G4 twin processor, the light inside the button comes on until I let go when it goes back off and the machine does not start up. Any ideas?

    Hi there, when i press the start button on my G4 twin processor, the light inside the button comes on until I let go when it goes back off and the machine does not start up. Any ideas?

    Sounds a bit like the Power Supply, but...
    If you don't know the model, find the Serial# & use it on one of these sites, but don't post the Serial# here...
    http://www.chipmunk.nl/klantenservice/applemodel.html
    http://www.appleserialnumberinfo.com/Desktop/index.php
    How to find the serial number of your Apple hardware product...
    http://support.apple.com/kb/HT1349
    How to reset the SMU/PMU on a Power Mac earlier G3, G4, G5 models...
    http://support.apple.com/kb/HT1939

  • I have just got an iMac 21" and it continuously freezes when it goes to sleep and also when the internet is trying to load, i have tried three different browsers but it still does it (safari, google chrome and firefox), does anyone know what is wrong?

    I have just got an iMac 21" and it continuously freezes when it goes to sleep and also when the internet is trying to load, i have tried three different browsers but it still does it (safari, google chrome and firefox), does anyone know what is wrong?

    To fix the freezing when sleeping problem go to System Preferences>Energy Saver and set 'Computer Sleep' to 'Never'. It seems there is a problem for some with Bluetooth failing to wake after sleep. This fixes it 100% for me and many others on here, until Apple issue a software update to address it.
    Not sure what to suggest on the internet problem. I assume you are connected and receive and send emails OK.
    Edit: To try to troubleshoot the internet issue maybe try turning the Firewall off: System Preferences>Security & Privacy>Firewall tab.

  • HT3964 My MacBook Pro i5 Dual Core has a hardtime waking up when the computer is put to sleep and only when it goes to sleep and has been asleep for a while. The indicator light flashes on and off for a while and then freezes. I've done an SMC reset once.

    Does any one have the same problem with their MacBook Pro i5 Intel Dual Core?  If the computer goes to sleep (not the screen) and is asleep for a while, when I try to wake it up it doesn't respond. I have to power it downn and restart it and sometimes it takes two or three attempts. Otherwise it works fine. I upgraded the memory to 8 GB. That is the only alteration doen to it. I've performed one SMC restart and now it wakes up  but it takes a while and a gray screen shows up. When I insert a DVD it won't start automatically I have to start the application in order to see it. Any suggestions?

    http://www.apple.com/support/macbookpro-videoissues/

  • After recent update to airport on iMac, the wifi connection is lost when it goes to sleep and requires turning off wifi and turning it on to reestablish contact.

    After recent update to OS on iMac, communication to airport is lost when computer goes to sleep.  To reestablish connection, I need to turn wifi off then on. 

    same problem here.
    i have a time capsule.
    symptoms:
    excessively searching for network
    but more often than not, it cant find the correct netowrk that is correctly stored in keychain
    if i try network assistant opened through safari not finding its page, then it can find the right network after i enter in the password again.  it connects. but only for a few seconds then it loses the connection again.
    the only fool proof workaround for me is:
    1/ shut down time capsule. restart time capsule.
    2/ restart mac with airport turned off.
    3/ after restart manually select the network from the wireless icon in the menu bar
    airport utility is a complete waste of time
    old airport utility is still better.

  • Why does my mac book pro screen go black when it goes to sleep and then will not light up again unless I unplug the power cord

    When I either leave my mac book pro open, but idle long enough for it to go to sleep or close the top and put it to sleep, the only way to light up the screen again is to diconnect the mag. connect power cord. Any ideas why and/or how to  correct this problem?

    So this is what I got when I took my computer into the apple store to have it diagnosed.
    After the apple technician performced several tests, the only thing that fixed the issue was an SMC reset. Based on this he figures it is probably a software or firmware issue that is going on. He is a little concerend how ever that the fans of the comupter don't reach maximal rpm when the computer is displaying the issue. So he recorded the problem, and told me to just perform the SMC reset as needed for the next couple months and wait for a new update from apple. If the issue persists I am to go back to the apple store and they will take the appropriate steps.
    He said an SMC reset doesn't hurt the computer in any way, so its safe to do. I am gonna contact blizzard and let them know about the issue as well because if it is software, it could be their game (Diablo 3) that is causing the issue as well. If I hear of anything new i will let you know. So get on the blizzard form and let them know of the issue to fix the problem faster.
    Thanks for your help,
    Tetrault

  • Mac pro goes to sleep and the error  log say "The smart launch will be terminated"

    Several times in the last few days my Mac Pro early 2008 has locked up.  This occures when leave the machine and come back to it.  I see the screen is black and the only thing that I see after clicking the mouse and pressing keys on the keyboard, is the white outline of the curser that will move across the screen.  Nothing will bring the system back and my only option is to hold down the power button until the unit shuts down. 
    I checked the logs in the console and the error message that I see is:  mm/dd/yy 9:49:17.719 AM SmartLaunch[31448]: The SmartLaunch will be terminated.
    Any clue where I should start looking?
    Steve Ornat

    That is a great idea to check the memory temperture.  Do they have built in temperture senors and then is there a terminal command to run to check that?  Also how do I change the speed of the fans, again a terminal command?
    I was mistaken, I bought 4- 4GB memory modules, with heatsinks. (8GB were tooooo expensive)  It should be good memory but certainly I wonder as this never happened before the new memory was added, 5 or 6 weeks ago.
    My memory config is:
    2 - 1 GB (orginal whe n I got the sytem)
    2 - 2 GB added 1 year ago from OWC
    4 - 4 GB added 6 weeks ago from ??
    Good suggetions about the hard drive.   I did add a new Seagate 3TB drive a year ago when I got this machine, and I use it for all my data stoage and tunes and pixs and only use the 250GB dirve of OS and apps.  I have not installed the OS and apps on the 3TB drive and that would be an easy thing to do.

  • How do you turn on the laptop when it shuts itself down and the power button isn't working

    How to I turn the laptop on after it has shut itself off

    If you hold the power button down for 15 to 20 seconds and the machine still will not turn on, you should do one of three things:
    1.  Take it to an Apple Store for an assessment and estimate.
    2.  Take it to an Authorized Apple Service Center for an assessment and estimate.
    3.  Consider purchasing a replacement machine.

  • Why does my iMac disconnect from the wifi when it goes to sleep?

    Everytime my iMac (Early 2008) running mountain lion goes to sleep it disconnects from the wifi (I only have wifi available) I then get a 'the browser does not support the :File extension)
    I'm stuck please help....

    Hi Matt,
    This has worked for a few...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    Click OK.

  • ORPOS system tries to insert the journal when device goes offline

    ORPOS 13.1.3 system tries to insert the journal for system status as any one of the device goes offline such as Database,Scanner, MICR, Till, Printer,etc. In view of such instances duplicate insertion for the same device status might result in access primary key violation which is a known issue. However, we still need to confirm whether its a base product behaviour or customization errors. we were not able to simulate this issue in UAT environment seems the chances for this occurence is rare.
    Can you please confirm whether its base product issue?
    Appreciate your help.
    Regards,
    Hari

    Hi Hari
    If it is creating any issue it seems to be a customization issue. May be if you can share logs we can help you more.
    JL_ENR table contains JournalBeginTimestamp as his primary key which cannot be same for any 2 journal
    But as such POS going online/offline multiple times does not create any issue
    Regards
    Saurabh
    [email protected]
    Edited by: kukreja.saurabh on Sep 6, 2011 10:11 PM

  • TS3048 my mouse seems to go to sleep and the only way to get it working again is to restart the macbook

    my mouse goes to sleep and the only way to get it working again is to restart my macbook

    Hello:
    Try three things (if you have already followed my first suggestion):
    1.  Reset the PRAM.
    2.  Reset the SMC.
    3.  Trash a preference file (com.apple.bluetooth.plist) and restart.
    Barry

  • When my screen goes to sleep and then the hard drive goes to sleep why won't the screen wake up?

    I can repeat this 100% of the time.  If I let the screen go to sleep (or I manually put it to sleep) and I shut the computer so the hard drive goes to sleep (or if the hard drive simply goes to sleep on the timer), when I open the Macbook Pro the screen will not wake up, although I think the hard drive does as the back light on the keyboard turns on.  Any ideas on why this is happening.  My computer is 4 weeks old...a bit frustrating.  The best answer I have gotten is get a new one for Apple...or completely re-install the OS.
    Jared

    The reason why it's happening is not obvious and can't be determined without more information. The fact that you can reproduce the problem makes it a lot more tractable.
    As a first step, boot in safe mode (shift key down at startup.) Can you reproduce the problem now? If so, note the time, then reboot as usual (not in safe mode) and look in the system log for error messages at the time the screen failed to wake up.

  • Is there a way to detect two keys at the same time?

    Is there a way to detect the keys if the user is holding two keys down at the same time?

    yes, but you'll have to check outside of the event loop (i.e. don't check for it in the keyPressed method).
    just use an array of keys that keeps track of which keys are currently down and which are up. you could use a boolean array but I use an int array because... Im not sure I've just done it probably because of my C background. anyway, basic setup:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class MultiKey extends JFrame {
         int keys[];
         public MultiKey() {
              super();
              keys = new int[256];
              Arrays.fill(keys,0); // 0 = key is up
              enableEvents(AWTEvent.KEY_EVENT_MASK);
              show();
         public void processKeyEvent(KeyEvent e) {
              // the 0xff below binds the key code to below 256
              int key = (e.getKeyCode()&0xff);
              if (e.getID() == KeyEvent.KEY_PRESSED) {
                   keys[key] = 1; // 1 = key is down
              else if (e.getID() == KeyEvent.KEY_RELEASED) {
                   keys[key] = 0; // 0 = key is up
         protected boolean isKeyDown(int key) {
              return (keys[key] != 0);
         protected boolean isKeyUp(int key) {
              return (keys[key] == 0);
    }so now at any time in your code you can check key state by using the isKeyUp and isKeyDown methods. this is about as close as you get to input polling in java unless you use LWJGL or something similiar ;)
    you can try out a full executable example at my site here - just open up the jar and start holding keys down :)

  • Is there a way to create new events on the new iPhoto app?

    Is there a way to create new events on the new iPhoto app?  I seem to only be able to create albums.  I would really like the app to allow me to do all the same things that I was able to do on my Mac.  I would create events and then sync to all devices.  Can someone please instruct me on how to create new events from the photos imported from the photo stream.
    Thanks for all the help!

    The iPhoto for iOS seems to be aimed at working on photos then sharing them to social media sites or to iCloud for sharing there. iPhoto for iOS does not perform many of the organizing tasks that iPhoto on your Mac does. Many people expected that there would be more capabilities in iPhoto for iOS that would allow it to work more closely with iPhoto on your computer but this is not the case. They are separate apps.

  • Is there a way to detect all the photos already transferred to double (or triple) in iPhoto, so do not occupy space unnecessarily? Thank you from France.

    Is there a way to detect all the photos already transferred to double (or triple) in iPhoto, so do not occupy space unnecessarily? thanks from France

    Look in you main photo library. Are there doubles or triple photos there? If so delete the extras.
    All photos are stored in the photo library. When you move a photo into an album the photo is not duplicated. The album contains a pointer back to the original photos. These pointers or aliases take up very little space.

Maybe you are looking for