Mon téléphone est le Motorola Droid 1, enraciné et modifié avec CyanogenMod 7. Ce problème ne se produisait pas avant que je le modifie. Lorsque je vérifie les statistiques de la batterie, la barre de veille est toujours pleine, donc quelque chose l'empêche de se mettre en veille. Sur un conseil, j'ai exécuté dumpsys power via adb. Voici le résultat :
dumpsys power
Power Manager State:
mIsPowered=true mPowerState=0 mScreenOffTime=3537164 ms
mPartialCount=1
mWakeLockState=
mUserState=
mPowerState=
mLocks.gather=
mNextTimeout=198995292 now=202518891 -3523s from now
mDimScreen=true mStayOnConditions=0
mScreenOffReason=3 mUserState=0
mBroadcastQueue={-1,-1,-1}
mBroadcastWhy={0,0,0}
mPokey=1 mPokeAwakeonSet=false
mKeyboardVisible=false mUserActivityAllowed=false
mKeylightDelay=6000 mDimDelay=47000 mScreenOffDelay=7000
mPreventScreenOn=false mScreenBrightnessOverride=-1 mButtonBrightnessOverrid
e=-1
mScreenOffTimeoutSetting=60000 mMaximumScreenOffTimeout=2147483647
mLastScreenOnTime=0
mBroadcastWakeLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mStayOnWhilePluggedInScreenDimLock=UnsynchronizedWakeLock(mFlags=0x6 mCount=0
mHeld=false)
mStayOnWhilePluggedInPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mH
eld=false)
mPreventScreenOnPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=f
alse)
mProximityPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mProximityWakeLockCount=0
mProximitySensorEnabled=false
mProximitySensorActive=false
mProximityPendingValue=-1
mLastProximityEventTime=230765884
mLightSensorEnabled=false
mLightSensorValue=-1.0 mLightSensorPendingValue=-1.0
mLightSensorScreenBrightness=70 mLightSensorButtonBrightness=0 mLightSensorKey
boardBrightness=0
mUseSoftwareAutoBrightness=true
mAutoBrightessEnabled=false
mScreenBrightness: animating=false targetValue=-1 curValue=0.0 delta=-5.0
mLocks.size=1:
PARTIAL_WAKE_LOCK 'com.commonsware.cwac.locpoll.LocationPoller' a
ctivated (minState=0, uid=10069, pid=14026)
mPokeLocks.size=1:
poke lock 'PhoneApp': POKE_LOCK_IGNORE_CHEEK_EVENTS
Une application particulière bloque-t-elle mon téléphone en veille ?