Can AIR detect power status changes?

I'm trying to go through the API documentation and wondering
if there's a way for AIR to be able to detect when the computer
goes into power saving modes, like hibernation, etc, so that the
application can react accordingly. Anyone knows if this is
possible, or not at all?
Thanks!

These are the events which you can listen for - maybe one of
these will help you accomplish your goal....
activate
Dispatched when this application becomes the active desktop
application.
deactivate
Dispatched when the desktop focus is switched to a different
application.
exiting
Dispatched when the application's exit sequence is started.
invoke
Dispatched when an application is invoked.
networkChange
Dispatched when either a new network connection becomes
available or an existing network connection is lost.
userIdle
Dispatched when the user has been idle for the period of
time specified by the idleThreshold property.
userPresent
Dispatched when the user uses the mouse use or keyboard
after an idle period.

Similar Messages

  • MacBook doesn't like power status change

    If I connect or disconnect the AC adapter while my MacBook is shut and asleep, quite often (but not always) when I re-open the machine it has frozen and I get the message telling me to force shutdown/restart by pressing the power button for several seconds. This seems to be a new pattern of behaviour for my 1-year-old machine - it's only been happening in the last couple of weeks.
    I have tried resetting the PRAM and also resetting the SMC but it still happened just now when I reconnected the Magsafe with the machine shut and asleep.
    Advice welcome!

    Yahoo Games Java - Pinochle for me - has been a consistent problem with all versions of Safari and OSX
    BUT - has not worked at all with 10.5.x - 10.4.x was ok
    However, for some reason works fine with Firefox
    (although 'font smoothing' with latest Java 6.0 is now not so 'smooth' and the 'font smoothing' check box is not now available as an option, but will investigate that situation further as time permits)
    Granted, with 10.5.x Safari can access the initial screens, but get the "Unable to connect to server" message window saying "one of four things could caused this: firewall, server down, stale page" but the most interesting is "not connected to internet" (ah, Yahoo, if not connected to internet how are we able to get to that screen?
    Nevertheless, might be some 'configuring' possible between which Java will be used - 6.0 or 5.0 etc, will investigate that also.
    But Apple
    Hope you can get something figured out on this
    Seems very very interesting that Firefox does work
    But Safari, right out of the box, does not
    Thanks, BC

  • T530 does not make typical ThinkPad Power Status Beeps

    Hello,
    I just got my ThinkPad T530.  Things are going ok with it, the keyboard isn't as terrible as I had thought - but certainly didn't wow me like the keyboard on my T510 which I think was the best keyboard any ThinkPad ever had.
    Anyway, something I have noticed, and that is sort of a problem for me, is that this computer is not making the typical "power status change" beeps that every other ThinkPad has ever made.  You know, the dee-dum, dum-dee that go along with plugging or unplugging the AC power adapter.  Also no single beep when it finishes going to sleep, or wakes up from sleep.
    Anyone know how I get these back?  I didn't see anything obvious in the BIOS or Power Manager.
    Solved!
    Go to Solution.

    hey brillat,
    Could you tell us what version of Power Manager you have on your computer?
    DETERMINING WHICH VERSION IS INSTALLED
      1. Start Power Manager. The main screen will be displayed.   2. Click '?' mark at the top right of the main screen, and select the 'About      Power Manager...' . The version will be displayed.
    thanks!
    Best Regards,
    Hiro
    Did you find a post Awesome? A response just Outstanding? Kudo them!
    Did the post you read answer your question? Did someone help you figure out your problem? Hit Solution Provided and give that person a pat on the back for helping you out!

  • Power Supply Status Changed

    A while back our Xserve G5 went on UPS power for a few seconds. No big deal just a power blip.
    Since then we get a "Power Supply Status Changed" message in the server log ever 12 seconds. I can't get it to go away. Server has been rebooted multiple times.
    The OS Version is 10.4.1
    Everything is functioning normally and there are no power problems. How do I stop this message?

    We are also using the APC. Not sure which model, but we are also getting the same messages. We disconnected the cable early last week and the message is still going. We have been investigating all logs on our server for another problem which is where the server just stops being available on the network. To fix requires a restart using the power button to turn if off and then on again.
    Then all is normal except for the "Power Supply Status Changed" error.
    So far this is the only error we get that shows a problem exists.
    Is anyone else also having the lockup problem?
    X Serve G5   Mac OS X (10.4.3)   RAID

  • Power Supply Status Changed - every 12 seconds

    Server Monitor shows all green for all components, but the log shows a red message every 12 seconds "Power Supply Status Changed". The power is coming through an APC UPS device, which also appears to be working fine. Any ideas?
    Xserve G5 Dual   Mac OS X (10.4.5)  

    Last night I got an Email:
    Subject: Server Problem Notification
    A problem has been detected on this server.
    ============================================================
    Status Summary
    Reason(s) for notification:
    Power
    Server:
    Host : geekho
    Model : RackMac3,1
    Uptime : 17952 minutes
    OS version : Mac OS X Server 10.4.6 (8I127)
    Processor : 1 x 2000 MHz
    Memory : 2048 MB
    BootROM : $0005.17f2
    Serial : QP6170FQSLX
    Memory:
    Memory Slot "DIMM0/J11" : 1024MB, ECC DDR SDRAM, PC3200U-30330
    Memory Slot "DIMM1/J12" : 1024MB, ECC DDR SDRAM, PC3200U-30330
    Drives:
    Drive 1 (disk0) : Normal
    Drive 2 (disk1) : Normal
    Network:
    en0 ( active) : Normal
    Sensors:
    CPU 1 Power : 12.55 watts
    1.5v : 1.49 volts
    3.3v Trickle : 3.30 volts
    5v : 5.04 volts
    12v Trickle : 12.06 volts
    1.2v : 1.18 volts
    Behind the DIMMs : 52.00 C
    1.8v : 1.80 volts
    System Bus IO VDD : 1.46 volts
    PCI Slots : 45.00 C
    DDR IO : 2.63 volts
    DDR IO Sleep : 2.63 volts
    3.3v : 3.30 volts
    3.3v Sleep : 3.28 volts
    5v Sleep : 5.07 volts
    12v : 12.00 volts
    System Controller Vcore : 1.71 volts
    1.5v Sleep : 1.51 volts
    1.2v Sleep : 1.18 volts
    Between the Processors : 34.00 C
    CPU 1 Internal : 46.02 C
    CPU 1 12v : 0.94 amps
    CPU 1 Vcore : 1.27 volts
    CPU 1 Core : 9.89 amps
    System Controller Internal : 55.75 C
    CPU 1 Ambient : 38.00 C
    System Controller Ambient : 44.00 C
    CPU 1 Inlet : 30.00 C
    CPU 2 Inlet : 27.50 C
    Controls:
    CPU A1 : 3973 RPMs
    CPU A2 : 3988 RPMs
    CPU A3 : 4002 RPMs
    CPU B1 : 3992 RPMs
    CPU B2 : 4017 RPMs
    CPU B3 : 3982 RPMs
    System Controller : 5585 RPMs
    PCI Slot : 3890 RPMs
    Clock Slew :
    Security:
    Enclosure Intrusion : No
    ============================================================
    I don't see anything wrong (CPU power?), and the Server Monitor app shows all green lights and everything "Normal" except CPU Core amps at 7 amps peaking to 10.25 or so, which it calls "High".
    What (if anything) is wrong, and what (if anything) should/could I do to fix it? Is this related to the original problem?
    Thanks!

  • How can I hide a contact's status changes?

    It is a pain to scroll through the history of a conversation with all of the status changes mixed in with my conversations. Is there a way to suppress seeing these? It seems like I could hide these several years ago (perhaps with the older version of Chax) but I can no longer find this option anywhere.

    Hi,
    I have Chax 2.2.2 used with my iChat 4 computer
    In the tab "Notifications" it does have a box that Needs Ticking to Show the Status changes in Messages. (I have not tried Setting it and then Unticking it to see if that works - sort of in reverse)
    I also don't remember using it before to Set this.
    I consider several of the Chax settings to mimic the same thing iChat 4 already does.
    These maybe an hangover from previous version though.
    Having said that their Site suggests using the correct version for the OS/iChat version you are using suggesting they were created from the Ground up or very close to it for each version of iChat
    I have not seen anything on removing the Message's Notifications.
    9:05 PM Friday; March 18, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Exit for CJ20N where system status changes can be captured

    Hi Experts,
    I need exit for CJ20N where system status changes can be captured
    for both the below cases
    1) When WBS Element is having Networks inside it
    2) when WBS Element is having no networks inside it
    EXIT_SAPLCOBT_001  --->>>   ZXCO1U01  , will work for 1) , but not for 2)
    i want an exit where status change gets captured for both cases 1 and 2 and
    will do further processing according to client needs based on status change
    Need to trigger IDOC on status change of  WBS element.
    If WBS is having network inside it  , then network status changes also with WBS status change
    and IDOC should trigger for WBS also.
    I just want suitable exit  / place for coding . Rest i can do.
    if no suitable exit / BADI , then what is the best possible place where i can go for Implicit Enhancement
    Best Regards,
    Gaurav
    Edited by: TheGaurav on Oct 25, 2011 7:08 AM
    Edited by: TheGaurav on Oct 25, 2011 7:12 AM

    I am kind of stuck in a similar issue. I need to perform custom validations on standard fields which cannot be done through OPSI or OPUC transactions. 0007 or 0002 User exits seem to assist on custom field creations/validations. However, I do see people posting the following BADIs which may be useful.
    CO_SRULE_CHECK
    PROJECTDEF_UPDATE
    WORKBREAKDOWN_UPDATE (which you already tried)
    WBS_FIELDS_FOR_ASSET
    CO_SRULE_CDOC
    Let me know if any of these worked out...
    AN

  • How can I customize my status bar to change the color?

    Hello:
    How can I customize my status bar to change the color?
    Thanks

    On which phone model? Either way, modifying the notification bar text color usually isn't something you can do with a standard stock phone.

  • I can not use Power nap in my macbook air 2012

    I can not use Power nap in my macbook air 2012, when I install updates and shut the macbook all downloads are canceled

    Is it connected to the power adapter when this happens?

  • After restoration of files via time capsule my status changed to "Guest" and I can't find the pass word for changing it back to Registered user. Any Help?

    after restoration of files via time capsule my status changed to "Guest" and I can't find the pass word for changing it back to Registered user. Any Help?

    Hey mate I had this same problem exept instead of my recording disappearing my Chorus that went for 8 bars extended out to 20 bars lol and I used auto tune on it and it sounds like t-pain on a very bad day so it sounds like it does a few things when it comes up that error

  • Why my macbook air can't detect the usb flash drive

    Im having a problem about my sandisk cruzer. When i'm using it in windows desktop it works fine and when i want to transfer some file from my desktop to my macbook air. The flash drive can't detect by macbook. I already went to disk utility and didn't find it there. Can somebody help me here?
    Im running Os X 10.9.4

    and how to connect to airplay, please help, not see any icon

  • WRT120N can't detect internet

    Hello,
    Recently I bought a new laptop (Sony Vaio SVE1511HFXW) and I haven't been able to connect it to the internet wirelessly. I previously was working on a Sony Vaio VGN-NR series laptop that I had no problem setting up a wireless connection for. I ran my router set up disc on the new machine and basically everything got ruined. My other laptop lost it's wireless connection and connecting it with an ethernet cable didn't work either. So now both computers were not connected. Actually, all devices can't pick up the wireless anyway (I tried to get on netflix with my Wii and it didn't work) I restarted the router several times, reset it once and nothing happened. I could only connect with the cable after I reset the modem and router, but it's still saying it "can't detect an internet connection." When I ping the router I get an answer back.
    Here's what I get when I run ipconfig in the command prompt:
    C:\Users\Shinsei>ipconfig
    Windows IP Configuration
    Wireless LAN adapter Wireless Network Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . : hsd1.nj.comcast.net.
    Link-local IPv6 Address . . . . . : fe80::e099:a91b:e9cb:67%13
    IPv4 Address. . . . . . . . . . . : 192.168.1.101
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.1
    Ethernet adapter Bluetooth Network Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Tunnel adapter isatap.{DD6EC53C-65FF-4E86-8BFF-496A16F3AD5B}:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Tunnel adapter isatap.hsd1.nj.comcast.net.:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Tunnel adapter isatap.{109AB7CA-3CC7-403C-B5F0-4B18618742E2}:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Tunnel adapter Teredo Tunneling Pseudo-Interface:
    Connection-specific DNS Suffix . :
    IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6ab8:38ba:97d:ba07:20e5
    Link-local IPv6 Address . . . . . : fe80::38ba:97d:ba07:20e5%15
    Default Gateway . . . . . . . . . : ::
    I see a lot of "media disconnected" things up there and I doubt that is good.
    Any sort of help would be appreciated! 

    You could have just checked only the wireless settings of your router to connect the new laptop (i.e. wireless name and wireless password) but anyway since nothing is working now then you have to start from scratch. Since you have reset the router back to defaults then your wireless settings from before got reset so then the wireless network that you will be picking up is linksys.
    What you can do is this, connect your computer to the modem and make sure again that your internet is working fine. If you have Cable internet service, do ipconfig/all. Look for the Local Area Connection and take note of the Physical Address. Connect your router back to your modem and connect your computer as well to the router's ethernet port, check leds if okay (power should be solid and WLAN led should be lit up or flashing, ethernet port for your computer should be lit up as well). Now, access http://192.168.1.1 and use admin for the password (leave the username blank). Once you are on the Setup page, click MAC Address Clone on the purple or blue bar and set it to enable. You click after that Clone or Clone my PC's MAC. You compare the MAC Address on that page (value on the 6 boxes) to what you have written down as the Physical Address earlier. If they are the same, click on Save Settings. Once saved, you click Status on the black bar and from there, check if you have an Internet IP Address which is same IP Address that you will get when computer is plugged-in to your modem. You should be able to get online wired to the router after that. If you have DSL internet service, check what IP Address you are getting to the modem, if your modem's ip is 192.168.1.33 for example, on the router Setup page, change the IP Address from 192.168.1.1 to 192.168.2.1. You may need to power down the router and modem after that and internet should be working. Otherwise if your DSL ISP needs the connection to be authenticated, then you will set the router's Internet Connection Type to PPPoE and use the account username and password from your DSL ISP.
    for more info: Setting up a Linksys router for DSL Internet connection   Setting up a Linksys router with Cable Internet service

  • DVD-Audio and "can not detect sound blaster card" with Audigy2 Va

    I recently purchased an "Audigy2 Value" card from an eBay user, because I recently purchased some DVD-Audio discs. I downloaded the Audigy2 drivers from the website, and the Creative MediaSource player. 5. Surround sound worked fine for me, though sometimes the driver would reset to the default 2/2. sound and I would have to re-select 5. sound, which was annoying.
    Then I was completely unable to get the MediaSource player to recognise my DVD-Audio discs, and the EAX functionality of the player would never work. The EAX logo never appeared in the player. When I tried installing the MediaSource player from an install disc, I got the message "can not detect sound blaster card". Then I discovered the world of EEPROM problems.
    I followed advice from some other threads, including using ScanPCI to get information on the card, which yielded the following result.
    When installed on my machine (Asus A7A266 motherboard) the ScanPCI reads:
    Vendor 02h Creative Labs
    Device 0008h Unknown
    Command 0005h (I/O Access, BusMaster)
    Status 0290h (Has Capabilities List, Supports Back-To-Back Trans., Medium Timing)
    Revision 00h, Header Type 00h, Bus Latency 20h
    Self test 00h (Self test not supported)
    PCI Class Multimedia, type Audio
    Subsystem ID 0002h Unknown
    Subsystem Vendor 02h Creative Labs
    Address 0 is an I/O Port : 0000A800h
    System IRQ 5, INT# A
    New Capabilities List Information :
    Power Management Capabilities
    Supports power state D2
    Supports power state D
    Current Power State : D0 (Device fully-operational, no power saving)
    On another machine (specs unknown, it's a "house pc") I got this (with 3 entries!):
    Vendor 02h Creative Labs
    Device 0002h EMU0K Audio Chipset (SB Li've!)
    Command 0004h (BusMaster)
    Status 0290h (Has Capabilities List, Supports Back-To-Back Trans., Medium Timing)
    Revision 04h, Header Type 80h, Bus Latency 20h
    Self test 00h (Self test not supported)
    PCI Class Multimedia, type Audio
    Subsystem ID 002002h CT4850 SBLi've! Value
    Subsystem Vendor 02h Creative Labs
    Address 0 is an I/O Port : 00009000h
    New Capabilities List Information :
    Power Management Capabilities
    Current Power State : D0 (Device fully-operational, no power saving)
    Vendor 02h Creative Labs
    Device 7002h PCI Gameport Joystick
    Command 0004h (BusMaster)
    Status 0290h (Has Capabilities List, Supports Back-To-Back Trans., Medium Timing)
    Revision 0h, Header Type 80h, Bus Latency 20h
    Self test 00h (Self test not supported)
    PCI Class Input, type Other
    Subsystem ID 002002h PCI Gameport Joystick
    Subsystem Vendor 02h Creative Labs
    Address 0 is an I/O Port : 00008800h
    New Capabilities List Information :
    Power Management Capabilities
    Current Power State : D0 (Device fully-operational, no power saving)
    Vendor 02h Creative Labs
    Device 0008h Unknown
    Command 0004h (BusMaster)
    Status 0290h (Has Capabilities List, Supports Back-To-Back Trans., Medium Timing)
    Revision 00h, Header Type 00h, Bus Latency 20h
    Self test 00h (Self test not supported)
    PCI Class Multimedia, type Audio
    Subsystem ID 0002h PCI Gameport Joystick (Guess Only!)
    Subsystem Vendor 02h Creative Labs
    Address 0 is an I/O Port : 00008400h
    New Capabilities List Information :
    Power Management Capabilities
    Supports power state D2
    Supports power state D
    Current Power State : D0 (Device fully-operational, no power saving)
    (Just a note: above you can clearly see that it does not say I have an Audigy, it thinks it is a SBLi've. Is this normal? The card IS an Audigy 2, it says so on the card.)
    So, I put the card back on my own PC, thinking this has fixed my EEPROM, but I get the same as before. Subsystem ID 0002h. And of course the install software will not detect the card.
    I realise that I could go back to using the web drivers, but this still leaves me with MediaSource not recognising the card and not enabling DVD-Audio or EAX, which is why I bought the card in the first place!
    I have heard that the VIA chipset is possibly to blame for the EEPROM problems on the Audigy cards, and certainly it seems like it is not permanent, since it gave different information on the other PC. So now I am seriously considering getting a new motherboard.
    Do other motherboards cause this same problem? I don't want to buy another board and get the same trouble. All I want is to be able to install my MediaSource and have it recognise my card so I can listen to my DVD-Audio discs.
    Cheers,
    Russ.

    Figured out my problem. Installing the drivers from the web to begin with was a bad idea. They just did not work properly with the card.
    The "card not found" problem has gone as well, after installing it in another PC. I am also using the proper install disc now, as the other one I was using turned out to not be for the Audigy 2 value after all, but was an Audigy 2 install disc. That easily explains the "Card not found" error. The differing results from the ScanPCI program are still bizarre, though.
    Thanks to all of the people on the forum who posted information in other threads to help me deal with this issue. For now I am sticking with the original drivers from the disc and I am not upgrading.

  • G4 DA can't detect new Aluminum Keyboard

    I just got a refurbished Aluminum Keyboard off ebay (MB110LL/A) and it won't detect in either my Power Mac or my CRT iMac. I even plugged it into my wife's XP laptop and it detected it, bu couldn't install the driver. Is there a setting I need to change to get this going or did I just get a defective one?

    Well, that doesn't happen with this keyboard. I have a windows keyboard that does that, when I plug it in, it says that it can't detect the keyboard and to press the button to the right of the shift key to try and detect it. That doesn't happen with the aluminum keyboard. And it still shows up as "vend_device" under the system profiler, which is just weird.

  • Can't detect a German PC wireless network I know is there

    Hi,
    I'm new to this forum and I hope someone can help me.
    I'm visiting friends in Berlin from Canada with my Powerbook G4 with OS10.4.11. I can't detect my host's wireless network even though I can detect 24 other wireless networks in her apartment building (I downloaded MacStumbler and used it to check). I know her network ("Jenny") is not hidden because she got a friend across the courtyard the same apartment building to check if she could see it on her computer this morning, which she could. I also tried to find "Jenny" by clicking on "Other" and then entering "Jenny" in "Network Name" and entering the WAP password my friend gave me (I also checked that with her so I know it is right) under both WPA Personal and WPA2 Personal. That didn't work either. I also followed advice on this forum and got rid of that stupid pop-up box saying "Your Network Settings have been changed by another application" when I clicked on System Preferences/Network
    What should I do? All my friend knows is that she has a PC, she doesn't know the brand or model of her router or her ISP provider. If I can't solve this, I will be in big trouble as I had planned to stay in Berlin for a few months using my friend's wireless network to get online every day. I can get online fine via her router when I have a cable plugged into my computer in her flat, but I am staying across the courtyard in their second flat and we can't string a cable across the courtyard... I've never had problems before connecting with any PC wireless network, in Europe or N. America.
    Very grateful for any help.

    It won't let me do that. When I go to the Network window of my System Preferences, it says Location: Automatic, and it won't let me click on New Location or on Edit Locations - they are pale grey.
    Also, it says Show Network Port Configurations and it gives me six: Internal Modem, Airport, Bluetooth, Built-in Ethernet, Built-in Firewire, VPN (L2TP) whatever that is, and Ethernet Adaptor (en2), and I don't know if that is the cable from my friend's router or the new stick adaptor I bought (it doesn't change, whichever I have plugged in), but all these are also pale grey and I can't click on them or on the boxes marked New Rename Delete or Duplicate.
    Also the stick adaptor I bought is not showing up in my Finder window as an attached device - shouldn't it? This means I can't eject it safely when I want to. There are no instructions enclosed with it or on the manufacturer's website.
    When I click on Network Status with the cable attached, it says I am currently connected to the Internet via built-in Ethernet with the IP address 192.168.0.112 so I guess built-in Ethernet must be the cable. So if the Ethernet Adaptor (en2) is the adaptor stick, maybe it isn't being recognized by my computer because it is on channel 13?

Maybe you are looking for

  • Messages start blue then turn green

    I am sending messages to a person who has a new iphone4s so my messages should be blue and not counting towards my text.  They start out blue then turn green getting sent as a text instead of iMessage

  • Importing From Canon Vixia HF M30 to Final Cut Pro

    Hey there, I have been trying to import to final cut with some success. Importing From Canon Vixia HF M30 from my sd card. I used the easy setup. FORMAT HD USE HDV APPLE INTERMEDIATE CODEC 1080I60 I go to log and transfer select the clips I need and

  • Additional Cost Center Default value

    Hello Experts, I have one problem..when I want to book incoming invoice using FB01, The system pics up the cost center XXXX automatically. And that is the mystery at the moment. Why it is Default cost center XXXX ? There are some other cost centers w

  • What's the best way to create sub-totals & grand-total in SQL2008 R2 (and beyond)?

    What is the easiest way to get sub totals and a grand total on data that is being grouped?  It looks like RollUp might work, but it's being depreciated. My query is: SELECT COMPANY ,INVSTR_CD ,STATE_C ,SUM(CO_SHARE_TOTBAL) as CO_SHARE_TOTBAL FROM #AS

  • Mapping Data

    Mapping Data between materials and vendor-What does it meant?