Join now - be part of our community!

Android Marshmallow No stamina mode

Razorig2
Visitor

Android Marshmallow No stamina mode

Since Marshmallow has replaced Stamina mode, can you selectively choose which apps you want to keep running in the background when the screen is off or does doze just disable all background running apps whilst in idle?

I would really like to know this as I only like getting selected app notifications when the screen is off.
Does doze give you the same amount of freedom to selectively choose which apps to keep running in the background?

I'm still waiting for MM but from what I heard there's quite a few problems with it, anyone who has it, any improvements to the camera performance or is it still poor?
279 REPLIES 279
PattoW
Visitor

I'm totally disagree with that. Since the upgrade to 6.0 without stamina mode, the batery life is bad...is there a way to re-enable stamina mode? Please, it was one of the main points of choosing Xperia

Wedgie
Visitor

Interestingly my battery life in doze since a factory reset is about the same as Sony Stamina mode; Only if you don't move the phone or use it at all leaving it static and motionless away from WiFi on a decent 4g signal location. Let's hope someone listens to the disaster. I see Canada has pulled MM from Android updates...?
ErikEngerd1
Visitor

Meanwhile I have followed some instructions at XDA where you can use 'adb shell' from a PC to connect to your phone and modify the Doze settings. Basically, it seems possible to reduce the sensitivity of Doze on movement and also to make it kick in much faster.

These are the settings I am now experimenting with:

adb shell settings put global device_idle_constants inactive_to=30000,sensing_to=0,locating_to=0,location_accuracy=20.0,motion_inactive_to=0,idle_after_inactive_to=0,idle_pending_to=300000,max_idle_pending_to=600000,idle_pending_factor=2.0,idle_to=3600000,max_idle_to=21600000,idle_factor=2.0,min_time_to_alarm=3600000,max_temp_app_whitelist_duration=300000,mms_temp_app_whitelist_duration=60000,sms_temp_app_whitelist_duration=20000

The default settings would probably be

adb shell settings put global device_idle_constants inactive_to=1800000,sensing_to=240000,locating_to=30000,location_accuracy=20.0,motion_inactive_to=600000,idle_after_inactive_to=1800000,idle_pending_to=300000,max_idle_pending_to=600000,idle_pending_factor=2.0,idle_to=3600000,max_idle_to=21600000,idle_factor=2.0,min_time_to_alarm=3600000,max_temp_app_whitelist_duration=300000,mms_temp_app_whitelist_duration=60000,sms_temp_app_whitelist_duration=20000

To see current settings just do: adb shell dumpsys deviceidle. Perhaps someone could verify the default settings by executing this command on a phone that still has default doze settings.

The good thing about these commands is that they don't require root and also that the settings persists across reboots and and even software updates.

With the new settings the location sensitivity should be gone and doze should activate within 30 seconds after screen off. At least according to GSam battery monitor the phone is dozing quite a lot more than before. Unfortunately my initial test during a cycling tour were not that good. The reason is probably because there is a wakelock being held by a certain process. I am suspecting in my case it is K9 so I disabled background sync and see what happens. At least I am pretty sure that in my case that it is a wakelock issue since Settings/Battery Usage (and then click on graph) shows that my phone is almost awake full time while the screen is off. I haven't rooted my phone (want to keep this one stock for as long as I can) so it is difficult to troubleshoot in detail. What I think is that with stamina mode, processes cannot even get a wakelock while the phone is off so without stamina mode the battery usage can be ruined by apps that use wakelocks extensively.

It still beats me why google still hasn't implemented a standard feature to troubleshoot these wakelocks since this is still exactly the same problem I had in 2011 with my first Android phone.

Baader-Meinhof
Visitor

My battery is by far a lot worse on 6.0 than 5.1.1 on my two month old Z5! Wish I had stamina mode back! Wouldn't of upgrade to 6.0 had I know how bad it would be!
kamelle
Visitor

I feel really happy that I didn't run the update without checking for issues.

Gonna stay far away from it till it has been properly fixed and integrated, and Stamina is back.

It's a shame...

ErikEngerd1
Visitor

I just found out using Better Battery Stats that there is wakelock being held by NlpCollectorWakeLock (Google Services).

This is keeping the phone awake and causing battery drain. Not good. I am now creating a full backup of all data on the phone and will attempt a downgrade using PC companion or if that doesn't work using flashtool.

Brian1
Visitor

So annoyed with new Z5 that was lookig forward to and after Marshmallow upgrade have now had to send off to repair centre as it was acting totally impossible to use as a phone for all it was meant to be so now no phone, not sure how it can be rectified so to be honest really annoyed as with all the posts about problems Sony not appear to deal with issues accordingly !!

Will post feedback on repair status

Hope no one else has had to revert to this ?

profile.country.GB.title
Uliwooly
Expert

@Brian1

What's the problem?

ErikEngerd1
Visitor

Reverted back to the latest Lollipop firmware on my phone. It is a fraction slower, but then I have stamina mode again. Perhaps I will never upgrade it again.

OakDaisy
Visitor

Dear Sony,

+1 for Stamina:smileyhappy: