Detecting computer wake up from sleep

Is there a way (i.e., event) in AIR to detect that a computer
just woke up from sleep or hibernation?

Hi,
A userPresent event is fired on the NativeApplication when
the operating system detects mouse or keyboard after an idle
period. The period of time that is considered idle is configurable
with the idleThreshold property.
I'm not too sure if it will work in detecting wake from sleep
/ hibernation unless the idleThreshold property has been crossed.
Try it out and do let us know.

Similar Messages

  • Thunderbolt ethernet not working when computer wake up from sleep.

    thunderbolt ethernet not working when computer wake up from sleep.
    it will not happen in Mountain loin.

    I had this problem on SL and on Lion as well, and it occures for WiFi and Ethernet connections.
    In fact the internet connection was not broken as I could ping the destination usin the IP (not DNS name).
    In this case the problem was related to mDNSResponder task which handles all dns queries.
    It was the most frequent problem in my day to day work with SL and now Lion. It was never fixed by any patch from Apple. I tried almost all voodoo including fresh install, all possible config changes - no solution.
    The only version with no problems related to network was 10.5.8. All the other versions had issues of different kind (WiFi instability (lost signal), DNS problems (for wireless and wired connection) sometimes associated with machine sleep and wake up and sometimes with no reason.
    QUESTION: Is your problem independent of the access point / router you connect to.
    I must say networking was (and still is) the weakest part, besides the other OS X weaknesses I experienced during 4 years of OS X usage.
    No problems in the same network with Linux or Windows beeing ran natively on my iMac So hardware is OK.
    Software is of poor quality. Not much more to say in this matter.
    I found a very interesting article dated 1996 about programming which I think is still valid.
    Link to the article: http://www.fastcompany.com/magazine/06/writestuff.html
    Below the fragment (with some connection to Apple)
    Software is everything. It also s***s.
    "It's like pre-Sumerian civilization," says Brad Cox, who wrote the software for Steve Jobs NeXT computer and is a professor at George Mason University. "The way we build software is in the hunter-gatherer stage."

  • OSX 10.7.5 How can I make my computer wake up from sleep?

    My computer won't wake up from sleep whether I put it to sleep by a hot corner or by closing the lid.  Has anyone a solution, plezase?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Getting microphone alive after computer wakes up from sleep mode.

    Is it possible to detect when the Flash Player "wakes up" from the computer's sleep mode?  Is there an event that gets dispatched when a computer wakes up in any of the AIR specific classes? I need to reinstantiate a netstream connection and the mic when the computer wakes back up.  Any guidance or pointers to do this would be greatly appreciated!
    Thanks for all your help and time!
    Best,
    Laz

    It appears it is a specific update. You could try 2 things:
    1) Verify and install the latest device drivers for your PC from the manufacture's support web site:
    http://support.lenovo.com/en_US/detail.page?LegacyDocID=migr-70443
    2) Install or uninstall one update at a time to narrow it down to specific update (KB number). If you find the offending update check / search the internet for the specific Microsoft KB article and what is intended to fix. It is possible there
    is a newer update that supersedes it.
    J W Stuart: http://www.pagestart.com
    Never be afraid to ask. This forum has some of the best people in the world available to help.

  • Internet connection not working after computer wakes up from sleep. OSX Lion

    After upgrading to Lion, I noticed that my internet connection doesn't work when I wake my computer from sleep. I have to turn off the WiFi connection, turn it back on and it will work. I guess this is a glitch that will be fixed later on. Just wanted to point it out. I don't know if someone else is having the same problem? I am not very happy with the upgrade to Lion, things seem to be slower, I've had several freezes requiring to reboot. I guess Lion needed a little more twicking before release. Not worth the $29.99 price tag.

    I had this problem on SL and on Lion as well, and it occures for WiFi and Ethernet connections.
    In fact the internet connection was not broken as I could ping the destination usin the IP (not DNS name).
    In this case the problem was related to mDNSResponder task which handles all dns queries.
    It was the most frequent problem in my day to day work with SL and now Lion. It was never fixed by any patch from Apple. I tried almost all voodoo including fresh install, all possible config changes - no solution.
    The only version with no problems related to network was 10.5.8. All the other versions had issues of different kind (WiFi instability (lost signal), DNS problems (for wireless and wired connection) sometimes associated with machine sleep and wake up and sometimes with no reason.
    QUESTION: Is your problem independent of the access point / router you connect to.
    I must say networking was (and still is) the weakest part, besides the other OS X weaknesses I experienced during 4 years of OS X usage.
    No problems in the same network with Linux or Windows beeing ran natively on my iMac So hardware is OK.
    Software is of poor quality. Not much more to say in this matter.
    I found a very interesting article dated 1996 about programming which I think is still valid.
    Link to the article: http://www.fastcompany.com/magazine/06/writestuff.html
    Below the fragment (with some connection to Apple)
    Software is everything. It also s***s.
    "It's like pre-Sumerian civilization," says Brad Cox, who wrote the software for Steve Jobs NeXT computer and is a professor at George Mason University. "The way we build software is in the hunter-gatherer stage."

  • Many programs hanging after computer wakes up from sleep

    Hi!
    Since teh upgrade to Snow Leopard (10.6) I experience many hang-ups / freezes on a variety of programs. I have traved this to I think only happenening after the MacBook has been sleeping. So put to sleep, wake up again, and at least the following froze (all have latest updates installed):
    - Photoshop CS4 (hangs on welcome screen saying "Measuring Memory")
    - Adobe InDesign CS4 (starts, becomes sluggish, and hangs when opening files or latest when trying to close requiring force quit; then doesn't start again)
    - Adobe Illustrator CS4 (opens but freezes when trying to open a file)
    - iTunes (never comes up, just keeps bouncing in the dock until the cows come home)
    - Aperture 2.1.4 (shows splash screen and hangs then)
    All work well after a fresh boot.
    However, when I then try to restart the machine, it hangs before rebooting (my desktop background is still there, all other things gone, such as dock, menu bar etc). I have to switch it off the hard way (power button 5 sec or so) and restart. Then all works well until next sleep.
    If anyone has ideas how to get around this I'd love to hear the answer. If you carry the MacBook around a lot, always rebooting makes it feel worse than Windows...
    Cheers,
    Hendrik

    Similar sort of problem. iPhone will not wake my iMac from screen save using iPhone "Remote" and when I wake my iMac manually, iTunes reports that it cannot connect to my Airport Express, which I use a remote music player. If I go into the speakers pull down at the bottom right of the iTunes screen, I can immediately reconnect to the Airport Express by manually clicking to change it from "Computer". Both the Time Capsule which sends the wireless signal to the Airport Express and the Airport Express itself are showing green lights. The Time Capsule is connected wired to my my iMac. This system all worked well on 10.5.8. I had expected it to be better in Snow Leopard with remote wake from sleep. I am also getting various random hangs after updating to 10.6.1 and HP drivers 2.1. Syslog shows this often to be TWAIN related or HP printers. Not good at the moment. Spoke to Applecare yesterday and they had no constructive suggestions other than to reformat my hard disc and start from scratch - yea right. I have reinstalled SL and reupdated with no improvement.
    Wilson

  • My fans don't go above 2000 rpm when my computer wakes up from sleep

    Only when I shut down my computer, and turn it back on do they work. Is there any hope this will get fixed?

    What do you do when it behaves correctly immediately after an SMC reset but then the issue persists and the fans fail to increase speed after he wakes the computer up from sleep?
    To test, I would back the drive up and install a fresh system to eliminate a software issue.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Macsimum News Associate Editor  Creator of 'Mac611 - Mobile Mac Support'

  • HP DM3 - Mouse Freeze's up when the computer wakes up from sleep mode.

    Hi Guys,
    I just had a DM3 with the 2.26 sp9300 intel chip built for me and every time the laptop goes to sleep and wakes up the mouse freezes up with a magnifying glass and its impossible for the mouse to do anything.  I have to tab over to the task manager and tab down to the power button to restart my PC and than it works again. Anyone know whats going on?  Driver problem? any updates yet?
    Thanks !!
    Jon

    Hello,
    I picked up my DM3 from PCWorld last night and I'm having the same problem every time (4 times) when I've closed the lid and re-open it again.  The magnifying glass appears and I can't move the pointer using the trackapd and have to restart the machine to gain control again. 
    Any word from HP on a solution?
    thansk,
    Cat

  • Magic mouse not working when my computer wakes up from sleep mode sometimes

    This does not happen all the time but it is starting to happen more and more. When my iMac is asleep and I wake it up the mouse is non responsive. I have looked at the green indicator light on the magic mouse and it does not respond as well. I have turned the mouse off then back on and that does nothing. I thank this may be a Bluetooth problem because I have tried this with 2 magic mice. The only way I can get it to work is to restart the computer.
    Please advise??

    I would add the mouse to bluetooth favorites in System Preferences > bluetooth > Highlight mouse on the left > click gear icon below this list > click "show more info" if not already checked > click the gear icon again and "add to favorites".
    http://support.apple.com/kb/TA21371
    If that doesn't do it then a SMC reset might be in order:
    http://support.apple.com/kb/HT3964
    Regards,
    Captfred
    Message was edited by: captfred

  • NEW COMPUTER USING WINDOWS 7 WILL NOT WAKE UP FROM SLEEP MODE. I HAVE TO MANUALLY TURN IT OFF AND BACK ON.

    New laptop with Windows 7 does not wake up from SLEEP MODE.  I have moved the computer, moved the cursor, pushed every key on the keyboard, moved the space bar but nothing wakes it up.  I always have to manually turn the computer off and then
    turn it on again.  I have searched the FORUM but don't see anyone having my problem.  I have searched under SLEEP MODE in GETTING STARTED WITH WINDOWS 7 but I don't find where they address the different modes.  Any suggestions?

    Hi,  I would suggest you to check allow this device to wake the computer have a tick mark.
     Here are the steps:
    1. Click Start, type Device manager in the search box.
    2. Go to Device manager.
    3. Click on keyboard, it will display your keyboard, right click and go to properties.
    4. Select Power management.
    5. Check Allow this device to wake the computer.
    Follow the same procedure for mouse, restart the computer and check if it works properly.
    I also suggest you to update your display drivers, you can logon to the manufacturers website and download the latest drivers and install.
    For more information:
     http://support.microsoft.com/kb/266283
    Also I suggest you to run the Power troubleshooter to adjust your computer's power settings, and check if it works properly.
    Here are the steps:
    1. Open the Power troubleshooter by clicking the Start button, and then clicking Control Panel.
    2. In the search box, type troubleshooter, and then click Troubleshooting.
    3. Under System and Security, click Improve power usage.
    If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    For more information, logon to:
    http://windows.microsoft.com/en-US/windows7/Open-the-Power-troubleshooter
    http://windows.microsoft.com/en-us/windows7/Sleep-and-hibernation-frequently-asked-questions
    If the issue persists, please collect the Power Efficiency Report for further analysis.
    Guided Help: Get a detailed Power Efficiency Diagnostics Report for your computer in
    Windows 7
    Regards,
    Leo  
    Huang
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • My password works fine when I turn the computer on, but when I try to wake it from sleep mode the computer doesn't recognize my password -- the same one I used successfully when I turned the computer on.

    My password works fine when I turn the computer on, but when I try to wake it from sleep mode the computer doesn't recognize my password -- the same one I used successfully when I turned the computer on.

    Okay, I seem to have solved the problem I posted about earlier.  I noticed that the language preference in the upper right hand corner of the screen (between the date and time and the Spotlight icon) had somehow gotten switched from American English to French.  When I switched it back to American English, my password worked when waking the computer from sleep mode.  I have no idea why changing the language preference would affect the way the password works but that seems to have been the case.  I'll post again if I experience more problems.

  • TS1367 I am asking this question about my 27 inch iMac Desktop Computer. I normally use my Laptop and very seldom use the desktop but was going to download the new software earlier today. I could not wake it from sleep.

    The other evening we had a storm and lightening hit a house a few doors from me. It jolted my chair but that seemed to be all here. I use my laptop most of the time but since there was a software download I went to my 27 inch iMac and could not wake it from sleep. The light on the keyboard is not lit either. I have this connected to a Battery Backup Power so do not know what has happened or what to do. When I push the power button to try to turn it on nothing happens. There is no shound, no video, nothing; however the disk drive that does my time maching backup has a light on it and the other things that are plugged into the battery power pack also have lights on them. The printer is on and says it is ready to print. Since I cannot boot it up I do not know what to do to even try to get it started. I did not know what would happen if I put the first start up disk in  the external disk drive and try that or not. The internal drive is broken. I do not have any repair shops or apple stores around me at all less than 150 miles away and I am disabled with 24/7 help and oxygen so can not take it in. Are there any suggestions that anyone can give me. I have not been able to find any way to reset the backup battery pack either. It is a Tripp-Lite. Any help anyone can give will be greatly appreciated. Thanking you in advance for your time and trouble.
    Jean

    The other evening we had a storm and lightening hit a house a few doors from me. It jolted my chair but that seemed to be all here. I use my laptop most of the time but since there was a software download I went to my 27 inch iMac and could not wake it from sleep. The light on the keyboard is not lit either. I have this connected to a Battery Backup Power so do not know what has happened or what to do. When I push the power button to try to turn it on nothing happens. There is no shound, no video, nothing; however the disk drive that does my time maching backup has a light on it and the other things that are plugged into the battery power pack also have lights on them. The printer is on and says it is ready to print. Since I cannot boot it up I do not know what to do to even try to get it started. I did not know what would happen if I put the first start up disk in  the external disk drive and try that or not. The internal drive is broken. I do not have any repair shops or apple stores around me at all less than 150 miles away and I am disabled with 24/7 help and oxygen so can not take it in. Are there any suggestions that anyone can give me. I have not been able to find any way to reset the backup battery pack either. It is a Tripp-Lite. Any help anyone can give will be greatly appreciated. Thanking you in advance for your time and trouble.
    Jean

  • Early 2008 Mac Pro wakes up from sleep with Mavericks.

    Ever since I upgraded to OSX Mavericks on Tuesday, my early 2008 Mac Pro keeps waking up from sleep mode every couple hours. It goes back to sleep again on its own though after a minute, so I'm thinking it's some kind of new automated feature that I'm not aware of. With the Mac Pro being fairly loud when it wakes up from sleep mode, it woke me up three times last night! Is there some kind of option in the system preferences that I'm not aware of that can deactivate this new behavior? I usually only shut down my computer once a week, and keep it in sleep mode when I'm not using it most of the time, but I'm going to have to start shutting it down every  night now to keep it from waking me up throughout the night...

    Hello MARl0,
    You may want to disable the Power Nap functionality, if available, in System Preferences -> Energy Saver.
    OS X Mavericks: Change Power Nap settings
    http://support.apple.com/kb/PH14391
    Cheers,
    Allen

  • After 10.9.3 update monitor doesn't wake up from sleep

    I have an LCD connected to the Mac Mini via a mini-DP to DVI adapter and a video projector is connected directly at the HDMI.
    The LCD is the "main" screen while the projector is only switched on for watching TV or movies.
    My "Computer sleep" is set to "never" and "display sleep" to 15min.
    All was working well until I updated to 10.9.3 ...
    Now, when the LCD goes to sleep (projector is powered off) it doesn't wake up any more.
    The computer is running and it is responding to my key-presses etc. but the monitor remains in a coma.
    Powering the monitor off and on again resolves the issue, e.g. the display shows correctly.
    This is however only a temporary fix as it refuses to wake up  upon the next sleep...
    The monitor itself is fine, it works on other systems flawlessly, e.g. on an older Mini.
    Any ideas?
    I have already force-fed it with the combo-udate but that didn't help.

    My iphone 3GS does the same thing, not only does it suddenly fail to wake up from sleep. It just crashes and I have to do a hard reset. Today it just turned off when the ipod was playing I was a mile away from it and it was in airplane mode as well. I have restored from backup once and would dearly love to have it downgraded but that doesn't seem to be much of an option. My phone ran like a dream before the upgrade....now I hate to say it but its completely unreliable.
    With so many people experiencing the same problem it makes me wonder why there isn't a fix.

  • My imac freezes , need to restart everytime i wake it from sleep mode. just started happening 2 weeks ago.

    For about 2 weeks whenever I return to my imac and tap the mouse to wake it from sleep mode my screen is frozen. I have tried to wait for it to unfreeze but it doesnt wake. I cannot get any results from using the mouse or the keyboard. I always have to hard reset the computer to be able to use computer again. My mac is a year old. Anyone have any thoughts as to why tis is happening? Thanks

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Post the messages logged before the boot, while the system was unresponsive or was failing to shut down. Please include the BOOT_TIME message at the end of the log extract.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into a message.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

Maybe you are looking for