I don't set any WakeLocks . So yes it's seems to be something is preventing device to go to sleep .. And i think it's my frequent updates. I set go to sleep on red button via spare parts which will do this: 07-29 14:59:39.986: DEBUG/WindowManager(58): I'm tired mEndcallBehavior=0x2 07-29 14:59:40.234: DEBUG/Sensors(58): sensors=00000000, real=00000000 07-29 14:59:40.424: DEBUG/AKMD(39): Compass CLOSE 07-29 14:59:40.574: DEBUG/SurfaceFlinger(58): About to give-up screen, flinger = 0x16a458 then i see this 07-29 14:59:50.014: DEBUG/UpdateService(3813): Requested UPDATE_ALL action 07-29 14:59:50.014: DEBUG/UpdateService(3813): OnStart() 07-29 14:59:50.024: DEBUG/UpdateService(3813): Processing thread started 07-29 14:59:50.024: DEBUG/UpdateService(3813): Widget ID:11 07-29 14:59:50.024: DEBUG/UpdateService(3813): Info:AppWidgetProviderInfo(provider=ComponentInfo{package/ package.widget.NewsWidget}) 07-29 14:59:50.024: DEBUG/MPPNewsWidget(3813): buildUpdate() 07-29 14:59:50.034: DEBUG/MPPNewsWidget(3813): getNextItem:position{4} size {10} 07-29 14:59:50.074: DEBUG/MPPNewsWidget(3813): UpdateIntent:25598174 07-29 14:59:50.074: DEBUG/MPPNewsWidget(3813): widgetID:11 07-29 14:59:50.114: DEBUG/UpdateService(3813): Widget ID:12 07-29 14:59:50.124: DEBUG/UpdateService(3813): Info:AppWidgetProviderInfo(provider=ComponentInfo{package.dev/ package.NewsWidget}) 07-29 14:59:50.124: DEBUG/MPPNewsWidget(3813): buildUpdate() 07-29 14:59:50.134: DEBUG/MPPNewsWidget(3813): getNextItem:position {31} size {40} r=2009-07-28T194846Z_01_BTRE56L0YDE00_RTROPTP_0_PEOPLE- JACKSON&w=&w=150 07-29 14:59:50.184: DEBUG/MPPNewsWidget(3813): UpdateIntent:25579477 07-29 14:59:50.194: DEBUG/MPPNewsWidget(3813): widgetID:12 07-29 14:59:50.234: INFO/ActivityManager(58): Stopping service: package.dev/package.widget.UpdateService and like this every 30 sec .. then after i press menu again i see.. 07-29 15:03:49.568: DEBUG/KeyguardViewMediator(58): wakeWhenReadyLocked (82) 07-29 15:03:49.568: DEBUG/KeyguardViewMediator(58): handleWakeWhenReady (82) 07-29 15:03:49.574: DEBUG/KeyguardViewMediator(58): pokeWakelock(5000) 07-29 15:03:49.584: DEBUG/AKMD(39): Compass OPEN 07-29 15:03:49.594: DEBUG/Sensors(58): sensors=00000001, real=00000001 07-29 15:03:49.794: DEBUG/SurfaceFlinger(58): Screen about to return, flinger = 0x16a458
Now i disconnected the device from usb and will see if that will do the trick. On Jul 29, 2:49 pm, Mark Murphy <mmur...@commonsware.com> wrote: > Alexey Volovoy wrote: > > I see it the logs of course. Every 30 sec it's starting the service as > > it should if it's not asleep. > > Are you holding a WakeLock anywhere? > > Is anything else perhaps keeping the device/emulator awake? In other > words, how do you know it went to sleep? > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Looking for Android opportunities?http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---