[android-developers] Re: Accelerometer power tied to display backlight power
Known but not resolved. Even in the bug report that is mentioned in the thread that you quoted, the only response has been things might have changed in cupcake. Of course determining what has changed, or if this specific problem has been fixed requires wiping the phone and installing cupcake*, whereas it seems like someone in the know could say we fixed this, or this is still the behaviour and we could stop discussing this. Jordan * If I haven't heard anything more about this by the end of the week, I will probably end up wiping and upgrading to cupcake. On Apr 17, 2:13 pm, Carter ccjerni...@gmail.com wrote: This is a known issue. See this thread:http://groups.google.com/group/android-developers/browse_thread/threa... On Apr 17, 4:18 am, David Burström david.burst...@gmail.com wrote: Hi Jordan, I can only agree with your findings. Regardless of which lock is being used, the service stops sending callbacks as soon as the screen turns off or the power button is pressed. :David On Mar 16, 3:01 pm, Jordan Frank jordan.w.fr...@gmail.com wrote: A partial wakelock doesn't help because, as I have already explained, as soon as the display goes off, the accelerometers go off. I can keep the CPU awake, and my program continues to run when the display is off. However, as soon as the display goes off, the accelerometers go silent. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Accelerometer power tied to display backlight power
Good news! I upgraded my device to cupcake, and it appears that I can now receive onSensorChanged events when the screen is off, provided that I hold a Partial Wake Lock. However, the sampling frequency seems to be far more sporadic. I think that it has to do with the fact that cupcake now flips the orientation of all applications, and when it does the redrawing, it suspends the application (and thus the sensor listeners). I'm experimenting with turning this auto-orientation behaviour off (Anyone know how to do this on an application-by-application basis, rather than turning it off in the device settings?). Anyway, things look good for those of us who wanted sensor data without having to leave the screen on. Jordan On Apr 20, 10:55 am, Jordan Frank jordan.w.fr...@gmail.com wrote: Known but not resolved. Even in the bug report that is mentioned in the thread that you quoted, the only response has been things might have changed in cupcake. Of course determining what has changed, or if this specific problem has been fixed requires wiping the phone and installing cupcake*, whereas it seems like someone in the know could say we fixed this, or this is still the behaviour and we could stop discussing this. Jordan * If I haven't heard anything more about this by the end of the week, I will probably end up wiping and upgrading to cupcake. On Apr 17, 2:13 pm, Carter ccjerni...@gmail.com wrote: This is a known issue. See this thread:http://groups.google.com/group/android-developers/browse_thread/threa... On Apr 17, 4:18 am, David Burström david.burst...@gmail.com wrote: Hi Jordan, I can only agree with your findings. Regardless of which lock is being used, the service stops sending callbacks as soon as the screen turns off or the power button is pressed. :David On Mar 16, 3:01 pm, Jordan Frank jordan.w.fr...@gmail.com wrote: A partial wakelock doesn't help because, as I have already explained, as soon as the display goes off, the accelerometers go off. I can keep the CPU awake, and my program continues to run when the display is off. However, as soon as the display goes off, the accelerometers go silent. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Accelerometer power tied to display backlight power
Hi Jordan, I can only agree with your findings. Regardless of which lock is being used, the service stops sending callbacks as soon as the screen turns off or the power button is pressed. :David On Mar 16, 3:01 pm, Jordan Frank jordan.w.fr...@gmail.com wrote: A partial wakelock doesn't help because, as I have already explained, as soon as the display goes off, the accelerometers go off. I can keep the CPU awake, and my program continues to run when the display is off. However, as soon as the display goes off, the accelerometers go silent. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Accelerometer power tied to display backlight power
This is a known issue. See this thread: http://groups.google.com/group/android-developers/browse_thread/thread/1b7202c957084742 On Apr 17, 4:18 am, David Burström david.burst...@gmail.com wrote: Hi Jordan, I can only agree with your findings. Regardless of which lock is being used, the service stops sending callbacks as soon as the screen turns off or the power button is pressed. :David On Mar 16, 3:01 pm, Jordan Frank jordan.w.fr...@gmail.com wrote: A partial wakelock doesn't help because, as I have already explained, as soon as the display goes off, the accelerometers go off. I can keep the CPU awake, and my program continues to run when the display is off. However, as soon as the display goes off, the accelerometers go silent. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Accelerometer power tied to display backlight power
A partial wakelock doesn't help because, as I have already explained, as soon as the display goes off, the accelerometers go off. I can keep the CPU awake, and my program continues to run when the display is off. However, as soon as the display goes off, the accelerometers go silent. So this is why I think that the solution lies in one of the lower layers, I'm just not sure where to start digging. Cheers, Jordan On Mar 15, 12:35 pm, Marco Nelissen marc...@android.com wrote: That's why you'd use a *partial* wakelock. On Sun, Mar 15, 2009 at 6:57 AM, Jordan Frank jordan.w.fr...@gmail.com wrote: My fault for not explaining myself better. I want to still be able to collect accelerometer data while the display is off. I'm well aware of the fact that I can keep the display on, but if I want to, for instance, create a pedometer application that counts footsteps while in the user's pocket, then the last thing I want is to keep the display to be on the whole time. Cheers, Jordan On Mar 14, 3:20 pm, Stoyan Damov stoyan.da...@gmail.com wrote: http://developer.android.com/reference/android/os/PowerManager.WakeLo... On Sat, Mar 14, 2009 at 8:23 PM, Jordan Frank jordan.w.fr...@gmail.com wrote: Hi, Although I haven't received confirmation from anyone at Google, I can confidently state that when the power to the display goes off, one can no longer obtain data from the accelerometers. I can easily think of a number of examples of where one would like to continue collecting accelerometer data even when the display is of. Supposing that I wanted to fix this, can anyone suggest where should I start looking? Would this be in the SDK, the kernel, or in some proprietary firmware that I can't touch? Thanks, Jordan Frank --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Accelerometer power tied to display backlight power
My fault for not explaining myself better. I want to still be able to collect accelerometer data while the display is off. I'm well aware of the fact that I can keep the display on, but if I want to, for instance, create a pedometer application that counts footsteps while in the user's pocket, then the last thing I want is to keep the display to be on the whole time. Cheers, Jordan On Mar 14, 3:20 pm, Stoyan Damov stoyan.da...@gmail.com wrote: http://developer.android.com/reference/android/os/PowerManager.WakeLo... On Sat, Mar 14, 2009 at 8:23 PM, Jordan Frank jordan.w.fr...@gmail.com wrote: Hi, Although I haven't received confirmation from anyone at Google, I can confidently state that when the power to the display goes off, one can no longer obtain data from the accelerometers. I can easily think of a number of examples of where one would like to continue collecting accelerometer data even when the display is of. Supposing that I wanted to fix this, can anyone suggest where should I start looking? Would this be in the SDK, the kernel, or in some proprietary firmware that I can't touch? Thanks, Jordan Frank --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Accelerometer power tied to display backlight power
http://developer.android.com/reference/android/os/PowerManager.WakeLock.html On Sat, Mar 14, 2009 at 8:23 PM, Jordan Frank jordan.w.fr...@gmail.com wrote: Hi, Although I haven't received confirmation from anyone at Google, I can confidently state that when the power to the display goes off, one can no longer obtain data from the accelerometers. I can easily think of a number of examples of where one would like to continue collecting accelerometer data even when the display is of. Supposing that I wanted to fix this, can anyone suggest where should I start looking? Would this be in the SDK, the kernel, or in some proprietary firmware that I can't touch? Thanks, Jordan Frank --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---