Being plugged in to usb keeps the device awake.  There are also often things
that will wake up the device in the background that can allow your own alarm
to go off.

On Wed, Jul 29, 2009 at 1:06 PM, Alexey Volovoy <[email protected]> wrote:

>
> 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 <[email protected]> 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
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to