I apologize if this is a duplicate post. I am in need of some additional information on PowerManager, and I've seen several posts dealing with the issue, but still haven't found the specific information I need. Related links are below.
When the screen goes dark, it looks like the file subsystem becomes unavailable to the CPU. File I/O through a DataInputStream/DataOutputStream generates IOExceptions, even if the thread executing the calls to the file system completes fine. A FULL_WAKE_LOCK solves the problem, and a PARTIAL_WAKE_LOCK allows the file I/O to fail. Can anyone provide me more information about how a particular wake lock preserves the availability of each subsystem (e.g. File I/O, GPS, WI-FI notifications, etc.). I know this behavior is defined in the PowerManager, which in turn is relying on the Linux power management module (so, each phone will have different behavior potentially). Related Links: http://stackoverflow.com/questions/7360234/partial-wake-lock-and-thread-running-in-a-service http://www.netmite.com/android/mydroid/development/pdk/docs/power_management.html https://groups.google.com/forum/#!searchin/android-developers/FULL_WAKE_LOCK/android-developers/1Yca7eqC2RU/gG6ZXWifPC0J PowerManager is handled by Linux PowerManager, so the driver for each phone will be different. https://groups.google.com/forum/#!searchin/android-developers/PARTIAL_WAKE_LOCK$20file/android-developers/taS0FzaTmio/YF4eTPZYSMsJ https://groups.google.com/forum/#!searchin/android-developers/PARTIAL_WAKE_LOCK$20file/android-developers/qXpoN-4ujZU/9-_YSfoOKfYJ https://groups.google.com/forum/#!searchin/android-developers/PARTIAL_WAKE_LOCK$20file/android-developers/qXpoN-4ujZU/9-_YSfoOKfYJ http://community.developer.motorola.com/t5/Android-App-Development-for/Accelerometer-does-not-work-when-the-screen-is-locked-on-the/m-p/9992/highlight/true#M2030 https://groups.google.com/forum/#!searchin/android-developers/PARTIAL_WAKE_LOCK/android-developers/0SuzSFP7Xhw/4Z6BqD67j6cJ An old post of mine: https://groups.google.com/forum/#!searchin/android-developers/FULL_WAKE_LOCK$20Schilling/android-developers/7_I8aGaFZ6k/wyxVPsz-kWoJ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en